Write a complete C program determine whether a movie is recommended to watch or not based on user input. Write a complete C program based on the above situation and the following instructions. i....


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

Extracted text: Write a complete C program determine whether a movie is recommended to watch or not based on user input. Write a complete C program based on the above situation and the following instructions. i. Declare a structure of movie record called MovieRecord that has: : title (string) :year (int) : rating (float) : recommend (string) Movie title Movie year Movie rating Movie recommendation 11. In main() • Create a structure variable array called movie that can store 3 movie records. • Call getUserDetails() 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 getMovieRatings() • Get the movie title, movie year, and movie rating from the user. o 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. v. In getRecommendation() Identify whether it is recommended to watch the movie or not based on the average rating.

Jun 05, 2022
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here