Write a C++ class called Song to represent a song in a music collection. The data members of the Song…
The data members of the Song class are strings representing the song title, artist’s name, and the album where the song can be found. These instance variables for the class are to have private access modifiers so you will need to write the appropriate functions to allow a client to access and modify the data values.
Include a function that returns a string that identifies the Song object for display purposes. The general format of this string should be:
As a specific example,
Artist: Passion Pit
A second file is to be written called SongList that contains a main function and separate function to display a menu of options for the user. The menu will contain options that allow the user to:
Add a song.
Remove a song.
Display all the songs in the list.
The menu must list these options in the exact same order, using these numbers (1 – 4). Failure to follow this specification will reduce your project grade by 10%.
The SongList program is to read in a list of songs from a file; when option #4 (Quit) is selected; the program is to save the revised song list in a file with the name, songs.out.
You may use songs.in as a sample input file. However, your program is required to prompt the user to enter the name of the input file.
Recall from the previous project that the file is composed of the three data components (strings) that are separated by varying amount of white-space and a colon. Such as,
SongTitle : Artist : Album
Save your time - order a paper!
Get your paper written from scratch within the tight deadline. Our service is a reliable solution to all your troubles. Place an order on any task and we will take care of it. You won’t have to worry about the quality and deadlinesOrder Paper Now
Computer Science homework help