A movie should contain fields for the title, running time in minutes, MPAA ratin
ID: 1715663 • Letter: A
Question
A movie should contain fields for the title, running time in minutes, MPAA rating (if any), whether the movie is in color or not, the format or aspect ratio of the movie (optional), and the year the movie was released.
A person (either an actor or a director) should include first name, last name, birth year, death year (optional), and gender.
You should set up classes for these items and your command interface should allow you to input a movie, input a person, output the last movie input, and output the last person input. In addition, the user should be able to exit the program, get simple help, and find out about the program. The commands must be:
M or m : Input a movie.
P or p : Input a person.
S or s : Show the last movie input.
D or d : Display the last person input.
A or a : Print an about message that gives the programmer’s name and a version for the program.
H or h : Print a help message detailing these commands.
X or x : Exit the program.
In a future project or in class we will connect actors and directors to our Movie information but do not do it in this version.
use C++ plz
Explanation / Answer
#include #include using namespace std; const int SIZE = 50; struct MovieData { char title[SIZE]; char director[SIZE]; int year; int minutesRunning; }; void MovieDisplay(MovieData m) { coutRelated Questions
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.