Question: (filename: CountNumbersAboveAve.java ) Write a program that first randomly generates and displays 10 whole numbers between 0 and 100, saves them into an output file,
(filename: CountNumbersAboveAve.java)
Write a program that first randomly generates and displays 10 whole numbers between 0 and 100, saves them into an output file, and calculates the average. The program then reads the saved numbers back from the file one by one and counts how many of them are above the average. A sample run is given below
The 10 random numbers are:
44 61 98 45 45 17 63 24 9 95
The average is 50.10 and there are 4 numbers above the average.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
