Author | Message |
---|---|
SierraMountain89
Posts: 3
|
Posted 23:06 May 10, 2016 |
Hello, I'm stuck on Problem #2 for Homework 6. I'm certain that I need to find a way to create a loop/loops to calculate the mean and standard deviation, but I am uncertain as to how I need to proceed. |
aalva190
Posts: 64
|
Posted 23:10 May 10, 2016 |
first things first, lol its problem 5 hehe. I was confused i was like, dam he posted it already?
Anywhoo, yes ur absolutely correct, u have to do loops for the sum of all values x^2(this is thing in the equation) and the sum of all values x (this is the thing being squared in the equation) this goes in the loop. x is the users input fyi and for the mean i recomend using a counter in the loop to divide by the number of inputs depending how many the user enters. everthing else like 1/n and n-1 and the square root is all outside the loop hoepfully that helps Last edited by aalva190 at
23:12 May 10, 2016.
|