Write a program to simulate multiple games of craps and


1. Design and implement a simulation of some other racquet sport (e.g., tennis or table tennis).

2. Craps is a dice game played at many casinos. A player rolls a pair of normal six-sided dice. If the initial roll is 2, 3, or 12, the player loses. If the roll is 7 or 11, the player wins. Any other initial roll causes the player to "roll for point." That is, the player keeps rolling the dice until either rolling a 7 or re-rolling the value of the initial roll. If the player re-rolls the initial value before rolling a 7, it's a win. Rolling a 7 first is a loss.

Write a program to simulate multiple games of craps and estimate the probability that the player wins. For example, if the player wins 249 out of 500 games, then the estimated probability of winning is 249/500 = 0.498

Request for Solution File

Ask an Expert for Answer!!
Basic Computer Science: Write a program to simulate multiple games of craps and
Reference No:- TGS01707782

Expected delivery within 24 Hours