Question: C + + movie shop management program The program should include those followings. ( 1 to 8 ) 1 . addDVD movieID movie _

"C++ movie shop management program
The program should include those followings.(1 to 8)
1. addDVD movieID movie_title
Add a new movie to the shop given the movieID number and the movie title. Check if the movieID already exists in the program.
2. addmember
add new member of the shop. given the memberID and the name. Check i QO01 f the memberID number already exsits or not.
3. checkD1 movieID
List the information for the given movieID, the information should includes ID, title, and status(borrowed or exist in shop)
4. checkD2 movie_title
List the information for the given movieID, the information should includes ID, title, and status(borrowed or exist in shop). Note that there might be different movies with the same title.
5. checkM memberID
List all the movies borrowed by the member. given the ID number.
6. rent movieID memberID
Perform the movie rent action. If the book already rent, you should prompt for the information.
7. return movieID
Perform the movie return action.
8. listmovie
List all the movies in the system.
Sample output
The system has a user interface to accept user command (with a prompt >>) and respond accordingly.
Welcome to the library! please input your commands!
>> listmovie
There is no movie in the system.
>> listmember
There is no member in the system.
>> addmovie1 movie1
book1 added to the system.
>> addmovie1 movie2
The movieID already exists.
>> addmovie2 movie2
movie2 added to the system.
>> checkD11
1 movie1 on shelf
>> addmember1 name1
name1 added to the system.
>> addmember1 name2
The customer ID already exists.
>> addmember2 name2
name2 added to the system.
>> rent11
Success! movie1 is borrowed by name1.
>> checkD11
1 movie1 borrowed
>> rent 12
Fail! The movie was borrowed by another member.
>> listmovie
1 movie1 borrowed
2 movie2 on shelf
>> checkD1
Book borrowed by name1:
1 book1
>> return 1
Success! The following book has been returned:
1 book1
>> return 2
Fail! The book has not been borrowed.
>> blahblah
Unknown command!
>> exit
Exit the system!"

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!