The reason I put the formula for STD - especially the 2nd variation of the formula - was to formulate it in a way that fits perfectly into the program structure I presented for calculating the mean.
I will not be writing the program, which is just a way of showing you do not yet understand the logic of the program I already provided. Here's a clue: Every place you see AGE_SUM add a parallel statement for AGESQUARE_SUM. Same thing with REMOVED_SUM.
Then where the ratio is calculated, you will have all the variable needed for generating STD.
... View more