Using the drawing tools presented here, draw a house—just go for the simple child’s house with one door, two windows, walls, and a roof.
What will be an ideal response?
```
def makeHouse():
canvas = makeEmptyPicture(100,100)
#walls and door
addRect(canvas, 20, 40, 60, 59)
addRect(canvas, 45, 80, 10, 19)
#roof
addLine(canvas,0,40,50,0)
addLine(canvas,50,0,100,40)
addLine(canvas,0,40,100,40)
#windows
addRect(canvas, 25, 60, 9, 19)
addLine(canvas,25,70,34,70)
addLine(canvas,30,60,30,79)
addRect(canvas, 65, 60, 9, 19)
addLine(canvas,65,70,74,70)
addLine(canvas,70,60,70,79)
return canvas
```
You might also like to view...
Case-Based Critical Thinking QuestionsCase 7-2RockCats is a Double A baseball team that has created a Web site to provide people with information about them as well as game dates, practice pictures, and game clips. The manager has a video he recorded in avi format that he would like to post of the RockCats' last game. Which Flash format will he convert it to before posting it to be displayed by Adobe Flash Player?
A. flv B. aig C. swf D. None of the above
Create a function to play your school’s fight song using MIDI.
Note: Below is the Georgia Tech Fight Song. Specifically it is the most famous section. Many school fight songs have a large number of verses that are not required for an answer to this question.
A(n) ________ is a list of headings in the order they appear in a document, along with associated page numbers
Fill in the blank(s) with correct word
The special character for & is rendered using ____.
A. ® B. © C. " D. &