Question: Write a program to play Three Button Monte. Your program should draw three buttons labeled Door 1' Door 2' and Door 3

Write a program to play "Three Button Monte." Your program should draw

three buttons labeled "Door 1' " " Door 2' " and "Door 3" in a window and

randomly select one of the buttons (without telling the user which one

is selected) . The program then prompts the user to click on one of the

buttons. A click on the special button is a win, and a click on one of the

other two is a loss. You should tell the user whether they won or lost, and

in the case of a loss, which was the correct button. Your program should be

entirely graphical; that is, all prompts and messages should be displayed

in the graphics window.

Chapter 10, Programming Exercises #3, pg 359. Draw a mock-up of the GUI--a hand-drawn picture is fine. Write the pseudocode for this program and submit that as part of your answer. Do not write Python code for this.

How would you modify the Button class in the chapter to create oval buttons instead of square buttons? Just state what you would change, do not submit source code.

the Program is python

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!