Casio fx-7400G manual Coin

Page 24

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

Image 24
Contents Programming Your Calculator Programming Your Calculator Casio fx-7400G Plus Introduction Running a program Deleting programs Programming your calculator Index of Programs Programming your calculator Calendar PurposeHeron Zero 2 EQ Purpose 3 EQ Purpose Quadeqtn Intrsect Minimum Maximum Search Integral Decimal Factors Dice Twodice Coin Freqdist Difflist Longrun Sransamp Normal Binomial Binprob Cmpndint