Question: Create a program using a preferred programming language that simulates a dice game with the following rules: The player starts with a specified initial amount
Create a program using a preferred programming language that simulates a dice
game with the following rules:
The player starts with a specified initial amount of money input by the user
The player bets on the outcome of rolling two fair sixsided dice.
If the total number of the dice roll result is even, the player wins BAM.
If the total number of the dice roll result is odd, the player loses BAM.
The game continues until the player's balance reaches BAM or less.
The program should keep track of the number of rolls and the player's current
balance after each roll output
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
