Answered step by step
Verified Expert Solution
Question
1 Approved Answer
C++ Help starting on this programming assignment This project involves two classes, Song, which has a title, year, and list of artists, and SongLibrary, which
C++ Help starting on this programming assignment
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 programStep by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started