Question: Given the following array, write a program to sort the array using a selection sort and display the number of scores that are less than
Given the following array, write a program to sort the array using a selection sort and display the number of scores that are less than 500 and those greater than 500.
![Scores [0] 198 Scores [1] = 486 Scores [2] = 651 Scores [4] Scores [3] = 85 Scores[6] 216 Scores [5] = 912 %3D 73 Scores [7] 319 Scores [8] = 846 %3D %3D Scores [9] 989](https://dsd5zvtm8ll6.cloudfront.net/si.question.images/images/question_images/1608/2/0/8/0925fdb4edc3042c1608208090805.jpg)
Scores [0] 198 Scores [1] = 486 Scores [2] = 651 Scores [4] Scores [3] = 85 Scores[6] 216 Scores [5] = 912 %3D 73 Scores [7] 319 Scores [8] = 846 %3D %3D Scores [9] 989
Step by Step Solution
3.29 Rating (164 Votes )
There are 3 Steps involved in it
package leetcode class SelectionSort void sortint arr int n arrlength for int ... View full answer
Get step-by-step solutions from verified subject matter experts
