Question: Watch the VideoNote The Sorted Golf Scores Problem. Reference Programming Exercise 1 on page 4 6 7 . 1 . Sorted Golf Scores VideoNote Sorted
Watch the VideoNote The Sorted Golf Scores Problem. Reference Programming Exercise on page
Sorted Golf Scores
VideoNote Sorted Golf Scores
Design a program that asks the user to enter golf scores. The scores should be stored in an Integer array. Sort the array in ascending order and display its contents.
Build a flowchart for Programming Exercise using an Insertion Sort as demonstrated by Tony Gaddis. Do not confuse this exercise with the Debugging Exercise directly above it
The VideoNote solution is too long in my opinion. I want you focused on the sorting algorithm, not the other array functions. So make the following changes to your flowchart:
Leave out the getScoresdisplayScoresand swapfunctions and the function calls to them.
In the mainmodule reduce the scoresarray to and initialize it with these numbers upon declaration:
Also in the mainmodule replace the call to displayScoreswith one line that will display all the array's contents: Display scores.
And to swap array elements, replicate the whole insertionSortfunction as you see it on page
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
