Computers and Technology
Computers and Technology, 17.07.2020 16:01, beccca16

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

answer
Answers: 1

Other questions on the subject: Computers and Technology

image
Computers and Technology, 22.06.2019 07:20, Hcalhoun21
Write a pseudocode solution for each of these problems. 1. design a while loop that lets that user enter a number. the number should be multiplied by 10, and the result stored in a variable named product. the loop should iterate as long as product contains a value less than 100. 2. design a do-while loop that asks the user to enter two numbers. the numbers should be added and the sum displayed. the loop should ask the user whether he or she wishes to perform the operation again. if so, the loop should repeat; otherwise it should terminate. 3. design a for loop that displays the following set of numbers: 0, 10, 20, 30, 40, 50 100. 4. design a nested loop that displays 10 rows of # characters. there should be 15 # characters in each row. 5. convert this for loop to a while loop. declare integer count for count = 1 to 50 display count end for 6. find the error in the following pseudocode. declare boolean finished = false declare integer value, cube while not finished display “enter a value to be cubed.” input value; set cube = value ^ 3 display value, “ cubed is “, cube end while
Answers: 2
image
Computers and Technology, 22.06.2019 11:00, simbupls
Technician a says that the radiator usually cools better if the front air dam is removed. technician b says that when a condenser has a leak it can be repaired easily with epoxy. who is correct?
Answers: 1
image
Computers and Technology, 23.06.2019 17:00, Need1ng
The more powerful, 60 volt cables and the main power shut-off on an hev are both colored orange.
Answers: 1
image
Computers and Technology, 24.06.2019 17:00, yobanajk
Aman travel 200m towards east< br /> from his house then takes left< br /> to turn and moves 200 m north< br /> find the displacement & distance.< br />
Answers: 3
Do you know the correct answer?
You will write a program that allows the user to enter 10 songs and their artists into a playlist an...

Questions in other subjects:

Konu
Spanish, 29.06.2021 19:30