Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

here is a two part question the first is the video store the second is what i ne

ID: 3649233 • Letter: H

Question

here is a two part question the first is the video store the second is what i need answered

video store

During holidays or on weekends, a family or an individual typically rents a movie either from a local store or online. Therefore, we write a program that does the following:
1.Rent a video; that is, check out a video
2. return, or check in, a video
3.create a list of videos owned by the store
4.show details of a particular video
5.print alist of all the videos in the store
6.check whether
7.maintain a customer database
8. Print a list of all the videos rented by each customer.

let us write a program for the video store. This example further illustrates the object-oriented design methodology and, in pirticular and overloading.

The programming requirement tells us that the video store has two major components: videos and customers. We will describe these two components in detial. We also need to maintain various lists:
o A list of all the videos in the store
o A list of all the store's customers
o List of the videos currently rented by each customer



QUESTION I NEED ANSWERED

(Programming Example Video Store)

a. Complete the design and implementation of the class customerType defined in the programming example video store.

b. design and implement the class cutomerListType to create and maintain a list of customers for the video store

Explanation / Answer

#include #include #include s using namespace std; struct node { string video_name; node *next; }; class cutomerListType { private: node *head; public: void add(string name) { if (head==NULL) { head=new node; head->video_name=name; head->next=NULL; } else { node *curr=head; node *prev=NULL; while (curr!=NULL) { prev=curr; curr=curr->next; } curr=new node; curr->video_name=name; curr->next=NULL; } } bool ret_a_video(string name) { node *curr=head; node * prev=NULL; while (curr!=NULL) { if (curr->video_name==name) { prev=curr->next; delete curr; return true; } prev=curr; curr=curr->next; } return false; } void print_all_videos() { node *curr=head; while (curr!=NULL) { cout