Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

I need help doing this program, no idea how to do it. Cant use scanf function. One of the most popular games of chance is

I need help doing this program, no idea how to do it. Cant use scanf function. image text in transcribedimage text in transcribed

One of the most popular games of chance is a dice game known as "craps," which is played in casinos and back alleys throughout the world. The rules of the game are straightforward: A player rolls two dice. Each die has six faces containing 1,2, 3, 4, 5, and 6 spots. After the dice have come to rest, the sum of the spots on the two upward faces is calculated. If the sum is 7 or 11 on the first throw, the player wins. If the sum is 2, 3, or 12 on the first throw (called "craps"), the player loses (i.e., the "house" wins) If the sum is 4, 5, 6, 8,9, or 10 on the first throw, The game continues. The sum becomes the player's "points." The game continues until one of the following happens: The player wins by making "points. The player loses by rolling a 7 before making the point

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

MySQL/PHP Database Applications

Authors: Jay Greenspan, Brad Bulger

1st Edition

978-0764535376

More Books

Students also viewed these Databases questions