subject
Engineering, 02.10.2020 17:01 forevertj

Problem Write a C program to maintain movies records and perform statistical analysis over them for cinema
theatre. The program must adhere to all the requirements mentioned in what follows. The movie
information should include an ID, rate, movie duration, and the release year. Each movie should
have a unique positive ID. Array index notation is not allowed to be used in the program, You must
use a pointer notation to access the arrays' elements. The program design should use main and
the below functions. We consider four one-dimensional arrays in the program, named as follows:
1. MovielD: An array of integers to save a unique ID of each series, the length of the ID must be 4
digits.
2. Rate: An array to save the rate of each movie, the rate should be from 0 to 10.
3. Duration: An array to save the movie duration (in minutes), the movie duration should be 50 to
100 minutes.
4. Year: An array to save the release year of each movie. The year value should be from 2004 to
2020.
The size of all arrays is 3. The elements of the above arrays (Moviel [i], Rate (i), Duration (i) and
Year (i)) represent the movie information with movie ID equal to the value of the Movield (i).
Part 1: Lab
1. Write a function O_InfoEntry_6 that takes four arrays (MovielD, Rate, Duration and Year) as
formal parameters and then prompts the user to enter the movies information as described
above by using do..while loop. (20 points)
2. Write a function O_Info Display_6 that takes four arrays (MovielD, Rate, Duration and Year) as
formal parameters and then prints all movies information released from 2009 to 2017 with the
movie that has the shortest duration. If there are no movies released from 2009 to 2017, the
function must display "No movies released from 2009 to 2017". (20 points)
3. Write a function O_Ranks_6 that takes two arrays (Movield and Rate) as formal parameters
and then calculates and prints the rank of each movie according to the following table by using
a switch statement only. You are not allowed to define any array as a local variable in the body
of the function. The function should then print and return the average rank of all movies. (20
points)
Rate
0 <= rate <3
3 <= rate <6
6 <= rate <8
8<= rate <=10
Rank
6.6
7.6
8.6

ansver
Answers: 3

Another question on Engineering

question
Engineering, 04.07.2019 18:20
Find the minimum film thickness for a journal bearing with the data below. shaft diameter, d-50 mm, clearance ratio, cdratio? 0.001, shaft speed, n 2000 rpm; bearing length. i 200 mm; eccentricity ration, ? -0.55. ( note, cdratio-ca/d) the minimum film thickness is um
Answers: 2
question
Engineering, 04.07.2019 18:20
Aheavily insulated piston-cylinder device contains 0.02 m3 of steam at 300 kpa and 200 °c. 1.2 mpa. d this process. team is now compressed in a reversible manner to a pressure of etermine the entropy change and the work done on the steam during this process
Answers: 1
question
Engineering, 04.07.2019 19:10
What is creep? what is stress relaxation?
Answers: 1
question
Engineering, 04.07.2019 19:10
The maximum shear stress and maximum flexural stress occur at the same location along a beam subjected to a non-uniform bending load. a)-trune b)- false
Answers: 2
You know the right answer?
Problem Write a C program to maintain movies records and perform statistical analysis over them for...
Questions
question
Mathematics, 17.09.2020 16:01
question
Mathematics, 17.09.2020 16:01
question
Chemistry, 17.09.2020 16:01
question
Mathematics, 17.09.2020 16:01
question
Mathematics, 17.09.2020 16:01
question
Mathematics, 17.09.2020 16:01
question
Mathematics, 17.09.2020 16:01
question
Mathematics, 17.09.2020 16:01
question
Mathematics, 17.09.2020 16:01
question
Mathematics, 17.09.2020 16:01
question
Mathematics, 17.09.2020 16:01
question
Mathematics, 17.09.2020 16:01
question
English, 17.09.2020 16:01
question
Mathematics, 17.09.2020 16:01
question
Mathematics, 17.09.2020 16:01
question
Mathematics, 17.09.2020 16:01
question
Mathematics, 17.09.2020 16:01
question
Mathematics, 17.09.2020 16:01
question
Mathematics, 17.09.2020 16:01
question
Mathematics, 17.09.2020 16:01