SlideShare a Scribd company logo
1 of 2
Download to read offline
In C++ please I need output please
You will be building a linked list. Make sure to keep track of both the head and tail nodes.
(1) Create three files to submit.
PlaylistNode.h - Class declaration
PlaylistNode.cpp - Class definition
main.cpp - main() function
Build the PlaylistNode class per the following specifications. Note: Some functions can initially be
function stubs (empty functions), to be completed in later steps.
Default constructor (1 pt)
Parameterized constructor (1 pt)
Public member functions
InsertAfter() - Mutator (1 pt)
SetNext() - Mutator (1 pt)
GetID() - Accessor
GetSongName() - Accessor
GetArtistName() - Accessor
GetSongLength() - Accessor
GetNext() - Accessor
PrintPlaylistNode()
Private data members
string uniqueID - Initialized to "none" in default constructor
string songName - Initialized to "none" in default constructor
string artistName - Initialized to "none" in default constructor
int songLength - Initialized to 0 in default constructor
PlaylistNode* nextNodePtr - Initialized to 0 in default constructor
Ex. of PrintPlaylistNode output:
(2) In main(), prompt the user for the title of the playlist. (1 pt)
Ex:
(3) Implement the PrintMenu() function. PrintMenu() takes the playlist title as a parameter and
outputs a menu of options to manipulate the playlist. (1 pt)
Ex:
(4) Implement the ExecuteMenu() function that takes 3 parameters: a character representing the
user's choice, a playlist title, and the pointer to the head node of a playlist. ExecuteMenu()
performs the menu options (described below) according to the user's choice, and returns the
pointer to the head node of the playlist.(1 pt)
(5) In main(), call PrintMenu() and prompt for the user's choice of menu options. Each option is
represented by a single character.
If an invalid character is entered, continue to prompt for a valid choice. When a valid option is
entered, execute the option by calling ExecuteMenu() and overwrite the pointer to the head node
of the playlist with the returned pointer. Then, print the menu, and prompt for a new option.
Continue until the user enters 'q'. Hint: Implement Quit before implementing other options. (1 pt)
Ex:
(6) Implement "Output full playlist" menu option in ExecuteMenu(). If the list is empty, output:
Playlist is empty (3 pts)
Ex:
(7) Implement the "Add song" menu option in ExecuteMenu(). New additions are added to the end
of the list. (2 pts)
Ex:
(8) Implement the "Remove song" menu option in ExecuteMenu(). Prompt the user for the unique
ID of the song to be removed.(4 pts)
Ex:
(9) Implement the "Change position of song" menu option in ExecuteMenu(). Prompt the user for
the current position of the song and the desired new position. Valid new positions are 1 - n (the
number of nodes). If the user enters a new position that is less than 1, move the node to the
position 1 (the head). If the user enters a new position greater than n, move the node to position n
(the tail). 6 cases will be tested:
Moving the head node (1 pt)
Moving the tail node (1 pt)
Moving a node to the head (1 pt)
Moving a node to the tail (1 pt)
Moving a node up the list (1 pt)
Moving a node down the list (1 pt)
Ex:
(10) Implement the "Output songs by specific artist" menu option in ExecuteMenu(). Prompt the
user for the artist's name, and output the node's information, starting with the node's current
position. (2 pt)
Ex:
(11) Implement the "Output total time of playlist" menu option in ExecuteMenu(). Output the sum of
the time of the playlist's songs (in seconds). (2 pts)
Ex:
Current file: main.cpp - Load default template...Current file: PlaylistNode.cpp Load default
template... /* Type your code here */Current file: PlaylistNode.h Load default template... 1/ Type
your code here */

More Related Content

Similar to In C++ please I need output please You will be building a .pdf

OverviewThis project will allow you to write a program to get mo.docx
OverviewThis project will allow you to write a program to get mo.docxOverviewThis project will allow you to write a program to get mo.docx
OverviewThis project will allow you to write a program to get mo.docxjacksnathalie
 
Introduction to python programming ( part-3 )
Introduction to python programming ( part-3 )Introduction to python programming ( part-3 )
Introduction to python programming ( part-3 )Ziyauddin Shaik
 
In C++ Plz LAB- Playlist (output linked list) Given main()- complete.pdf
In C++ Plz  LAB- Playlist (output linked list) Given main()- complete.pdfIn C++ Plz  LAB- Playlist (output linked list) Given main()- complete.pdf
In C++ Plz LAB- Playlist (output linked list) Given main()- complete.pdfshreeaadithyaacellso
 
I need help writing the methods for the song and playList class in J.pdf
I need help writing the methods for the song and playList class in J.pdfI need help writing the methods for the song and playList class in J.pdf
I need help writing the methods for the song and playList class in J.pdfarihanthtextiles
 
816 LAB Playlist output linked list Hey I have most of.pdf
816 LAB Playlist output linked list Hey I have most of.pdf816 LAB Playlist output linked list Hey I have most of.pdf
816 LAB Playlist output linked list Hey I have most of.pdfsastaindin
 
BeepComp - Chiptune Creator - User's Guide (v0.2.2)
BeepComp - Chiptune Creator - User's Guide (v0.2.2)BeepComp - Chiptune Creator - User's Guide (v0.2.2)
BeepComp - Chiptune Creator - User's Guide (v0.2.2)Hiro Morozumi
 
816 LAB Playlist output linked list C++ Given main .pdf
816 LAB Playlist output linked list C++ Given main .pdf816 LAB Playlist output linked list C++ Given main .pdf
816 LAB Playlist output linked list C++ Given main .pdfaarokyaaqua
 
Python summer course play with python (lab1)
Python summer course  play with python  (lab1)Python summer course  play with python  (lab1)
Python summer course play with python (lab1)iloveallahsomuch
 
Python summer course play with python (lab1)
Python summer course  play with python  (lab1)Python summer course  play with python  (lab1)
Python summer course play with python (lab1)iloveallahsomuch
 
IntroductionSTATA.ppt
IntroductionSTATA.pptIntroductionSTATA.ppt
IntroductionSTATA.pptssuser3840bc
 
Given main(), complete the SongNode class to include the printSong.pdf
Given main(), complete the SongNode class to include the printSong.pdfGiven main(), complete the SongNode class to include the printSong.pdf
Given main(), complete the SongNode class to include the printSong.pdfillyasraja7
 
Instructions This project focuses on queues and stacks Foll.pdf
Instructions This project focuses on queues and stacks Foll.pdfInstructions This project focuses on queues and stacks Foll.pdf
Instructions This project focuses on queues and stacks Foll.pdfadinathknit
 
You are required to implement all the classes as specified by UML di.pdf
You are required to implement all the classes as specified by UML di.pdfYou are required to implement all the classes as specified by UML di.pdf
You are required to implement all the classes as specified by UML di.pdfarorasales234
 
Implement these classes and a interface in 3 Java programs- Class 1- T.docx
Implement these classes and a interface in 3 Java programs- Class 1- T.docxImplement these classes and a interface in 3 Java programs- Class 1- T.docx
Implement these classes and a interface in 3 Java programs- Class 1- T.docxBlake0FxCampbelld
 

Similar to In C++ please I need output please You will be building a .pdf (15)

OverviewThis project will allow you to write a program to get mo.docx
OverviewThis project will allow you to write a program to get mo.docxOverviewThis project will allow you to write a program to get mo.docx
OverviewThis project will allow you to write a program to get mo.docx
 
Introduction to python programming ( part-3 )
Introduction to python programming ( part-3 )Introduction to python programming ( part-3 )
Introduction to python programming ( part-3 )
 
In C++ Plz LAB- Playlist (output linked list) Given main()- complete.pdf
In C++ Plz  LAB- Playlist (output linked list) Given main()- complete.pdfIn C++ Plz  LAB- Playlist (output linked list) Given main()- complete.pdf
In C++ Plz LAB- Playlist (output linked list) Given main()- complete.pdf
 
Hsjs.pdf
Hsjs.pdfHsjs.pdf
Hsjs.pdf
 
I need help writing the methods for the song and playList class in J.pdf
I need help writing the methods for the song and playList class in J.pdfI need help writing the methods for the song and playList class in J.pdf
I need help writing the methods for the song and playList class in J.pdf
 
816 LAB Playlist output linked list Hey I have most of.pdf
816 LAB Playlist output linked list Hey I have most of.pdf816 LAB Playlist output linked list Hey I have most of.pdf
816 LAB Playlist output linked list Hey I have most of.pdf
 
BeepComp - Chiptune Creator - User's Guide (v0.2.2)
BeepComp - Chiptune Creator - User's Guide (v0.2.2)BeepComp - Chiptune Creator - User's Guide (v0.2.2)
BeepComp - Chiptune Creator - User's Guide (v0.2.2)
 
816 LAB Playlist output linked list C++ Given main .pdf
816 LAB Playlist output linked list C++ Given main .pdf816 LAB Playlist output linked list C++ Given main .pdf
816 LAB Playlist output linked list C++ Given main .pdf
 
Python summer course play with python (lab1)
Python summer course  play with python  (lab1)Python summer course  play with python  (lab1)
Python summer course play with python (lab1)
 
Python summer course play with python (lab1)
Python summer course  play with python  (lab1)Python summer course  play with python  (lab1)
Python summer course play with python (lab1)
 
IntroductionSTATA.ppt
IntroductionSTATA.pptIntroductionSTATA.ppt
IntroductionSTATA.ppt
 
Given main(), complete the SongNode class to include the printSong.pdf
Given main(), complete the SongNode class to include the printSong.pdfGiven main(), complete the SongNode class to include the printSong.pdf
Given main(), complete the SongNode class to include the printSong.pdf
 
Instructions This project focuses on queues and stacks Foll.pdf
Instructions This project focuses on queues and stacks Foll.pdfInstructions This project focuses on queues and stacks Foll.pdf
Instructions This project focuses on queues and stacks Foll.pdf
 
You are required to implement all the classes as specified by UML di.pdf
You are required to implement all the classes as specified by UML di.pdfYou are required to implement all the classes as specified by UML di.pdf
You are required to implement all the classes as specified by UML di.pdf
 
Implement these classes and a interface in 3 Java programs- Class 1- T.docx
Implement these classes and a interface in 3 Java programs- Class 1- T.docxImplement these classes and a interface in 3 Java programs- Class 1- T.docx
Implement these classes and a interface in 3 Java programs- Class 1- T.docx
 

More from sunilverma8487

W wants to place property in an irrevocable trust for her mi.pdf
W wants to place property in an irrevocable trust for her mi.pdfW wants to place property in an irrevocable trust for her mi.pdf
W wants to place property in an irrevocable trust for her mi.pdfsunilverma8487
 
The firms in a duopoly produce differentiated products The .pdf
The firms in a duopoly produce differentiated products The .pdfThe firms in a duopoly produce differentiated products The .pdf
The firms in a duopoly produce differentiated products The .pdfsunilverma8487
 
Sunland Company uses a periodic inventory system For April.pdf
Sunland Company uses a periodic inventory system For April.pdfSunland Company uses a periodic inventory system For April.pdf
Sunland Company uses a periodic inventory system For April.pdfsunilverma8487
 
Sheridan Company Ltd publishes a monthly sports magazine F.pdf
Sheridan Company Ltd publishes a monthly sports magazine F.pdfSheridan Company Ltd publishes a monthly sports magazine F.pdf
Sheridan Company Ltd publishes a monthly sports magazine F.pdfsunilverma8487
 
Soil cation exchange capacity CEC decreases with none of t.pdf
Soil cation exchange capacity CEC decreases with none of t.pdfSoil cation exchange capacity CEC decreases with none of t.pdf
Soil cation exchange capacity CEC decreases with none of t.pdfsunilverma8487
 
Salvatore has the opportunity to invest in a scheme which wi.pdf
Salvatore has the opportunity to invest in a scheme which wi.pdfSalvatore has the opportunity to invest in a scheme which wi.pdf
Salvatore has the opportunity to invest in a scheme which wi.pdfsunilverma8487
 
AON Activity or Node refers to ANS Question 4 Notice to .pdf
AON Activity or Node refers to ANS Question 4 Notice to .pdfAON Activity or Node refers to ANS Question 4 Notice to .pdf
AON Activity or Node refers to ANS Question 4 Notice to .pdfsunilverma8487
 
Cystic Fibrosis and Protein Synthesis Introduction Cystic fi.pdf
Cystic Fibrosis and Protein Synthesis Introduction Cystic fi.pdfCystic Fibrosis and Protein Synthesis Introduction Cystic fi.pdf
Cystic Fibrosis and Protein Synthesis Introduction Cystic fi.pdfsunilverma8487
 
10 Consider the following communication system that convert.pdf
10 Consider the following communication system that convert.pdf10 Consider the following communication system that convert.pdf
10 Consider the following communication system that convert.pdfsunilverma8487
 
Jerry Lucas es el director de divisin Como jefe de sucursa.pdf
Jerry Lucas es el director de divisin Como jefe de sucursa.pdfJerry Lucas es el director de divisin Como jefe de sucursa.pdf
Jerry Lucas es el director de divisin Como jefe de sucursa.pdfsunilverma8487
 
A a streati of erroe information peosuced by a conimand ine.pdf
A a streati of erroe information peosuced by a conimand ine.pdfA a streati of erroe information peosuced by a conimand ine.pdf
A a streati of erroe information peosuced by a conimand ine.pdfsunilverma8487
 
almayacak bir sistem veya srele sonulanabilecek riskler .pdf
almayacak bir sistem veya srele sonulanabilecek riskler .pdfalmayacak bir sistem veya srele sonulanabilecek riskler .pdf
almayacak bir sistem veya srele sonulanabilecek riskler .pdfsunilverma8487
 
1 Preexisting rocks can become sedimentary rocks Put the .pdf
1 Preexisting rocks can become sedimentary rocks Put the .pdf1 Preexisting rocks can become sedimentary rocks Put the .pdf
1 Preexisting rocks can become sedimentary rocks Put the .pdfsunilverma8487
 
How to word the following sentences differently According t.pdf
How to word the following sentences differently According t.pdfHow to word the following sentences differently According t.pdf
How to word the following sentences differently According t.pdfsunilverma8487
 
Bayan Clarks Foods Clarks meyve sularn etiketleme ve da.pdf
Bayan Clarks Foods Clarks meyve sularn etiketleme ve da.pdfBayan Clarks Foods Clarks meyve sularn etiketleme ve da.pdf
Bayan Clarks Foods Clarks meyve sularn etiketleme ve da.pdfsunilverma8487
 

More from sunilverma8487 (15)

W wants to place property in an irrevocable trust for her mi.pdf
W wants to place property in an irrevocable trust for her mi.pdfW wants to place property in an irrevocable trust for her mi.pdf
W wants to place property in an irrevocable trust for her mi.pdf
 
The firms in a duopoly produce differentiated products The .pdf
The firms in a duopoly produce differentiated products The .pdfThe firms in a duopoly produce differentiated products The .pdf
The firms in a duopoly produce differentiated products The .pdf
 
Sunland Company uses a periodic inventory system For April.pdf
Sunland Company uses a periodic inventory system For April.pdfSunland Company uses a periodic inventory system For April.pdf
Sunland Company uses a periodic inventory system For April.pdf
 
Sheridan Company Ltd publishes a monthly sports magazine F.pdf
Sheridan Company Ltd publishes a monthly sports magazine F.pdfSheridan Company Ltd publishes a monthly sports magazine F.pdf
Sheridan Company Ltd publishes a monthly sports magazine F.pdf
 
Soil cation exchange capacity CEC decreases with none of t.pdf
Soil cation exchange capacity CEC decreases with none of t.pdfSoil cation exchange capacity CEC decreases with none of t.pdf
Soil cation exchange capacity CEC decreases with none of t.pdf
 
Salvatore has the opportunity to invest in a scheme which wi.pdf
Salvatore has the opportunity to invest in a scheme which wi.pdfSalvatore has the opportunity to invest in a scheme which wi.pdf
Salvatore has the opportunity to invest in a scheme which wi.pdf
 
AON Activity or Node refers to ANS Question 4 Notice to .pdf
AON Activity or Node refers to ANS Question 4 Notice to .pdfAON Activity or Node refers to ANS Question 4 Notice to .pdf
AON Activity or Node refers to ANS Question 4 Notice to .pdf
 
Cystic Fibrosis and Protein Synthesis Introduction Cystic fi.pdf
Cystic Fibrosis and Protein Synthesis Introduction Cystic fi.pdfCystic Fibrosis and Protein Synthesis Introduction Cystic fi.pdf
Cystic Fibrosis and Protein Synthesis Introduction Cystic fi.pdf
 
10 Consider the following communication system that convert.pdf
10 Consider the following communication system that convert.pdf10 Consider the following communication system that convert.pdf
10 Consider the following communication system that convert.pdf
 
Jerry Lucas es el director de divisin Como jefe de sucursa.pdf
Jerry Lucas es el director de divisin Como jefe de sucursa.pdfJerry Lucas es el director de divisin Como jefe de sucursa.pdf
Jerry Lucas es el director de divisin Como jefe de sucursa.pdf
 
A a streati of erroe information peosuced by a conimand ine.pdf
A a streati of erroe information peosuced by a conimand ine.pdfA a streati of erroe information peosuced by a conimand ine.pdf
A a streati of erroe information peosuced by a conimand ine.pdf
 
almayacak bir sistem veya srele sonulanabilecek riskler .pdf
almayacak bir sistem veya srele sonulanabilecek riskler .pdfalmayacak bir sistem veya srele sonulanabilecek riskler .pdf
almayacak bir sistem veya srele sonulanabilecek riskler .pdf
 
1 Preexisting rocks can become sedimentary rocks Put the .pdf
1 Preexisting rocks can become sedimentary rocks Put the .pdf1 Preexisting rocks can become sedimentary rocks Put the .pdf
1 Preexisting rocks can become sedimentary rocks Put the .pdf
 
How to word the following sentences differently According t.pdf
How to word the following sentences differently According t.pdfHow to word the following sentences differently According t.pdf
How to word the following sentences differently According t.pdf
 
Bayan Clarks Foods Clarks meyve sularn etiketleme ve da.pdf
Bayan Clarks Foods Clarks meyve sularn etiketleme ve da.pdfBayan Clarks Foods Clarks meyve sularn etiketleme ve da.pdf
Bayan Clarks Foods Clarks meyve sularn etiketleme ve da.pdf
 

Recently uploaded

An overview of the various scriptures in Hinduism
An overview of the various scriptures in HinduismAn overview of the various scriptures in Hinduism
An overview of the various scriptures in HinduismDabee Kamal
 
Spellings Wk 4 and Wk 5 for Grade 4 at CAPS
Spellings Wk 4 and Wk 5 for Grade 4 at CAPSSpellings Wk 4 and Wk 5 for Grade 4 at CAPS
Spellings Wk 4 and Wk 5 for Grade 4 at CAPSAnaAcapella
 
SPLICE Working Group: Reusable Code Examples
SPLICE Working Group:Reusable Code ExamplesSPLICE Working Group:Reusable Code Examples
SPLICE Working Group: Reusable Code ExamplesPeter Brusilovsky
 
FICTIONAL SALESMAN/SALESMAN SNSW 2024.pdf
FICTIONAL SALESMAN/SALESMAN SNSW 2024.pdfFICTIONAL SALESMAN/SALESMAN SNSW 2024.pdf
FICTIONAL SALESMAN/SALESMAN SNSW 2024.pdfPondicherry University
 
Sternal Fractures & Dislocations - EMGuidewire Radiology Reading Room
Sternal Fractures & Dislocations - EMGuidewire Radiology Reading RoomSternal Fractures & Dislocations - EMGuidewire Radiology Reading Room
Sternal Fractures & Dislocations - EMGuidewire Radiology Reading RoomSean M. Fox
 
DEMONSTRATION LESSON IN ENGLISH 4 MATATAG CURRICULUM
DEMONSTRATION LESSON IN ENGLISH 4 MATATAG CURRICULUMDEMONSTRATION LESSON IN ENGLISH 4 MATATAG CURRICULUM
DEMONSTRATION LESSON IN ENGLISH 4 MATATAG CURRICULUMELOISARIVERA8
 
Personalisation of Education by AI and Big Data - Lourdes Guàrdia
Personalisation of Education by AI and Big Data - Lourdes GuàrdiaPersonalisation of Education by AI and Big Data - Lourdes Guàrdia
Personalisation of Education by AI and Big Data - Lourdes GuàrdiaEADTU
 
Graduate Outcomes Presentation Slides - English (v3).pptx
Graduate Outcomes Presentation Slides - English (v3).pptxGraduate Outcomes Presentation Slides - English (v3).pptx
Graduate Outcomes Presentation Slides - English (v3).pptxneillewis46
 
ĐỀ THAM KHẢO KÌ THI TUYỂN SINH VÀO LỚP 10 MÔN TIẾNG ANH FORM 50 CÂU TRẮC NGHI...
ĐỀ THAM KHẢO KÌ THI TUYỂN SINH VÀO LỚP 10 MÔN TIẾNG ANH FORM 50 CÂU TRẮC NGHI...ĐỀ THAM KHẢO KÌ THI TUYỂN SINH VÀO LỚP 10 MÔN TIẾNG ANH FORM 50 CÂU TRẮC NGHI...
ĐỀ THAM KHẢO KÌ THI TUYỂN SINH VÀO LỚP 10 MÔN TIẾNG ANH FORM 50 CÂU TRẮC NGHI...Nguyen Thanh Tu Collection
 
The Story of Village Palampur Class 9 Free Study Material PDF
The Story of Village Palampur Class 9 Free Study Material PDFThe Story of Village Palampur Class 9 Free Study Material PDF
The Story of Village Palampur Class 9 Free Study Material PDFVivekanand Anglo Vedic Academy
 
The Liver & Gallbladder (Anatomy & Physiology).pptx
The Liver &  Gallbladder (Anatomy & Physiology).pptxThe Liver &  Gallbladder (Anatomy & Physiology).pptx
The Liver & Gallbladder (Anatomy & Physiology).pptxVishal Singh
 
Spring gala 2024 photo slideshow - Celebrating School-Community Partnerships
Spring gala 2024 photo slideshow - Celebrating School-Community PartnershipsSpring gala 2024 photo slideshow - Celebrating School-Community Partnerships
Spring gala 2024 photo slideshow - Celebrating School-Community Partnershipsexpandedwebsite
 
How to Send Pro Forma Invoice to Your Customers in Odoo 17
How to Send Pro Forma Invoice to Your Customers in Odoo 17How to Send Pro Forma Invoice to Your Customers in Odoo 17
How to Send Pro Forma Invoice to Your Customers in Odoo 17Celine George
 
Andreas Schleicher presents at the launch of What does child empowerment mean...
Andreas Schleicher presents at the launch of What does child empowerment mean...Andreas Schleicher presents at the launch of What does child empowerment mean...
Andreas Schleicher presents at the launch of What does child empowerment mean...EduSkills OECD
 
PSYPACT- Practicing Over State Lines May 2024.pptx
PSYPACT- Practicing Over State Lines May 2024.pptxPSYPACT- Practicing Over State Lines May 2024.pptx
PSYPACT- Practicing Over State Lines May 2024.pptxMarlene Maheu
 
會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽
會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽
會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽中 央社
 
Analyzing and resolving a communication crisis in Dhaka textiles LTD.pptx
Analyzing and resolving a communication crisis in Dhaka textiles LTD.pptxAnalyzing and resolving a communication crisis in Dhaka textiles LTD.pptx
Analyzing and resolving a communication crisis in Dhaka textiles LTD.pptxLimon Prince
 
Major project report on Tata Motors and its marketing strategies
Major project report on Tata Motors and its marketing strategiesMajor project report on Tata Motors and its marketing strategies
Major project report on Tata Motors and its marketing strategiesAmanpreetKaur157993
 

Recently uploaded (20)

An overview of the various scriptures in Hinduism
An overview of the various scriptures in HinduismAn overview of the various scriptures in Hinduism
An overview of the various scriptures in Hinduism
 
OS-operating systems- ch05 (CPU Scheduling) ...
OS-operating systems- ch05 (CPU Scheduling) ...OS-operating systems- ch05 (CPU Scheduling) ...
OS-operating systems- ch05 (CPU Scheduling) ...
 
Spellings Wk 4 and Wk 5 for Grade 4 at CAPS
Spellings Wk 4 and Wk 5 for Grade 4 at CAPSSpellings Wk 4 and Wk 5 for Grade 4 at CAPS
Spellings Wk 4 and Wk 5 for Grade 4 at CAPS
 
SPLICE Working Group: Reusable Code Examples
SPLICE Working Group:Reusable Code ExamplesSPLICE Working Group:Reusable Code Examples
SPLICE Working Group: Reusable Code Examples
 
FICTIONAL SALESMAN/SALESMAN SNSW 2024.pdf
FICTIONAL SALESMAN/SALESMAN SNSW 2024.pdfFICTIONAL SALESMAN/SALESMAN SNSW 2024.pdf
FICTIONAL SALESMAN/SALESMAN SNSW 2024.pdf
 
Sternal Fractures & Dislocations - EMGuidewire Radiology Reading Room
Sternal Fractures & Dislocations - EMGuidewire Radiology Reading RoomSternal Fractures & Dislocations - EMGuidewire Radiology Reading Room
Sternal Fractures & Dislocations - EMGuidewire Radiology Reading Room
 
ESSENTIAL of (CS/IT/IS) class 07 (Networks)
ESSENTIAL of (CS/IT/IS) class 07 (Networks)ESSENTIAL of (CS/IT/IS) class 07 (Networks)
ESSENTIAL of (CS/IT/IS) class 07 (Networks)
 
DEMONSTRATION LESSON IN ENGLISH 4 MATATAG CURRICULUM
DEMONSTRATION LESSON IN ENGLISH 4 MATATAG CURRICULUMDEMONSTRATION LESSON IN ENGLISH 4 MATATAG CURRICULUM
DEMONSTRATION LESSON IN ENGLISH 4 MATATAG CURRICULUM
 
Personalisation of Education by AI and Big Data - Lourdes Guàrdia
Personalisation of Education by AI and Big Data - Lourdes GuàrdiaPersonalisation of Education by AI and Big Data - Lourdes Guàrdia
Personalisation of Education by AI and Big Data - Lourdes Guàrdia
 
Graduate Outcomes Presentation Slides - English (v3).pptx
Graduate Outcomes Presentation Slides - English (v3).pptxGraduate Outcomes Presentation Slides - English (v3).pptx
Graduate Outcomes Presentation Slides - English (v3).pptx
 
ĐỀ THAM KHẢO KÌ THI TUYỂN SINH VÀO LỚP 10 MÔN TIẾNG ANH FORM 50 CÂU TRẮC NGHI...
ĐỀ THAM KHẢO KÌ THI TUYỂN SINH VÀO LỚP 10 MÔN TIẾNG ANH FORM 50 CÂU TRẮC NGHI...ĐỀ THAM KHẢO KÌ THI TUYỂN SINH VÀO LỚP 10 MÔN TIẾNG ANH FORM 50 CÂU TRẮC NGHI...
ĐỀ THAM KHẢO KÌ THI TUYỂN SINH VÀO LỚP 10 MÔN TIẾNG ANH FORM 50 CÂU TRẮC NGHI...
 
The Story of Village Palampur Class 9 Free Study Material PDF
The Story of Village Palampur Class 9 Free Study Material PDFThe Story of Village Palampur Class 9 Free Study Material PDF
The Story of Village Palampur Class 9 Free Study Material PDF
 
The Liver & Gallbladder (Anatomy & Physiology).pptx
The Liver &  Gallbladder (Anatomy & Physiology).pptxThe Liver &  Gallbladder (Anatomy & Physiology).pptx
The Liver & Gallbladder (Anatomy & Physiology).pptx
 
Spring gala 2024 photo slideshow - Celebrating School-Community Partnerships
Spring gala 2024 photo slideshow - Celebrating School-Community PartnershipsSpring gala 2024 photo slideshow - Celebrating School-Community Partnerships
Spring gala 2024 photo slideshow - Celebrating School-Community Partnerships
 
How to Send Pro Forma Invoice to Your Customers in Odoo 17
How to Send Pro Forma Invoice to Your Customers in Odoo 17How to Send Pro Forma Invoice to Your Customers in Odoo 17
How to Send Pro Forma Invoice to Your Customers in Odoo 17
 
Andreas Schleicher presents at the launch of What does child empowerment mean...
Andreas Schleicher presents at the launch of What does child empowerment mean...Andreas Schleicher presents at the launch of What does child empowerment mean...
Andreas Schleicher presents at the launch of What does child empowerment mean...
 
PSYPACT- Practicing Over State Lines May 2024.pptx
PSYPACT- Practicing Over State Lines May 2024.pptxPSYPACT- Practicing Over State Lines May 2024.pptx
PSYPACT- Practicing Over State Lines May 2024.pptx
 
會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽
會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽
會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽
 
Analyzing and resolving a communication crisis in Dhaka textiles LTD.pptx
Analyzing and resolving a communication crisis in Dhaka textiles LTD.pptxAnalyzing and resolving a communication crisis in Dhaka textiles LTD.pptx
Analyzing and resolving a communication crisis in Dhaka textiles LTD.pptx
 
Major project report on Tata Motors and its marketing strategies
Major project report on Tata Motors and its marketing strategiesMajor project report on Tata Motors and its marketing strategies
Major project report on Tata Motors and its marketing strategies
 

In C++ please I need output please You will be building a .pdf

  • 1. In C++ please I need output please You will be building a linked list. Make sure to keep track of both the head and tail nodes. (1) Create three files to submit. PlaylistNode.h - Class declaration PlaylistNode.cpp - Class definition main.cpp - main() function Build the PlaylistNode class per the following specifications. Note: Some functions can initially be function stubs (empty functions), to be completed in later steps. Default constructor (1 pt) Parameterized constructor (1 pt) Public member functions InsertAfter() - Mutator (1 pt) SetNext() - Mutator (1 pt) GetID() - Accessor GetSongName() - Accessor GetArtistName() - Accessor GetSongLength() - Accessor GetNext() - Accessor PrintPlaylistNode() Private data members string uniqueID - Initialized to "none" in default constructor string songName - Initialized to "none" in default constructor string artistName - Initialized to "none" in default constructor int songLength - Initialized to 0 in default constructor PlaylistNode* nextNodePtr - Initialized to 0 in default constructor Ex. of PrintPlaylistNode output: (2) In main(), prompt the user for the title of the playlist. (1 pt) Ex: (3) Implement the PrintMenu() function. PrintMenu() takes the playlist title as a parameter and outputs a menu of options to manipulate the playlist. (1 pt) Ex: (4) Implement the ExecuteMenu() function that takes 3 parameters: a character representing the user's choice, a playlist title, and the pointer to the head node of a playlist. ExecuteMenu() performs the menu options (described below) according to the user's choice, and returns the pointer to the head node of the playlist.(1 pt) (5) In main(), call PrintMenu() and prompt for the user's choice of menu options. Each option is represented by a single character. If an invalid character is entered, continue to prompt for a valid choice. When a valid option is entered, execute the option by calling ExecuteMenu() and overwrite the pointer to the head node
  • 2. of the playlist with the returned pointer. Then, print the menu, and prompt for a new option. Continue until the user enters 'q'. Hint: Implement Quit before implementing other options. (1 pt) Ex: (6) Implement "Output full playlist" menu option in ExecuteMenu(). If the list is empty, output: Playlist is empty (3 pts) Ex: (7) Implement the "Add song" menu option in ExecuteMenu(). New additions are added to the end of the list. (2 pts) Ex: (8) Implement the "Remove song" menu option in ExecuteMenu(). Prompt the user for the unique ID of the song to be removed.(4 pts) Ex: (9) Implement the "Change position of song" menu option in ExecuteMenu(). Prompt the user for the current position of the song and the desired new position. Valid new positions are 1 - n (the number of nodes). If the user enters a new position that is less than 1, move the node to the position 1 (the head). If the user enters a new position greater than n, move the node to position n (the tail). 6 cases will be tested: Moving the head node (1 pt) Moving the tail node (1 pt) Moving a node to the head (1 pt) Moving a node to the tail (1 pt) Moving a node up the list (1 pt) Moving a node down the list (1 pt) Ex: (10) Implement the "Output songs by specific artist" menu option in ExecuteMenu(). Prompt the user for the artist's name, and output the node's information, starting with the node's current position. (2 pt) Ex: (11) Implement the "Output total time of playlist" menu option in ExecuteMenu(). Output the sum of the time of the playlist's songs (in seconds). (2 pts) Ex: Current file: main.cpp - Load default template...Current file: PlaylistNode.cpp Load default template... /* Type your code here */Current file: PlaylistNode.h Load default template... 1/ Type your code here */