[CSC 204] THIS IS NOT HARD!

Andrew J. Pounds pounds at theochem.mercer.edu
Fri Apr 10 15:01:40 EDT 2009


Okay folks -- what I gave you for sample output was exactly that -- 
sample OUTPUT from the program once it processed your dice rolls.  In 
the original paper description of the project I described your input 
section and how it should  ask the user for the correct input.  That 
must still be there!

I have also gotten some questions related to the "-1" in the output.  I 
described this in the bottom of the e-mail that had the poorly formatted 
output.  Because some of you did not read that far, I am repeating it here.

> Now -- pay special attention to the Delta Mode column.   For small 
> numbers of rolls, it is quite possible that you never roll the same 
> number twice -- which means all the elements of the Delta array will 
> be zero.  If this is the case, return a negative one.
>
> Also, the probability of rolling the mode is listed as a percentage -- 
> so calculate the probability and multiply by  100.
>
> Some of you may have computers that aren't up to the challenge of 
> computing the "billion" rolls.  Test with
> smaller rolls, get your formatting right, and then send me the code 
> after you change the max rolls back to a billion.
>
> Finally, the program is due tomorrow night.  I will, however, accept 
> the extra credit late with a penalty of 25% taken off per day late.  
> So the maximum you can get on Saturday is 15 points, 10 points on 
> Sunday, 5 points on Monday. 

-- 
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