Question: Write a program in Java that finds the number of items above the average of all items. The problem is to read 100 numbers, get

Write a program in Java that finds the number of items above the average of all items. The problem is to read 100 numbers, get the average of these numbers, and find the number of the items greater than the average. To be flexible for handling any number of input, we will let the user enter the number of input, rather than fixing it to 100. Sample input: Enter the number of items: 10 Enter the numbers: 3.4 5 6 1 6.5 7.8 3.5 8.5 6.3 9.5 Sample output: Average is 5.75 Number of elements above the average is 6

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!