Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

(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

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

Beginning VB 2008 Databases

Authors: Vidya Vrat Agarwal, James Huddleston

1st Edition

1590599470, 978-1590599471

Students also viewed these Databases questions

Question

Describe the desirable behavior.

Answered: 1 week ago

Question

In e O 1 O-1

Answered: 1 week ago

Question

Define offboarding. Why is it important?

Answered: 1 week ago