[CSC 204] PlatoRocks question

Andrew J. Pounds pounds at theochem.mercer.edu
Sun Apr 3 16:03:20 EDT 2011


I got a question regarding finding the median in the PlatoRocks program 
when there are an even number of entries.   Let's imagine that you have 
the following rolls tabulated.

First we will assume you have an even number of rolls with the number 8 
8 8 9 being the four rolls in the middle of your list

3 3 3 4 5 5 5 ...  8 8 8 9  ...  16 16 17 17 17 18

The median would be average of the two middle numbers -- in this case 8.

Next  we will assume you have an even number of rolls with the number 8 
8 9 9 being the four rolls in the middle of your list

3 3 3 4 5 5 5 ...  8 8 9 9  ...  16 16 17 17 17 18

The median would be average of the two middle numbers -- then cast to an 
integer -- in this also 8.




-- 
Andrew J. Pounds, Ph.D.  (pounds at theochem.mercer.edu)
Associate Professor of Chemistry and Computer Science
Mercer University,  Macon, GA 31207   (478) 301-5627



More information about the csc204 mailing list