Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Use Java - loop etc Write a program which reads in an unknown amount of input and computes the mean and standard deviation of the

Use Java - loop etcimage text in transcribed

Write a program which reads in an unknown amount of input and computes the mean and standard deviation of the input. The formula for standard deviation is given below: s = Squareroot sigma x_i^2 - 1 (sigma x_i)^2 - 1 Input Validation: All numbers must be positive, -1 can be the only negative number used to stop the input. Sample Output 1: Enter positive numbers (-1 to end input): 3.5 8 3.4 2.78 9 10 3.375 -1 Mean: 5.722142857142857 Deviation: 3.1285937431254656

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

Question

LO2 Discuss important legal areas regarding safety and health.

Answered: 1 week ago