Write a C++ program that allows a user to play your mixtape, one song at a time, or all at once. The program must contain two classes; one class is to represent a Song (track) and one to represent the Mixtape (playlist). You will then create a playlist/mixtape of songs/tracks in your main function. Songs (or tracks) should be easily created within one line and you should be able to play them. You need at least 4 attributes in the song class, e.g., name, artist, record label, duration, genre, year released, etc. If the user chooses to “play” a track, your program should output a list of statistics about the track (song). You should have the option to play all.
Write a C++
Songs (or tracks) should be easily created within one line and you should be able to play them. You need at least 4 attributes in the song class, e.g., name, artist, record label, duration, genre, year released, etc. If the user chooses to “play” a track, your program should output a list of statistics about the track (song). You should have the option to play all.
![Requirements:
• Create two separate classes and a main
• The Song class must have 4 private data members (attributes)
• The Song class must have at least 2 public data members (functions)
• The Mixtape class must have at least 1 private data member (attribute)
• The Mixtape class must have at least 2 public data members (functions)
• Your implementation of the mixtape (in main) must have at least 5 songs
Your code must include appropriate comments and documentation](/v2/_next/image?url=https%3A%2F%2Fcontent.bartleby.com%2Fqna-images%2Fquestion%2F1c4b0a35-b7ae-4682-9b93-5e61724ed9d4%2F0dc2f391-c109-4320-affc-d1d3fca48f18%2Fg4v7wj_processed.png&w=3840&q=75)
![Sample Output
1. Play Track 1
2. Play Track 2
3. Play Track 3
4. Play Track 4
5. Play Track 5
6. Play All Tracks
7. Quit
Select an option to play: 6
Title: Have You Ever
Artist: Brandy
Genre: R&B/Soul
Year: 1998
Title: Sunday
Artist: Koryn Hawthorne
Genre: Christian
Year: 2020
Title: Familiar.
Artist: Madison Ryann Ward
Genre: Christian
Year: 2020
Title: Stand Up (from Harriet)
Artist: Cynthia Erivo
Genre: Soundtrack
Year: 2019
Title: I Wanna Dance with Somebody (Who Loves Me)
Artist: Whitney Houston
Genre: R&B/Soul
Year: 1987](/v2/_next/image?url=https%3A%2F%2Fcontent.bartleby.com%2Fqna-images%2Fquestion%2F1c4b0a35-b7ae-4682-9b93-5e61724ed9d4%2F0dc2f391-c109-4320-affc-d1d3fca48f18%2Fxw9rh5d_processed.png&w=3840&q=75)
![](/static/compass_v2/shared-icons/check-mark.png)
Trending now
This is a popular solution!
Step by step
Solved in 3 steps with 4 images
![Blurred answer](/static/compass_v2/solution-images/blurred-answer.jpg)
![Database System Concepts](https://www.bartleby.com/isbn_cover_images/9780078022159/9780078022159_smallCoverImage.jpg)
![Starting Out with Python (4th Edition)](https://www.bartleby.com/isbn_cover_images/9780134444321/9780134444321_smallCoverImage.gif)
![Digital Fundamentals (11th Edition)](https://www.bartleby.com/isbn_cover_images/9780132737968/9780132737968_smallCoverImage.gif)
![Database System Concepts](https://www.bartleby.com/isbn_cover_images/9780078022159/9780078022159_smallCoverImage.jpg)
![Starting Out with Python (4th Edition)](https://www.bartleby.com/isbn_cover_images/9780134444321/9780134444321_smallCoverImage.gif)
![Digital Fundamentals (11th Edition)](https://www.bartleby.com/isbn_cover_images/9780132737968/9780132737968_smallCoverImage.gif)
![C How to Program (8th Edition)](https://www.bartleby.com/isbn_cover_images/9780133976892/9780133976892_smallCoverImage.gif)
![Database Systems: Design, Implementation, & Manag…](https://www.bartleby.com/isbn_cover_images/9781337627900/9781337627900_smallCoverImage.gif)
![Programmable Logic Controllers](https://www.bartleby.com/isbn_cover_images/9780073373843/9780073373843_smallCoverImage.gif)