Question: this is a C program Need help with point 3 You are to implement a dice game in which the user rolls a pair of

this is a C program

Need help with point 3

this is a C program Need help with point 3 You are

You are to implement a dice game in which the user rolls a pair of dice against the computer. The rules of the game are as follows: 1) Generate one play. User roll a pair of dice first and then the computer will do the same. 2) The player rolls the pair of dice and sums up the face values. Outcomes: If the first roll sum is a 7 or 11, the player wins and return 'O' If the first roll sum is a 2, 3 or 12, the player looses and return '1' If the sum is other number, player continue rolling the dice until the user get Point Match (PM). PM is set at the first roll. To win, the player must continue rolling the dice until him/her either "makes the highest PM" or roll winning or losing numbers 3) . Create a betting amount on each game and carry the sum total of money left using a global variable. Possibilities: Say a user starts the game with some default money and he/she can only place a bet using multiple of $5 If the user wins the game, it makes 3 times the bet If the user loses the game, it loses all the money he/she has bet You can decide if the user is able to place a bet every time it rolls the dice, or every time it plays a new game. The money won can get carried over to the next game If the bet money left is 0, the user can not place any more bets. When the user decides to finish playing, the amount won should be displayed

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!