Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Write a C program that plays the game of craps. A player rolls two dice, each dice has numbers 1-6. If the sum = 7
Write a C program that plays the game of craps. A player rolls two dice, each dice has numbers 1-6. If the sum = 7 or 11, player wins. If sum = 2, 3, 12, player loses. If the sum is anything else, the game continues, the sum becomes the players points. The game keeps playing until the player rolls the sum of points again, in this case player wins. I player rolls a 7 after the point then player loses.
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started