Hey yall. Trying to teach myself C++ using the book "Programming and Problem Solving With C++" (5th ed.) by: Nell Dale and Chip Weems... and it's no cake walk. I have a new found respect for programmers and programming in general. Anyway, if any of yall can help me figure out the coding for this, I'd be in your debt.
p. 180
3.) Write a C++ program that computes and outputs the mean and standard deviation of a set of four integer values that are input by the user. The mean is the sum of the four values divided by 4, and the formula for the standard deviation is:
n
s= E (x - x)^2
i=1
÷÷÷÷÷÷÷÷÷÷÷
n - 1
(The 'E' stands for the Sigma symbol (summation). For the 1st 'x', there should be an 'i' as a subscript. For the 2nd 'x', it is supposed to be an x-overbar: The overline is used to indicate a sample mean. The entire equation (after s=) should be housed under a big square root symbol. Treat the division sign(s) as a simple division line. The 'n' should be directly over the 'E' and the i=1 should be directly under the 'E' (Sigma).
Sounds pretty straightforward to me. Where do you need help? Just show us what you have so far (use code tags to show the code nicely formatted, please) and tell us exactly what is going wrong or just plain not there and we will throw ideas at you.
Normally, nothing. But this kind of threads does nothing but pollute the forum thread
index. If you are told to try and solve a problem yourself on one site, it's very unlikely
you'll get a complete solution (which is what the OP probably wants) on another.
Also, I thought it was funny to create an infinite link chain between the two sites xD