User Profile
Collapse
-
loide25 started a topic calculating and printing the sum,mean,variance and standard deviation of 7 numbers.in Ccalculating and printing the sum,mean,variance and standard deviation of 7 numbers.
Write a C++ program that will calculate and print the sum, mean, variance, and standard deviation of 7 numbers. The numbers must be input as data. This input data must be printed by the program. If your seven numbers input has been named A, B, C, D, E, F, G, then the variance may be computed as variance=(A-mean)^2+(B-mean)^2+(G-mean)^2}/6 and the standard deviation is the square root of the variance. -
harmonic Series to compute the sum of a harmonic series where n=1000
how to write a harmonic series to compute the sum of a harmonic series 1+1/2+1/3+1/4+1/n,where n=1000.The program shall prompt the user for the value of n.Keep the sum in a double variable and take note that 1/2 gives 0 but 1.0/2 gives o.5.
No activity results to display
Show More