subject

You will write a program that allows the user to enter 10 songs and their artists into a playlist and will sort the entries by artist order. The program should use a 10 element array of structure objects that holds two string variables: artist and title. Once the data has been read in and stored, it should sort the entries in ascending order by artist. It should then display the sorted array with appropriate headings. Modularity: The main function should create the Playlist object and call at least three other functions:
1. Get the data from the user. Using a loop, have the user populate the playlist object array with 10 artist and songs in no particular order. No validation is necessary. However, you should use the C++ getline function instead of cin so that the user can type spaces in the name and song title.
2. Sort the list. You may use either the bubble sort or the selection sort to sort your playlist.
3. Display the list. The function should display the artist and title in sorted order with appropriate headings. Using C++ program

ansver
Answers: 1

Another question on Computers and Technology

question
Computers and Technology, 22.06.2019 11:10
The total cost of textbooks for the term was collected from 36 students. create a histogram for this data. $140 $160 $160 $165 $180 $220 $235 $240 $250 $260 $280 $285 $285 $285 $290 $300 $300 $305 $310 $310 $315 $315 $320 $320 $330 $340 $345 $350 $355 $360 $360 $380 $395 $420 $460 $460
Answers: 2
question
Computers and Technology, 22.06.2019 16:00
Why should characters such as / \ " ' * ; - ? [ ] ( ) ~ ! $ { } < > # @ & | space, tab, and newline be avoided in file names?
Answers: 2
question
Computers and Technology, 22.06.2019 22:00
During physical science class ben and jerry connected three identical lightbulbs in parallel to a battery where happens when ben removes one of the lightbulbs from it’s socket
Answers: 2
question
Computers and Technology, 23.06.2019 00:30
Quic which one of the following is the most accurate definition of technology? a electronic tools that improve functionality b electronic tools that provide entertainment or practical value c any type of tool that serves a practical function d any type of tool that enhances communication
Answers: 1
You know the right answer?
You will write a program that allows the user to enter 10 songs and their artists into a playlist an...
Questions
question
Mathematics, 18.03.2021 03:30
question
Mathematics, 18.03.2021 03:30
question
Mathematics, 18.03.2021 03:30
question
English, 18.03.2021 03:30
question
Mathematics, 18.03.2021 03:30
question
Physics, 18.03.2021 03:30
question
Mathematics, 18.03.2021 03:30
Questions on the website: 13722367