Use the methods in the Picture class to draw a smiling face.

Note: One could make use of arc as in drawSmiley or circle (with part then “erased”) as in drawSmiley2 for the smile.


```
def drawSmiley():
canvas = makeEmptyPicture(100,100)
canvas.addArc(black, 10, 60, 80, 30, 160, 220)
canvas.addOvalFilled(black, 10, 10, 20, 40)
canvas.addOvalFilled(black, 70, 10, 20, 40)
show(canvas)

def drawSmiley2():
canvas = makeEmptyPicture(100,100)
canvas.addOval(black, 10, 60, 80, 30)
canvas.addRectFilled(white, 10, 60, 80, 10)
canvas.addOvalFilled(black, 10, 10, 20, 40)
canvas.addOvalFilled(black, 70, 10, 20, 40)
show(canvas)
```

Computer Science & Information Technology

You might also like to view...

A base element is one that:

A) was initially keyed into the system. B) does not change over a period of time. C) is used within one and only one subsystem. D) is the result of a calculation or some other logic.

Computer Science & Information Technology

The MsgBox action provides a useful tool in a database as it can be utilized to provide feedback to the user that the macro did indeed run. It directs Access to display a ________ with information provided from within the macro

Fill in the blank(s) with correct word

Computer Science & Information Technology

____ Drawing mode assumes that the objects' path will combine in some fashion.

A. Object B. Merge C. Stroke D. Resolved

Computer Science & Information Technology

Social engineering includes viruses, worms, and Trojan horses

Indicate whether the statement is true or false

Computer Science & Information Technology