Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Securing SQL Server Protecting Your Database From Attackers

Authors: Denny Cherry

3rd Edition

0128012757, 978-0128012758

More Books

Students also viewed these Databases questions

Question

B Who has the responsibility to clarify perceptions?

Answered: 1 week ago

Question

2. Enrolling employees in courses and programs.

Answered: 1 week ago

Question

1. Communicating courses and programs to employees.

Answered: 1 week ago

Question

6. Testing equipment that will be used in instruction.

Answered: 1 week ago