asked 173k views
3 votes
Find the code that computes the standard deviation of the 5 numbers which are taken from the keyboard. Not yet answered Marked out of 10.00 Flag question where, σ= population standard deviation ∑= sum of... μ= population mean n= number of scores in sample. Select one: a. float p(f loat a, float b, float c, float d, f, {(a−b) ∗

(a−b); float p (float a, float b, float c, return (a−b)∗(a−b); float f(floata, float b, float c, float k,m; k=a+b+c+d+e; k=5,0; m=p(a,k,b,c,d); m+=p(a,k,b,c,d); m+p=0,k,b,d); m+=p(a,k,b,c,d); m+=p(a,k,b,c,d); return sqrt (m/5,0); int main ()\{ float a,b,c,d,e; cin>>a>>b>>c>>d>>e; float z=p(a,b,c,d,e); cout<0; \} b. float p(float a, float b, float c, floa \{ \} return (a−b)∗(a−b); float f (float a, float b, float c, floa \{ float k,m; k=a+b+c+d+e; k/=5.0; m=p(a,b,c,d,e); m+=p(a,b,c,d,e); m+=p(a,b,c,d,e); m+=p(a,b,c,d,e); m+=p(a,b,c,d,e); return sqrt(m/k); 3 int main () \{ float a,b,c,d,e; c in >a≫>b>c≫>d>>; float z=p(a,b,c,d,e); cout <

1 Answer

7 votes

Answer:

floa \{ float k,m; k=a+b+c+d+e; k/=5.0; m=p(a,b,c,d,e); m+=p(a,b,c,d,e); m+=p(a,b,c,d,e); m+=p(a,b,c,d,e); m+=p(a,b,c,d,e); return sqrt(m/k); 3 int main () \{ float a,b,c,d,e; c in >a≫>b>c≫>d>>; float z=p(a,b,c,d,e); cout <

answered
User Citykid
by
8.2k points
Welcome to Qamnty — a place to ask, share, and grow together. Join our community and get real answers from real people.