Question: Problem 5 ( Standard Deviation ) In business applications, you are often asked to compute the mean and standard deviation of data. The mean is
Problem
Standard Deviation
In business applications, you are often asked to compute the
mean
and
standard deviation
of data. The mean is simply the average of the numbers and the standard deviation is a
statistic that tells you how tightly all the various data are clustered around the mean in a
set of data. For example, what is the average age of the students in a class? How close are
the ages? If all the students are the same age, the deviation is
Write a program called
stddev.cpp
that allows users to enter
N
numbers float from
keyboard. Calculate and display the mean and standard deviation of those numbers. Your
program should report the message
Invalid value of N
if
N
Given the following fomulars:
mean
N
N
X
i
x
i
x
x
x
N
N
deviation
s
P
N
i
x
i
mean
N
workspacecschw
go outstddevout srcstddevcpp
outstddevout
Enter the value of N:
Enter numbers:
The mean is
The standard deviation is
outstddevout
Enter the value of N:
Invalid value of
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
