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. to
addDVD movieID movietitle
Add a new movie to the shop given the movieID number and the movie title. Check if the movieID already exists in the program.
addmember
add new member of the shop. given the memberID and the name. Check i QO f the memberID number already exsits or not.
checkD movieID
List the information for the given movieID, the information should includes ID title, and statusborrowed or exist in shop
checkD movietitle
List the information for the given movieID, the information should includes ID title, and statusborrowed or exist in shop Note that there might be different movies with the same title.
checkM memberID
List all the movies borrowed by the member. given the ID number.
rent movieID memberID
Perform the movie rent action. If the book already rent, you should prompt for the information.
return movieID
Perform the movie return action.
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.
addmovie movie
book added to the system.
addmovie movie
The movieID already exists.
addmovie movie
movie added to the system.
checkD
movie on shelf
addmember name
name added to the system.
addmember name
The customer ID already exists.
addmember name
name added to the system.
rent
Success! movie is borrowed by name
checkD
movie borrowed
rent
Fail! The movie was borrowed by another member.
listmovie
movie borrowed
movie on shelf
checkD
Book borrowed by name:
book
return
Success! The following book has been returned:
book
return
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
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
