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:10
Afluid flows with a velocity field given by v=(x/t)i.. determine the local and convective accelerations when x=3 and t=1.
Answers: 2
question
Engineering, 04.07.2019 18:10
Which of the following components of a pid controlled accumulates the error over time and responds to system error after the error has been accumulated? a)- proportional b)- derivative c)- integral d)- on/off.
Answers: 2
question
Engineering, 04.07.2019 18:20
A3-mm-thick panel of aluminum alloy (k 177 w/m-k, c 875 j/kg-k and ? = 2770 kg/m) is finished on both sides with an epoxy coating that must be cured at or above t,-150°c for at least 5 min. the production line for the curing operation involves two steps: (1) heating in a large oven with air at ts,0-175°c and a convection coefficient of h, 40 w/m2. k, and (2) cooling in a large chamber with air at 25°c and a con- vection coefficient of he 10 w/m2.k. the heating portion of the process is conducted over a time interval te which exceeds the ime required to reach 150°c by 5 min (h = r + 300 s). the coating has an emissivity of ? = 0.8, and the temperatures of the oven and chamber walls are 175 and 25°c, respectively. if the panel is placed in the oven at an initial temperature of 25°c and removed from the chamber at a safe-to-touch tempera ture of 37°c, what is the total elapsed time for the two-step curing operation?
Answers: 3
question
Engineering, 04.07.2019 19:10
How to increase the thermal officiency of an ideal simple rankino cycle? among these methods, which one is the best and why?
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
Arts, 15.07.2020 02:01
Questions on the website: 13722359