Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Using C++ Create a program that will create classes to represent a movie, and a person (actor, actress, or director). The objects represented by the

Using C++ Create a program that will create classes to represent a movie, and a person (actor, actress, or director). The objects represented by the classes will not be connected with each other in this version.

Details:

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 and add it to the list of movies.

P or p : Input a person and add it to the list of people..

S or s : Show the list of movies input.

D or d : Display the list of people input.

A or a : Print an about message that gives the programmers 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. On startup, you should read input data from two files -- movie.txt and people.txt to initialize the lists. On exit you should write the data from your lists into the files newmovie.txt and newpeople.txt.

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Oracle Database 19c DBA By Examples Installation And Administration

Authors: Ravinder Gupta

1st Edition

B09FC7TQJ6, 979-8469226970

More Books

Students also viewed these Databases questions

Question

How does the concept of hegemony relate to culture?

Answered: 1 week ago