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, 03.07.2019 14:10
The y form of iron is known as: a) ferrite b) cementite c) perlite d) austenite
Answers: 3
question
Engineering, 04.07.2019 18:10
Steel is coated with a thin layer of ceramic to protect against corrosion. what do you expect to happen to the coating when the temperature of the steel is increased significantly? explain.
Answers: 1
question
Engineering, 04.07.2019 18:10
Aplate clutch has a single pair of mating friction surfaces 250-mm od by 175-mm id. the mean value of the coefficient of friction is 0.30, and the actuating force is 4 kn. a) find the maximum pressure and the torque capacity using the uniform-wear model. b) find the maximum pressure and the torque capacity using the uniform-pressure model.
Answers: 3
question
Engineering, 04.07.2019 18:10
Thermal stresses are developed in a metal when its a) initial temperature is changed b) final temperature is changed c) density is changed d) thermal deformation is prevented e) expansion is prevented f) contraction is prevented
Answers: 2
You know the right answer?
Problem Write a C program to maintain movies records and perform statistical analysis over them for...
Questions
Questions on the website: 13722363