Question: using graphWin and Python 3.6 Write a program to draw a house using four mouse clicks. The first two clicks will be the opposite corners

using graphWin and Python 3.6

Write a program to draw a house using four mouse clicks. The first two clicks will be the opposite corners of the rectangular frame of the house. The third click will indicate the center of the top edge of a rectangular door. The door should have a width that is 1/5 of the width of the house frame. The sides of the door should extend from the corners of the top down to the bottom of the frame. The fourth click will indicate the center of a square window. The window side is half of the door width. The top of the roof will be half-way between the left and right edges of the house and the height of the roof should be half the height of the rectangular frame of the house.

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!