Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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 for the following with C++ code image text in transcribed
image text in transcribed
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

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

More Books

Students also viewed these Databases questions