Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

C++ Rolling Stones Albums There is a file of Rolling Stones albums on the internet. Each entry has the following form: Name of album Year

C++ Rolling Stones Albums There is a file of Rolling Stones albums on the internet. Each entry has the following form: Name of album Year released from 1 to 30 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 Name, Year and Songs 2. Sort the songs alphabetically for all albums: 1. Sort the albums by Album Name alphabetically 2. Print the Album Name, Date, and the list of songs (alphabetically) Click here to see the Input File Some Sample Output: Beggars Banquet Year: 1968 3. Dear Doctor 9. Factory Girl 5. Jigsaw Puzzle 2. No Expectations 4. Parachute Woman 7. Prodigal Son 10. Salt of the Earth 8. Stray Cat Blues 6. Street Fighting Man 1. Sympathy For the Devil Notes: With the exception of removing blank lines at the end of the data file, you are not allowed to change the data file. You will need to use the string operators and methods provided by C++. Here are a few. #include  // determine the number of characters in a string st.size() or st.length() // substring search poe = datastring.find("="); // picking off a substring ss = st.substr(start, length); // convert a string to an int int n = atoi(stringname.c_str()); 

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Filing And Computer Database Projects

Authors: Jeffrey Stewart

2nd Edition

007822781X, 9780078227813

More Books

Students also viewed these Databases questions

Question

What are the innovations taking place in franchising today?

Answered: 1 week ago

Question

What is the basis for Security Concerns in Cloud Computing?

Answered: 1 week ago

Question

Describe the three main Cloud Computing Environments.

Answered: 1 week ago