Question: Write a Java program that generates a 100 random numbers between 501 and 599 and adds each one of them to an arraylist named numbers.

Write a Java program that generates a 100 random numbers between 501 and 599 and adds each one of them to an arraylist named numbers. Your program should then call the following methods and print their returned values: getLowest(): to get the lowest number in the arraylist. getHighest0: to get the highest number in the arraylist. getTotal0: to get the total of the numbers in the arraylist. getAverage(): to get the average of the numbers in the arraylist. getStandardDeviation): to get the standard deviation of the numbers in the arraylist. The standard deviation (SD) can be calculated using the formula: SD = n-1 where n is the size of the numbers arraylist, x, is the number at index i in the arraylist, and A is the average of the numbers in the arraylist. Your program should define all of the above methods. All these methods are static. They all take the arraylist numbers as an argument, and they all retum double. Here is sample outcome STATISTICAL ANALYSIS OF 100 RANDI! NUMBERS BETWEEN 501 AND 599 LOWEST NUMBER 506.00 HIGHEST NUMBER: 599.00 NUMBERS TOTAL: 55194.00 NUMBERS AVERAGE: 551.94 27.29 STANDARD DEVIATION
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
