Answered step by step
Verified Expert Solution
Question
1 Approved Answer
c++ code PLEASE FOLLOW ASSIGNMENT REQUIREMENETS: https://www.dropbox.com/s/s2srpfz278lqaao/movies.txt?dl=0 https://www.dropbox.com/s/s2srpfz278lqaao/movies.txt?dl=0 Your assignment is to input the names of two input files CADws system321cmd.exe -- a movies file
c++ code PLEASE FOLLOW ASSIGNMENT REQUIREMENETS:
https://www.dropbox.com/s/s2srpfz278lqaao/movies.txt?dl=0
https://www.dropbox.com/s/s2srpfz278lqaao/movies.txt?dl=0
Your assignment is to input the names of two input files CADws system321cmd.exe -- a movies file and a reviews file and then input that data into 2 arrays: a 1D string array of movie names and a 2D integer array of movie reviews. Your program outputs the total # of movies, the total # of reviews, and then computes the average rating for each movie and determines the most popular movie. Note that you may need additional arrays movies.txt reviews.txt Netflix Movie Analysis* >Number of movies: 250 >Number of reviews: 19811 >> Most popular movie: #92: "Monty Python and the Holy Grail (1975)' Rating: 3.9238 After the initial analysis, the user can then enter a series of movie IDs, one at a time. Let's suppose the user inputs 1 As shown on the right, the program outputs the name of movie #1, and then proceeds to analyze the reviews related to this movie. The program computes and outputs Enter a movie id (-1 to exit) Pulp Fiction (1994) otal reviews: 73 pecial reviews: 3 verage rating: 3.35616 ating Histogram: 5: **13 4: 24 2: 4 1: **10 Total # of reviews for this movie Total # of special reviews submitted for this movie a "special" review is one where the user ID the number of movies in the dataset, then inform the user of their error and ignore that input. Do not assume there are always 250 movies Enter a movie id (-1 to exit) ,1252 *Error: invalid movie idl Enter a movie id (-1 to exit) e **Error: invalid movie id! Enter a movie id (-l to exit) 9 **Error: invalid movie id! Enter a movie id (-1 to exit)-1
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started