Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

The program I am trying to write but am very confused on how to do needs to gene

ID: 3534405 • Letter: T

Question

The program I am trying to write but am very confused on how to do needs to generate 10000 random numbers between 1 and 5000 and produce some statistics on them. The program should fill the array with random numbers, and then output the sum, average, largest value, and smallest value in the array. The following functions are required for this program: a createArray() function that will fill the array with the random numbers, a sum() function that will compute the sum of the values in an array, an average() function that will compute the average value in the array, a smallestAt() function that will return the location of the smallest value in the array, a largestAt() function that will return the location of the largest value in the array .. do not hard code the size of the array into the functions.

Appreciate any help!

Explanation / Answer

//here you go: http://ideone.com/cI4Hn6