Draw a house on the beach where we put the mysterious box previously.

What will be an ideal response?

```
def addAHouse ():
beach = makePicture("beach.jpg")
makeHouse(beach, 190,320)
show(beach)
return beach

def makeHouse(canvas, x, y):
#walls and door
addRect(canvas, 20+x, 40+y, 60, 59)
addRect(canvas, 45+x, 80+y, 10, 19)
#roof
addLine(canvas,0+x,40+y,50+x,0+y)
addLine(canvas,50+x,0+y,100+x,40+y)
addLine(canvas,0+x,40+y,100+x,40+y)
#windows
addRect(canvas, 25+x, 60+y, 9, 19)
addLine(canvas,25+x,70+y,34+x,70+y)
addLine(canvas,30+x,60+y,30+x,79+y)
addRect(canvas, 65+x,60+y, 9, 19)
addLine(canvas,65+x,70+y,74+x,70+y)
addLine(canvas,70+x,60+y,70+x,79+y)
```

Computer Science & Information Technology

You might also like to view...

Use a(n) ________ when you want the first line of a paragraph at the left margin and the rest of the lines indented to the right of the first line

Fill in the blank(s) with correct word

Computer Science & Information Technology

In a pie chart which of the following is a good reason for using category data labels rather than the legend?

A) They take up less space. B) They reveal more information. C) They are easier to format. D) They are easier to read.

Computer Science & Information Technology