Question: c++ 3 files Question 1: Use the class Novel to complete the following task. Implement Event class for selling novels as follows: 1. The member

Question 1: Use the class Novel to complete the following task. Implement Event class for selling novels as follows: 1. The member variables: - event id: int. - event location: string. - number of novels: int. It is unknown and can vary from one event to another. - novels: Novel array, its size is the number of novels. 2. An Event class constructor that receives: event number and location. You have to use this pointer. 3. A member function void setNovels( novels * n, int num_of_novels) which sets the novels for the event according to received array of novels. Note that this function can be used to change the novels as well. 4. A Destructor for Event Class. 5. copy constructor. 6. A member function GetTotalPrice which returns the sum of all novels price in the same event. 7. A friend function removeNovelFromEvent(Event& currentEvent, int n): this function remove the ith novel from the array novels in the currentEvent object and shifts remaining Novels. I should be in a proper range. Note: you have to create new Novel array 8. A friend function printDetails(Event& e) to print the details of the event
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
