Question: Write a C# program to randomly generate an array of 100 integer numbers ranging from 100 to 999. (A) Identify the indexes of 3 largest
Write a C# program to randomly generate an array of 100 integer numbers ranging from 100 to 999.
(A) Identify the indexes of 3 largest numbers in the array using 3 variables. ( Use only comparisons. Cannot use sorting method for this request.)
(B) Identify the original indexes of ascending-sorted numbers in the array. You may use a sorting algorithm and another array for 100 indexes.
Display the original numbers using 10 lines with 10 numbers in each line. Then (A) answer and then (B) answer.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
