C++ programming code: Casino game of craps

Closed

Write a C++ program that simulates the casino game of craps. These are the rules of the game:

* If a player throws a 7 or 11 (sum of two dice) on the first roll, the player wins the game.

* If a player throws a 2, 3 or 12 (sum of two dice) on the first roll, the player loses the game.

* If a player throws a 4, 5, 6, 8 or 10 (sum of two dice) on the first roll, s(he) neither wins nor loses but creates a "point." If this is the case, the player keeps rolling the dice until the point (4, 5, 6, 8 or 10) is thrown again, and the player wins the game. However, if the player throws a 7 (sum of two dice) before the "point" is thrown, the player loses the game.

These are the specifications for the program:

Your program will incorporate a void function that will output a banner to the screen each time the [url removed, login to view] is invoked. You will create a function called rollDice that will, when called, roll two dice and return a random number between 2 and 12. Each time rollDiceYou rolled 5 is called, the program should output the result of the roll. Example:The program will ask the player " Another game? Y(es) or N(o)?" and terminate whenever any key other than Y or y is pressed.

Skills: C Programming, Software Architecture

See more: casino game code, craps code, program casino game, dice game craps, craps program, casino game program, game craps, casino program, casino code, game craps program, dice game time result code, craps game code, game craps code, program code casino game, output casino game program, output casino game, craps programming, output code casino game, code casino game, write program simulates casino game craps, casino game programming, program craps game, dice rolling code, craps programming code, dice game code

Project ID: #2731021

Awarded to:

Rashad28

See private message.

$4 USD in 3 days
(1 Review)
0.0

5 freelancers are bidding on average $5 for this job

maciejpl

See private message.

$4 USD in 3 days
(5 Reviews)
3.5
oxygenSoftware02

See private message.

$7 USD in 3 days
(12 Reviews)
2.8
sintu

See private message.

$2 USD in 3 days
(0 Reviews)
0.0
danrt

See private message.

$7 USD in 3 days
(0 Reviews)
0.0