Question
Array Statistics Write a Java program that does the following: 1. Ask the user how many values they want to store in an array of
Array Statistics
Write a Java program that does the following:
1. Ask the user how many values they want to store in an array of doubles.
2. Create an array of doubles to hold the number of values given by the user in requirement #1.
3. Prompt the user for a value and store in the array until all of the values have been read.
4. Find the minimum and maximum values stored in the array (do not do this requirement while reading in values from the user's input).
5. Find the average of all of the values stored in the array.
6. Compute the population standard deviation of the values stored in the array (The first type of standard deviation in - How to compute standard deviation (Links to an external site.)Links to an external site.) - 1/2 point extra credit if you write a method to compute the standard deviation using variable-length arguments.
7. Compute the sample standard deviation of the values stored in the array (The second type of standard deviation in How to compute standard deviation (Links to an external site.)Links to an external site.) - 1/2 point extra credit if you write a method to compute the standard deviation using variable-length arguments.
8. Output the results to the screen as exactly shown in the screenshots below (this means match the digits of precision, alignment of numbers, etc). In this program, I am looking for very specific items (make sure to read through the above requirements very carefully).
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started