Question: Create a program using a preferred programming language that simulates a dicegame with the following rules: The player starts with a specified initial amount of
Create a program using a preferred programming language that simulates a dicegame 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 six-sided dice.
If the total number of the dice roll result is even, the player wins 2BAM.
If the total number of the dice roll result is odd, the player loses 1.50BAM.
The game continues until the players balance reaches 0BAM or less.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
