Question: Using Mathlab, Write a program that simulates the rolling of two dice for craps randomly generating an integer between 1 and 6 for each die.
Using Mathlab,
Write a program that simulates the rolling of two dice for craps randomly generating an integer between and for each die. The rules for the Pass Line bet is as follows:
You bet $ at the beginning of the first roll. You win $ if a or is rolled, or you lose your bet if or is rolled known as craps Any other number that rolls becomes the point and the point must roll again before a to win $ if a is rolled before the point you lose.
Display a message stating what you rolled on the first roll and whether you won, lost, or point. If point, then roll again and display all subsequent rolls and whether you won or lost on the second and subsequent rolls.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
