Question: Java program: Standard Deviations Instructions: Write a program to input exactly 15 doubles, then calculate the mean and the standard deviation for those numbers, then

Java program: Standard Deviations

Instructions:

Write a program to input exactly 15 doubles, then calculate the mean and the standard deviation for those numbers, then to output the mean and the standard deviation, then to output each number followed by its number of standard deviations from the mean.

To calculate the standard deviation:

-Calculate the mean Calculate the sum of the squares of the difference of each number from the mean.

-Divide that by the number of elements (15).

-Take the square root of that.

Example output:

Enter a score: 67

Enter a score: 75

Enter a score: 80

Enter a score: 99

Enter a score: 50

Enter a score: 92

Enter a score: 83

Enter a score: 85

Enter a score: 87

Enter a score: 77

Enter a score: 72

Enter a score: 69

Enter a score: 55

Enter a score: 73

Enter a score: 76

The mean is 76.0

The standard deviation is 12.452576707921404

67.0 -0.72

75.0 -0.08

80.0 0.32

99.0 1.85

50.0 -2.09

92.0 1.28

83.0 0.56

85.0 0.72

87.0 0.88

77.0 0.08

72.0 -0.32

69.0 -0.56

55.0 -1.69

73.0 -0.24

76.0 0.00

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!