Question: Write a Java program named RandomNumbers that generate 10 random integer numbers between 8 and 25 inclusive and store them in an array named numberList.

Write a Java program named RandomNumbers that generate 10 random integer numbers between 8 and 25 inclusive and store them in an array named numberList. Then the program should do the following: (1, 2, 2 marks)
a) Display the array numberList.
b) Display the average of the numbers in the array numberList.
c) Display how numbers in the array are greater than the average.
Sample Run of the Program
The random generated array is :
15 28 10 19 23 8 27 9 20 10
The average of the array numbers is 16.9
There are 5 numbers greater than the average

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!