Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

The task is to design a class which implements the concept of TV Manger utilizing the concepts of linked list and perform certain operations on

The task is to design a class which implements the concept of TV Manger utilizing the concepts of linked list and perform certain operations on this list. You have to create the TV Manager Class, which can perform all the listed tasks.

C++ program Tasks Using the class playlist develop a class that has the following methods: 1. A method (addPlaylist method) that allows the user to add a new playlist to a linked list without replacing any other lists either at start, at end or before or after a certain list. 2. A method that allows the user to replace an existing playlist with a new playlist to the linked list (name it replacePlaylist). 3. A method that allows the user to remove an existing playlist from the linked list (name it deletePlaylist - in the method ask the user for some unique identifier to remove only the intended playlist). 4. A method that prints details of all songs in a specific playlist (name it printPlaylist). 5. A main method that demonstrates the methods above.

image text in transcribed

Note: No changes can be made to basic given structures and class

Sample Code: struct list{ int listid; string listname; list *next; list *prev; song *first; }; struct song string name; string genre; string singer; string date_of_release; song *ahead; song *recent; }; class playlist private: list *head; public: list() { head=NULL; } }

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Pro SQL Server Administration

Authors: Peter Carter

1st Edition

1484207106, 9781484207109

More Books

Students also viewed these Databases questions

Question

What is meant by 'Wealth Maximization ' ?

Answered: 1 week ago