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

Other questions on the subject: Engineering

image
Engineering, 04.07.2019 18:10, jadeochoa4466
The temperature of air decreases as it is compressed by an adiabatic compressor. a)- true b)- false
Answers: 2
image
Engineering, 04.07.2019 18:20, krojas015
Asolid cylinder is concentric with a straight pipe. the cylinder is 0.5 m long and has an outside diameter of 8 cm. the pipe has an inside diameter of 8.5 cm. the annulus between the cylinder ad the pipe contains stationary oil. the oil has a specific gravity of 0.92 and a kinematic viscosity of 5.57 x 10-4 m2/s. most nearly, what is the force needed to move the cylinder along the pipe at a constant velocity of 1 m/s?
Answers: 3
image
Engineering, 04.07.2019 19:10, jimena15
10 kg of co2 is initially contained at 400 kpa and 300 k. the gas constant for carbon dioxide is 189 j/lkg k) and has a specific heat ratio, k, of 1.289. isentropic expansion then occurs until the pressure is 200 kpa. a) determine the initial volume of co2 in m. b) determine the final temperature in k. c) determine the work done by the system during the expansion kl.
Answers: 2
image
Engineering, 04.07.2019 19:10, rhiannpelham60
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 in other subjects:

Konu
English, 13.11.2020 22:00
Konu
History, 13.11.2020 22:00
Konu
Mathematics, 13.11.2020 22:00
Konu
Mathematics, 13.11.2020 22:00