Question: Creat a project named LetsMakeADeal. in the game, three ppizes of varying value are assigned randomly to be hidden behind three doors that you can
Creat a project named LetsMakeADeal. in the game, three ppizes of varying value are assigned randomly to be hidden behind three "doors" that you can implement as Buttons. For example, the prizes might be a new car, a big-screen TV, and a live goat. The player chooses a Button, and then one of the two other prizes is revealed; the one revealed is never the most desirable prize. The user then has the option of changing the original selection to the remaing unseen choice. For example, consider these two game scenarios:
Suppose that the most valuable prize is randomly assigned tot he first button, If the user chooses the first button, reveal either of the other two prizes, and ask the user if he wants to change his selection.
Suppose that the most valuable prize is assigned to the first button, but the user chooese the secound button. Reveal the thrid prize so that the most valuable prize's location is still hidden, and then ask the user whether he wants to change his selection.
After the user has chosen to retain his original selection or make a change, reveal what he has won.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
