Question: Write a complete C program determine whether a movie is recommended to watch or not based on user input Write a complete program based on

 Write a complete C program determine whether a movie is recommended

Write a complete C program determine whether a movie is recommended to watch or not based on user input Write a complete program based on the above situation and the following instructions. i. Declare a structure of movie record called MovieRecord that has: Movie title title (string) Movie year year (int) Movie rating rating (float) Movie recommendation recommend (string) ii. In main() Create a structure variable array called movie that can store 3 movie records. Call getUser Details() to get the details of the user. Call getMovieRatings() and pass in the structure array movie as argument. Calculate the average rating of the movies. Set average rating as global variable. Call getRecommendation() and pass in the record of each movie as reference. Finally, display the details as per sample output. iii. In getUserDetails) Get the name and user ID of the user. iv. In getMovie Ratings() Get the movie title, movie year, and movie rating from the user. If movie rating entered by user is out of range, ask user to re-enter the movie rating. Calculate the total ratings of the movies and return back the value. In getRecommendation Identify whether it is recommended to watch the movie or not based on the average rating. V

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!