QCC Casino Royale offers its customers a happy way to go home with big bucks playing its “Dice” game. The Dice game is played by asking customers to roll a pair of dice. If customers roll a seven or 11, they win; any other roll and the customer loses. The odds of rolling a seven is 6 to 1 so that if customers bet 1 dollar and win, they receive 7 dollars. The odds of rolling an eleven are 18 to 1 so that if customers bet 1 dollar and win, they receive 19 dollars. Upon entering the casino, customers must be greeted with an appropriate welcoming message. They must be asked to indicate the amount of money that is in their bankroll to play. Customers cannot enter the casino with a bankroll greater than $1,000. Customers must play the game in rounds of 10 plays and the minimum bet for each play is 5 dollars; the maximum bet is 50 dollars. For each try at rolling the dice, customers must be asked how much they want to bet and for each try must be informed of the result and the changes to their bankroll. If customers lose all their money during the course of playing a round, they must be informed that they are busted and be told to leave the casino and go home. At the end of each round (10 Plays), customers must be asked if they want to continue playing or stop. When customers are leaving the casino, they must be informed of how much money was lost or won, the amount they started with and the amount they are leaving with. They must also be given an appropriate departing message. Hint: To simulate rolling a pair of die (dice), the program must generate two random numbers. One random number must be generated for dice 1 and another random number must be generated for dice 2. The total roll is the sum of the two random numbers.
QCC Casino Royale offers its customers a happy way to go home with big bucks playing its “Dice” game. The Dice game is played by asking customers to roll a pair of dice. If customers roll a seven or 11, they win; any other roll and the customer loses. The odds of rolling a seven is 6 to 1 so that if customers bet 1 dollar and win, they receive 7 dollars. The odds of rolling an eleven are 18 to 1 so that if customers bet 1 dollar and win, they receive 19 dollars.
Upon entering the casino, customers must be greeted with an appropriate welcoming message. They must be asked to indicate the amount of money that is in their bankroll to play. Customers cannot enter the casino with a bankroll greater than $1,000. Customers must play the game in rounds of 10 plays and the minimum bet for each play is 5 dollars; the maximum bet is 50 dollars.
For each try at rolling the dice, customers must be asked how much they want to bet and for each try must be informed of the result and the changes to their bankroll. If customers lose all their money during the course of playing a round, they must be informed that they are busted and be told to leave the casino and go home. At the end of each round (10 Plays), customers must be asked if they want to continue playing or stop.
When customers are leaving the casino, they must be informed of how much money was lost or won, the amount they started with and the amount they are leaving with. They must also be given an appropriate departing message.
Hint:
To simulate rolling a pair of die (dice), the program must generate two random numbers. One random number must be generated for dice 1 and another random number must be generated for dice 2. The total roll is the sum of the two random numbers.
Trending now
This is a popular solution!
Step by step
Solved in 2 steps with 7 images
Can this be done in python? I'm fairly new and struggling so I'm not able to convert this logic.