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

Other questions on the subject: Computers and Technology

image
Computers and Technology, 22.06.2019 08:30, gg68814
1.the index finger on your right hand types the f r v 4 j u m 7 h y 6 n lo.9 j u 7 m g t 5 b 2.if you need to multiply 400, 2, and 1 ½, what would you type on the numeric keypad? 400*2*1.5 400/2*1.5 400/2/1.5 400*2*1½ 3.select all examples of proper keyboarding technique. rest your fingers gently on the home row or home keys. slouch in your chair. rest your palms on the keyboard. relax your fingers. keep your hands lower than your elbows.
Answers: 1
image
Computers and Technology, 22.06.2019 16:20, Aleja9
It policy compliance and emerging technologies respond to the following: propose at least three control measures that organizations need to put in place to ensure that they remain complaint with emerging technologies and in a continually changing it environment. examine the correlation of effective configuration management and change control procedures to remain compliant with emerging technologies and it security changes.
Answers: 2
image
Computers and Technology, 22.06.2019 17:00, hollodom9654
Which of the following is not contained on the slide show toolbar? a. next button b. slide button c. close button d. pen tool
Answers: 1
image
Computers and Technology, 23.06.2019 01:10, brooklynneramos9956
Problem 1 - hashing we would like to use initials to locate an individual. for instance, mel should locate the person mark e. lehr. note: this is all upper case. generate a hash function for the above using the numbers on your telephone. you know, each letter has a number associated with it, so examine your telephone keypad. generate 512 random 3 letter initials and take statistics on a linked list array size 512 to hold this information report how many have no elements, 1 element, 2 elements, does this agree with the hashing statistics distribution?
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 in other subjects:

Konu
Mathematics, 27.09.2019 12:00