Question: Write 2 Java programs: one that generates a user-specified number of random values in a user specified range and writes the numbers to a file;

 Write 2 Java programs: one that generates a user-specified number of

Write 2 Java programs: one that generates a user-specified number of random values in a user specified range and writes the numbers to a file; then write a program that computes the sum, average, minimum and maximum of the set of Integers read from the file. A sample run of the second program should look like the following: The number of values was: 200 The sum of the numbers is: 2280 The average is 11.4 The minimum value was 1 The maximum value was 25

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!