Question: JAVA Write a program that will write 5000 random number to a file named RandomNumbers.txt. Then, read this file and do the following: Write the

JAVA

Write a program that will write 5000 random number to a file named RandomNumbers.txt. Then, read this file and do the following:

Write the even number to a file named EvenNumbers.txt

Write the odd number to a file named OddNumbers.txt

Write the following statistics to the file named Stats.txt

Largest number in RandomNumbers.txt

Smallest number in RandomNumbers.txt

The average of all the values in RandomNumbers.txt

Number of even values

Number of odd values

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!