I was given three math equations to figure out how much a graph is skewed.
The way the math problems were given to us were
1 2 3 4 5
\bar{d} = \frac{\sum_{i=1}^{n} d_i}{n}
s = \sqrt{{\sum_{i=1}^n (d_i^2) - n \bar{d}^{2}} / {n-1}}
3 * (\bar{d} - M_d) / s
I have a general understanding of C++ it is just how these math problems are worded. I realized the \sum is a summation but not sure how to turn that into code.
int x, y = 2, z = 4;
x = y + z; // x = 6
x = y + pow(y,z); // x = 2 + 16 = 18
x = z + pow(y,y); // x = 4 + 4 = 8
x = z + pow(z, z); // x = 4 + 256 = 260
x = (z + pow(z,z))/(y + z); //x = 260/6 = 43.33 And since the variable is INT, x = 43, if you need the .33 declare it as a float.