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.

Computer Networking: A Top-Down Approach (7th Edition)
7th Edition
ISBN:9780133594140
Author:James Kurose, Keith Ross
Publisher:James Kurose, Keith Ross
Chapter1: Computer Networks And The Internet
Section: Chapter Questions
Problem R1RQ: What is the difference between a host and an end system? List several different types of end...
icon
Related questions
Question

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.

 

 

Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 2 steps with 7 images

Blurred answer
Follow-up Questions
Read through expert solutions to related follow-up questions below.
Follow-up Question

Can this be done in python? I'm fairly new and struggling so I'm not able to convert this logic.

Solution
Bartleby Expert
SEE SOLUTION
Recommended textbooks for you
Computer Networking: A Top-Down Approach (7th Edi…
Computer Networking: A Top-Down Approach (7th Edi…
Computer Engineering
ISBN:
9780133594140
Author:
James Kurose, Keith Ross
Publisher:
PEARSON
Computer Organization and Design MIPS Edition, Fi…
Computer Organization and Design MIPS Edition, Fi…
Computer Engineering
ISBN:
9780124077263
Author:
David A. Patterson, John L. Hennessy
Publisher:
Elsevier Science
Network+ Guide to Networks (MindTap Course List)
Network+ Guide to Networks (MindTap Course List)
Computer Engineering
ISBN:
9781337569330
Author:
Jill West, Tamara Dean, Jean Andrews
Publisher:
Cengage Learning
Concepts of Database Management
Concepts of Database Management
Computer Engineering
ISBN:
9781337093422
Author:
Joy L. Starks, Philip J. Pratt, Mary Z. Last
Publisher:
Cengage Learning
Prelude to Programming
Prelude to Programming
Computer Engineering
ISBN:
9780133750423
Author:
VENIT, Stewart
Publisher:
Pearson Education
Sc Business Data Communications and Networking, T…
Sc Business Data Communications and Networking, T…
Computer Engineering
ISBN:
9781119368830
Author:
FITZGERALD
Publisher:
WILEY