Question: C++ Programming Help This project involves two classes, Song, which has a title, year, and list of artists, and SongLibrary, which contains a list of

C++ Programming Help

C++ Programming Help This project involves two classes, Song, which has a

title, year, and list of artists, and SongLibrary, which contains a list

of Songs. The general flow is to create a Song using its

title and year, then add artists to the Song. Songs are then

This project involves two classes, Song, which has a title, year, and list of artists, and SongLibrary, which contains a list of Songs. The general flow is to create a Song using its title and year, then add artists to the Song. Songs are then added to the SongLibrary. A SongLibrary can then be used to to generate a playlist of Songs from a single year. 1. Complete the Song constructor and the operator== function. 2. Complete the addArtist function. This function should maintain a sorted list of artists. You should be able to maintain this list without calling a sort function. 3. Complete the member functions for the SongLibrary class. Three of these four are very short, so don't overthink them. 4. In the main function, generate some output to check that your Song and SongLibrary classes perform correctly. At a minimum, this will be print statements to dump the contents of each object. A more sophisticated approach would be to create testing functions and just print whether each test passed or not, though this is more complicated than in our previous assignments. 5. In the main function, create additional Songs and at least one more SongLibrary to further test your classes. Write meaningful comments about what your tests are checking for. 6. Document your program by writing comments for the program as a whole and for each function. Be sure to document the parameters and return values. 7. Put your class Song in its own set of .cpp and .h files. Put your class SongLibrary in its own set of .cpp and .h files. Use #include to gain access to them in the other files. Make sure you can still compile and run your program. This project involves two classes, Song, which has a title, year, and list of artists, and SongLibrary, which contains a list of Songs. The general flow is to create a Song using its title and year, then add artists to the Song. Songs are then added to the SongLibrary. A SongLibrary can then be used to to generate a playlist of Songs from a single year. 1. Complete the Song constructor and the operator== function. 2. Complete the addArtist function. This function should maintain a sorted list of artists. You should be able to maintain this list without calling a sort function. 3. Complete the member functions for the SongLibrary class. Three of these four are very short, so don't overthink them. 4. In the main function, generate some output to check that your Song and SongLibrary classes perform correctly. At a minimum, this will be print statements to dump the contents of each object. A more sophisticated approach would be to create testing functions and just print whether each test passed or not, though this is more complicated than in our previous assignments. 5. In the main function, create additional Songs and at least one more SongLibrary to further test your classes. Write meaningful comments about what your tests are checking for. 6. Document your program by writing comments for the program as a whole and for each function. Be sure to document the parameters and return values. 7. Put your class Song in its own set of .cpp and .h files. Put your class SongLibrary in its own set of .cpp and .h files. Use #include to gain access to them in the other files. Make sure you can still compile and run your program

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!