Question: Java task: In the 17th century, the discipline of probability theory got its start when a gambler asked a mathematician friend to explain some observations
Java task: In the 17th century, the discipline of probability theory got its start when a gambler asked a mathematician friend to explain some observations about dice games. Why did he, on average, lose a bet that at least one six would appear when rolling a die four times? And why did he seem to win a similar bet, getting at least one double-six when rolling a pair of dice 24 times? Nowadays, it seems astounding that any person would roll a pair of dice 24 times in a row, and then repeat that many times over. Lets do that experiment on a computer instead. Simulate each game a million times and print out the wins and losses, assuming each bet was for $1.
- Simulate 1000000 plays of the the first game: You win if one get one six in four rolls of one dice.
- Simulate 1000000 plays of the the second game: You win if one get double sixes in twenty four rolls of two dice.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
