Question: Could someone please help me with this C++ project, the instructions are below: Consider a class Movie that contains information about a movie. The class
Could someone please help me with this C++ project, the instructions are below:
Consider a class Movie that contains information about a movie. The class has the following attributes:
The movie name
The MPAA rating (for example, G, PG, PG-13, r)
Rotten Tomatoes score (from 0 100)
The number of viewers that have rated this movie as a 1 (Terrible)
The number of viewers that have rated this movie as a 2 (Bad)
The number of viewers that have rated this movie as a 3 (oK)
The number of viewers that have rated this movie as a 4 (Good)
The number of viewers that have rated this movie as a 5 (Great)
The class has at least the following public methods (add other methods as you see fit):
Accessor and mutator methods for movie name, MPAA rating, and Rotten Tomatoes score.
Write a function addRating() that takes an integer as an input parameter. The function should verify that the parameter is a number between 1 and 5, and if so, increment the number of people rating the movie that match the input parameter. For example, if 3 is the input parameter, then the number of people that rated the movie as a 3 should be incremented by 1.
Write another function, getAverage(), that returns the average value for all of the movie ratings.
Write a function called tomatometer which returns Rotten if the Rotten Tomatoes rating is under 60 and Fresh if the rating is 60 or above.
Finally, add a constructor that allows the programmer to create the object with a specified name and MPAA rating. The number of people rating the movie should be set to 0 in the constructor. The Rotten Tomatoes rating should be set to zero.
Test the class by writing a main function in a file called Project1.cpp that creates 3 movie objects, adds at least five ratings for each movie, and outputs the movie name, MPAA rating, Rotten Tomatoes rating, whether it is Fresh or Rotten, and average viewer rating for each movie object.
Other requirements
Follow the course code style guide and good programming practices.
Put your class interface in a header file called Movie.h and document each method with in the same manner as the BagInterface (see pages 24-25 in the book). This is called java-doc style commenting.
Put your class implementation in a source file called Movie.cpp.
Make sure your code handles incorrect/unusual data properly.
If you wrote the program in an environment other than Visual Studio 2017 it is your responsibility to ensure that it works in VS 2017 (which is what Ill be grading in).
Put a comment at the top of all files with your full name, class number, and assignment name like so:
// Joe Smith
// CS Programming Project 1
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
