to roll two dice (computer dice) to determine a quick cash amount to keep. By adding the two numbers on the dice, e.g., 2 + 3 = 5, and then multiplying that number by $100 yields a total prize of...


to roll two dice (computer dice) to determine a quick cash amount to keep. By adding the two numbers on the dice, e.g., 2 + 3 = 5, and then multiplying that number by $100 yields a total prize of $500, which would be quick cash. Sure, it's not real money, but let's pretend.


The user will then be prompted to either keep the money or risk it for what's behind one of three doors, known as the "Big Deal." Each door will have a different amount. One is just a bit more than the dice roll, while one is significantly bigger, and one is significantly smaller. To accomplish a sense of suspense, the amounts need to be randomized, as well as the doors, so that the same door isn't always the "Big Deal."


If the user picks the cash, say goodbye and the game is over. However, if the user picks the "Big Deal," prompt the user to pick a door. After the user picks a door, make sure the user is ready by prompting him or her, and then reveal the door with the lower amount from the doors not picked. Then prompt the user to open the door he or she picked, and lastly, show the user the other door not picked, pausing between each reveal.


For this project, use the original amount of the quick cash from the dice roll as a multiplier to determine the amounts behind the doors. One door will be low, one medium, and one big, based on one of the following corresponding multipliers:


low: 0, 0.05, 0.15, or 0.25medium: 1.25, 1.5, 1.75, or 2big: 10, 15, 20, or 25


e.g. $500 * 0.15 = $75, $500 * 1.75 = $875, $500 * 15 = $7,500


Do not use the same multiplier for every game. This should be achieved randomly to keep the game interesting. Also make good use of theinput function to pause game play and build suspense, allowing the user to hit Enter to advance through the stages of the game.

Nov 18, 2021
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here