Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Write a complete C++ program to create a music player. Your program should read in several album names, each album has up to 5

Option 3: call a select track to play function that allows the user to choose an album and then a track to play. It should pr 

Write a complete C++ program to create a music player. Your program should read in several album names, each album has up to 5 tracks as well as a genre. First declare genre for the album as an enumeration with at least three entries. Then declare an album structure that has five elements to hold the album name, genre, number of tracks, name of those tracks and track location. You can use the template given below, but highly recommended to use your own variable names and enumeration list. enum genre{ pop, Jazz, Classic}; struct album { string album name; genre kind; int track number; string tracks [51; string tracklocation; } ; Declare a vector (user determines the number of albums at the runtime) of type album to create database for album. In main you should have four option: Option 1: call a function add_album - it allows the user to enter the album details. Option 2: call a function named print_all_album to print out the album details. Option 3: call a select_track_to_play function that allows the user to choose an album and then a track to play. It should print out: When the user selects a track to play your program must call an external program to play the track. Option 4: Quit Enter the option: 1 to add an album 2 to print the album details 3 to play a track fron an album 4 to exit Enter albun name Dangerous Enter genre 0-> pop, 1 -> Jazz, 2 -> Classic Enter nunber of tracks in the album 3 Enter the names for these 3 tracks BlackOrlhite HealTheWorld Who IsIt Enter the file location of these tracks track folderi Enter the opt ion: 1 to add an album 2 to print the album details 3 to play a track from an album 4 to exit : Dangerous Name of the album Genre of the album : pop No. of tracks Tracks are : BlackorWhite HealTheWorld Who IsIt Tracks are located at track_folderi : 3 Enter the option: 1 to add an album 2 to print the album details 3 to play a track fron an album 4 to exit Enter album name Thriller Enter genre 0-> pop, 1 -> Jazz, 2 -> Classic Enter nunber of tracks in the album Enter the P.Y.T. Beatit BillieJean HumanNature Enter the file location of these tracks track_folder2 anes for these 4 tracks Screen shot continue in the next page, these screen shots are taken from a single run.

Step by Step Solution

3.39 Rating (152 Votes )

There are 3 Steps involved in it

Step: 1

Source Code include include using namespace std enum genrepopJa... 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

Basic Business Statistics Concepts And Applications

Authors: Mark L. Berenson, David M. Levine, Timothy C. Krehbiel

12th Edition

132168383, 978-0132168380

More Books

Students also viewed these Accounting questions