Question: In c++ please. The second photo is the input file, thanks! There is a file of Buddy Holly albums on the internet. Each entry has

In c++ please. The second photo is the input file, thanks!  In c++ please. The second photo is the input file, thanks!
There is a file of Buddy Holly albums on the internet. Each

There is a file of Buddy Holly albums on the internet. Each entry has t Eollowing form Name of album Year released from 1 to 12 names of songs (in cut number order) An album separator line is made up of equal signs Your assignment is: for each album: 1. read in the Album 2. Name, Year and songs Sort the songs alphabetically for al1 albums: 1. Sort the albums by Album Name alphabetically 2. Print the Album Name, Date, and the list of songs (alphabetically Some Sample Output : Buddy Holly 1958 10. Baby I Don't Care 7. Everyday 1. I'm Gonna Love You Too 4. Listen to Me 12. Little Baby 3. Look at Me 8. Mailman, Bring Me No More Blues 2. Peggy Sue 11 Rave On! 6. Ready Teddy 5. Valley of Tears 9. Words of Love Notes You will need to use the string operators and methods by Ct+.Here are a few (which you may, or may not, need for this assignment) provided #include // determine the number of characters in a string st.size( orstlength) Isubstring search poe datastring.find("- // picking off a substring ssst.substr (start) ssst.substr(start, length) You may have problems with Input the albums are separated byso you have count there are a different number of songs on the albums, sort you will have to compare the song name (during the to check for equals and eof at the same time so you will need a count' field for each album sort) but you have to swap the name AND the 'cut nusber There is a file of Buddy Holly albums on the internet. Each entry has t Eollowing form Name of album Year released from 1 to 12 names of songs (in cut number order) An album separator line is made up of equal signs Your assignment is: for each album: 1. read in the Album 2. Name, Year and songs Sort the songs alphabetically for al1 albums: 1. Sort the albums by Album Name alphabetically 2. Print the Album Name, Date, and the list of songs (alphabetically Some Sample Output : Buddy Holly 1958 10. Baby I Don't Care 7. Everyday 1. I'm Gonna Love You Too 4. Listen to Me 12. Little Baby 3. Look at Me 8. Mailman, Bring Me No More Blues 2. Peggy Sue 11 Rave On! 6. Ready Teddy 5. Valley of Tears 9. Words of Love Notes You will need to use the string operators and methods by Ct+.Here are a few (which you may, or may not, need for this assignment) provided #include // determine the number of characters in a string st.size( orstlength) Isubstring search poe datastring.find("- // picking off a substring ssst.substr (start) ssst.substr(start, length) You may have problems with Input the albums are separated byso you have count there are a different number of songs on the albums, sort you will have to compare the song name (during the to check for equals and eof at the same time so you will need a count' field for each album sort) but you have to swap the name AND the 'cut nusber

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!