
Programming your calculator
COIN
Purpose
Simulate tossing a coin and counting how often a head is obtained.
Operation
Enter the (whole) number of tosses. There is no limit on the number, except your time and batteries. With fresh batteries, the calculator will need about 30 seconds for each thousand tosses.
The program will display how many of the tosses were 'heads'.
Do this a few times to see how much it varies each time. Compare your results with someone else's.
If you wish to simulate tosses of a biased coin, you will need to change the fourth line of the program. For example, a change to
will simulate tossing a coin with only a 45% chance of a head each time.
16