Question: Q1.) Initialize an array of 5000 integers with random values. Print this array using while loop. Sort this array in descending order using a do-while

Q1.) Initialize an array of 5000 integers with random values. Print this array using while loop. Sort this array in descending order using a do-while loop(s). Then print this sorted array in reverse order using while loop, also find sum and average of reversed array.

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!