Answered step by step
Verified Expert Solution
Link Copied!

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

image text in transcribed

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

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Modern Database Management

Authors: Jeffrey A. Hoffer Fred R. McFadden

9th Edition

B01JXPZ7AK, 9780805360479

More Books

Students also viewed these Databases questions

Question

Evaluate the integral. k dt j+ t? + 1 t + 1 t2 + 1

Answered: 1 week ago

Question

What is the purpose of internal controls

Answered: 1 week ago