Question: How to write this code (without using linked lists)? This project is based on the Video Store. The Video Store will do the following tasks:
How to write this code (without using linked lists)?
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:
Title of 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.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
