Question: Answer in C++ please. Make a program that will search through scores of an array and display the scores in descending order to simulate a

 Answer in C++ please. Make a program that will search throughAnswer in C++ please.

Make a program that will search through scores of an array and display the scores in descending order to simulate a high score leaderboard. The program should contain the following: main() - In main, declare an array called scores Ask the user for 5 scores. Store the 5 scores in scores Call a function called sortScores() and pass the array by reference. Call a function called displayScores(). Pass the array by value into that function. sortScores() - This function will accept an array passed by reference and the size of the array. The function will use the selection sort algorithm to sort through array. You will need to modify the algorithm to sort the scores from greatest to least. This function returns no data. displayScores() - This function accepts an array passed and will cout the contents of the array. The program should look like the following

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!