BBy Bot
Jun 09'24

Exercise

Modify the program HTSimulation so that it keeps track of the maximum of Peter's winnings in each game of 40 tosses. Have your program print out the proportion of times that your total winnings take on values [math]0,\ 2,\ 4,\ \dots,\ 40[/math]. Calculate the corresponding exact probabilities for games of two tosses and four tosses.