[SOLVED] SOLVED: smiling face function

10.00 $

Programming resource
Digital learning resource
Category:
Practical programming resource
Suitable for guided study and reference
Tutor guidance available when needed

Description

5/5 - (2 votes)

Write a function that displays a smiling face at a certain place on the screen. The function must be named as below, and it must be able to display the face anywhere on the screen specified by the parameters x and y. You may borrow code from previous assignments if you want, although it is probably better if the face is relatively small so you have room to draw several of them on the screen at once. Then, inside the paint() method, call the function a few times to draw several faces on the screen.

Resource details

Understand the Task Before You Use the Resource

Review the requirements, identify the programming concepts involved, study the implementation and test your understanding with your own examples and modifications.