Answered step by step
Verified Expert Solution
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 etc
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.1285937431254656Step 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