Question: help with this question. only in Java Description Write a Java program to generate 100 random integers between two numbers entered by user. All random
Description Write a Java program to generate 100 random integers between two numbers entered by user. All random numbers must be saved directly in 'Random.txt' file. Then, the program must read all numbers from the file, and calculate the following: 1. The sum of all numbers in the file 2. The average of all numbers in the file. The program should display the generated random numbers, the sum, and the average. Hint: Use the File, Scanner and PrintWriter classes. You might need to use arrays as well. Submit your .java file. Incorrect submission file type will negatively affect your score. Remember to include your name and ID as a comment at the top of the file
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
