Question: Complete the following problems below: 1 a . Suppose the data type Student has two fields: a string name and a number average. Given an

Complete the following problems below:
1a. Suppose the data type Student has two fields: a string name and a number average. Given an array of students, studentArray, modify the selection sort algorithm to sort the students by the number average in descending order. (LO 4.1,4.3).
For example, given: [Student('A',2.4), Student('B',3.0), Student('C',3.9), Student('D',2.5)], the result should be: [Student('C',3.9), Student('B',3.0), Student('D',2.5), Student('A',2.4)]
1b. Write your pseudocode directly into the text part of the submittal and provide a link to your replit code.

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!