Question: Write a program using switch statement, while, nested if . . . else and nested if statements, to do the following game: A player rolls
Write a program using switch statement, while, nested ifelse and nested if
statements, to do the following game:
A player rolls two dice. Each die has six faces. These faces contain and
spots. After the dice have come to rest, the sum of the spots on the two upward
faces is calculated. If the sum is or on the first throw, the player wins. If the
sum is or on the first throw called "craps" the player loses ie the
"house" wins If the sum is or on the first throw, then that sum
becomes the player's "point." To win, you must continue rolling the dice until you
"make your point." The plaver loses by rolling a before making the point.
PLEASE I need help with this Q ASAP
Thank you
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
