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...

What is the default administrative distance assigned to all OSPF routes?

A) 90 B) 110 C) 120 D) 20

Computer Science & Information Technology

Security is the final step in network design.

Answer the following statement true (T) or false (F)

Computer Science & Information Technology

In C++, reserved words are the same as predefined identifiers.

Answer the following statement true (T) or false (F)

Computer Science & Information Technology

The Analysis phase of the SDLC examines theĀ event or plan that initiates the process and specifies the objectives, constraints, andĀ scope of the project. _________________________

Answer the following statement true (T) or false (F)

Computer Science & Information Technology