Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

7.11 (Statistics: compute deviation) Programming Exercise 5.45 computes the standard deviation of numbers. This exercise uses a different but equivalent formula to compute the standard

image text in transcribed

7.11 (Statistics: compute deviation) Programming Exercise 5.45 computes the standard deviation of numbers. This exercise uses a different but equivalent formula to compute the standard deviation of n numbers. (Xi-mean)2 x, + mean =-=xi + x2 + deviation1 To compute the standard deviation with this formula, you have to store the indi- vidual numbers using an array, so they can be used after the mean is obtained Your program should contain the following methods: Compute the deviation of double values public static double deviation (doublel] x) Compute the mean of an array of double values public static double mean (doublel] x) Write a test program that prompts the user to enter 10 numbers and displays the mean and standard deviation, as presented in the following sample run: Enter 10 numbers: 1.9 2.5 3.7216345 2Enter The mean is 3.11 The standard deviation is 1.55738

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

Step: 3

blur-text-image

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

More Books

Students also viewed these Databases questions