Question
This project is based on the Video Store. The Video Store will do the following tasks: Rent a video; that is, check out a video.
This project is based on the Video Store. The Video Store will do the following tasks:
Rent a video; that is, check out a video.
Return, or check in, a video.
Create a list of videos owned by the store.
Show the details of a particular video.
Print a list of all the videos in the store.
Check whether a particular video is in the store.
Maintain a customer database
.Print a list of all the videos rented by each customer.
The video store has two major components: videos and customers. The common things associated with a video are as follows:
Titleof the movie
Names of the stars
Name of the producer
Name of the director
Name of the production company
Number of copies in the store
The class videoType will be used to implement a video. The customer object stores information about a customer, such as the first name, last name, account number, and a list of videos rented by the customer.The class customerType will be used to implement a customer.
The basic operations on an object of type customerType are as follows:
Print the name, the account number, and the list of rented videos.
Set the name and the account number.
Rent a video; that is, add the rented video to the list.
Return a video; that is, delete the rented video from the list.
Show the account number.
The video store will maintain various lists:
A list of all the videos in the store.
A list of all the stores customers.
Lists of the videos currently rented by each customer
Use the function createVideoList to read the videos data from the videos input file and create a list of videos.
Use another function, createCustomerList, to read the customers data from customers input file and create a list of customers.
Use the function displayMenu to inform the user what to do.
Please done in C++, and please seperate the codes from the .cpp and .h
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started