Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Big Data In Just 7 Chapters

Authors: Prof Marcus Vinicius Pinto

1st Edition

B09NZ7ZX72, 979-8787954036

More Books

Students also viewed these Databases questions