Question: Write a program for the following with C++ code Write a program which manages a database of movie rentals using objects Specifically, the program should
Write a program which manages a database of movie rentals using objects Specifically, the program should define a Movie object with the following information on each movie: . Name . Length(in minutes) Genre(e.g: Comedy, Horror, Action, Romance, Drama, etc.) Rental Price(n dollars and cents, e.g: 2.99) The program should also define a MovieRentalDatabase. Its constructor should take a single number as a parameter and use that to create an array of Movie objects, where the size of the array is the parameter value. The program should present a menu and ask the user to select one of the following options: Create and initialize a MovieRentalDatabase. The program should prompt the user how many movies they wish to enter, then it should prompt for all the information on each movie. Display all movie data currently stored in the MovieRentalDatabase. . Change the contents of any one Movie element in the array stored in MovieRentalDatabase Sort the MovieRentalDatabase array by movie name in ascending order Sort the MovieRentalDatabase array by movie name in descending order. . Quit the program. After handling the menu option, the program should continually prompt the user for another menu selection until they choose to quit the program. If the user does not select one of the above menu options, the program should display an error, display the menu of options again, and prompt them to select one again. On the next page is an example of output displayed by the program. Save this program in a file named movieobjects.cpp and submit it
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
