Write a function to draw a simple face with eyes and a mouth on a picture

There’s no need to make use of ovals to solve this problem, one can simply make use of rectangles and lines.


```

def drawPicture():

canvas = makeEmptyPicture(100,100)

makeFace(canvas, 0, 0)

show(canvas)

return canvas;

def makeFace(canvas, x, y):

addOval(canvas, x+10, y+60, 80, 30)

addRectFilled(canvas, x+10, y+60, 80, 10, white)

addOval(canvas, x+20, y+20, 10, 10)

addOval(canvas, x+70, y+20, 10, 10)

```



Computer Science & Information Technology

You might also like to view...

Describe how your PC digitally captures a sound wave and how sampling rates affect the quality of the file.

What will be an ideal response?

Computer Science & Information Technology

Network adapters ________

A) enable nodes in a network to access the network and to communicate with each other B) act like a traffic signal on a network C) are always Ethernet NICs D) are necessary only on servers in a client/server network

Computer Science & Information Technology

The term ________ protection means that your computer is continuously monitored at all times for suspicious activity such as viruses and spyware

A) timeless B) real-time C) just in time D) uninterrupted

Computer Science & Information Technology

Which of the following is true?

a) Any bit “ANDed” with 0 yields 0. b) Any bit “ANDed” with 1 yields 1. c) Any bit “ANDed” with 0 yields 1. d) Any bit “ANDed” with 1 yields 0.

Computer Science & Information Technology