Write a program(stats.cpp) that reads a set of floating-point data values, andco
ID: 3613208 • Letter: W
Question
Write a program(stats.cpp) that reads a set of floating-point data values, andcomputes the following statistics:a) Minimum value
b) Maximum value
c) Range i.e., the difference between the largest and the smallestvalues
d) Mean, also known as average. It is computed as follows:
e) Standard deviation. You may use the following formula.
In the above formulae, x1,x2,...,xN refer to the set of valuesprovided by the user. You can assume N to be 10 in yourprogram. Write a program(stats.cpp) that reads a set of floating-point data values, andcomputes the following statistics:
a) Minimum value
b) Maximum value
c) Range i.e., the difference between the largest and the smallestvalues
d) Mean, also known as average. It is computed as follows:
e) Standard deviation. You may use the following formula.
In the above formulae, x1,x2,...,xN refer to the set of valuesprovided by the user. You can assume N to be 10 in yourprogram.