https://mynursingpaper.com/wp-content/uploads/2020/06/cropped-155972031988413967-1-768x146-1-300x57.png 0 0 admin https://mynursingpaper.com/wp-content/uploads/2020/06/cropped-155972031988413967-1-768x146-1-300x57.png admin2020-08-24 20:18:402020-08-24 20:18:40Write a C++ class called Song to represent a song in a music collection. The data members of the Song...
Write a C++ class called Song to represent a song in a music collection. 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: Title: [removed] Artist: [removed] Album: [removed] As a specific example, Title: Sleepyhead Artist: Passion Pit Album: Manners 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. Quit. 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
Mynursingpaper.com is a unique service that provides guidance with different types of content. Please rest assured that the service is absolutely legal and doesn’t violate any regulations