logo CodeStepByStep logo


Write a program named SmileyFace that uses a DrawingPanel to draw a face figure as described:

  • The overall window should be of size 320 x 180 with a white background.
  • The face is drawn as a black-outlined circle of size 100 x 100 whose top-left corner is at (10, 30).
  • The eyes are drawn as filled blue circles of size 20 x 20 with top-left corners at (30, 60) and (70, 60).
  • The mouth is drawn as a red line from (40, 100) to (80, 100).

The expected figure is the following:

Java DrawingPanel close maximize minimize
expected output
Class: Write a complete C# class.

You must log in before you can solve this problem.

Log In

Need help?

Stuck on an exercise? Contact your TA or instructor.

If something seems wrong with our site, please

Is there a problem? Contact us.