Question: . A- Normal.] TI No Spac.. Heading 1 Heading 2 Title Subtitle Subtle En. Paragraph Styles Craps is a popular dice game played in casinos.

 . A- Normal.] TI No Spac.. Heading 1 Heading 2 Title

. A- Normal.] TI No Spac.. Heading 1 Heading 2 Title Subtitle Subtle En. Paragraph Styles Craps is a popular dice game played in casinos. Write a program to play a variation of the game, as follows: Roll two dice. Each die has six faces representing values 1, 2,..and 6, respectively.Check the sum of the two dice. If the sum is 2, 3, or 12 (called craps), you lose; if the sum is 7 or 11 (called natural), you win;is the sum is another value (i, e., 4, 5, 6, 8, 9, or 10), a point is established. Continue to roll the dice until either a 7 or the same point value is rolled. If 7 is rolled, you lose. Otherwise, you win. Your program acts as a single player Sample run 1: You rolled 5+6 You win 11 Sample run 2: You rolled Point jis 10 You rolled You rolled You lose 10 6-8 3x7

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!