Question: 11. Five-click House. You are to write a program that allows the user to draw a simple ho using five mouse clicks. The first two
11. Five-click House. You are to write a program that allows the user to draw a simple ho using five mouse clicks. The first two clicks will be the opposite come the rectangular frame of the house. The third click will indicate the ce of the top edge of a rectangular door. The doo that is of the width of the house frame. The sides of the door sho extend from the corners of the top down to the bottom of the frame. Th fourth click will indicate the center of a square window. The w half as wide as the door. The last click will indicate the peak of the roof The edges of the roof will extend from the point at the peak to the corners of the top edge of the house frame. r should have a total width uld indow is 2 4
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
