Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Problem 2: 115 marks] Count numbers above average (filename: CountNumbersAboveAve.java) Write a program that first randomly generates and displays 10 whole numbers between 0 and
Problem 2: 115 marks] Count numbers above average (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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started