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.
Explanation / Answer
please rate - thanks #include #include double mean(int [],int); double standardd(int[],int, double); double calc(int, double); int main() {int x[10],i=0,j,min=32768, max=-32767; double average,sd; do {coutx[i]; if(x[i]>max) max=x[i]; if(x[i]Related Questions
Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.