Question: Write a program in JAVA that creates and initializes an array of 5 rows and 6 columns with random integers between 1 and 1000. Make

Write a program in JAVA that creates and initializes an array of 5 rows and 6 columns with random integers between 1 and 1000. Make the following methods and then use them back in the main method, along with proper input and output, to display the results:

getHighest() this method will return the largest element in the array.

getLowest() this method will return the smallest element in the array.

getAverage() this method will return the average of all elements in the array.

getAbove() this method returns the number of elements in the array above a certain value that the user chooses (send this value in as a parameter, rather than having input done within the method itself).

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!