Question: Draw a class diagram in the space below (your class diagram must match your code) Code for the snowman import java.applet.* import java.awt.*; 01 02
Draw a class diagram in the space below (your class diagram must match your code) 
Code for the snowman import java.applet.* import java.awt.*; 01 02 03 04 public class Snowman extends Applet 06 1 07 Draws a snowman. 08 / 09 10 public void paint (Graphics page) final int MID 150; final int TOP = 50; 12 13 14 15 page.setcolor (Color.blue) 16 17 18 19 20 21 setBackground(Color.cyan) page.fillRect (0, 175, 300, 50): 1/ ground page.setcolor (Color.yellow); page.filloval (-40,-40, 80, 80) /1 sun page.setColor (Color.white); page.filloval MID-20, TOP, 40, 40) page.filloval (MID-35, TOP+35, 70, 50) upper torso page.filloval (MID-50, TOP+80, 100, 60) 1/ lower torso // head 23 24 25 26 27 28 29 30 31 32 page.setColor (Color.black) page.fi110val (MID-10, TOP+10, 5, 5) 1/ left eye page.fill0val (MID+5, TOP+10, 5, 5); // right eye page.drawArc (MID-10, TOP+20, 20, 10, 190, 160)// smile page.drawLine (MID-25, TOP+60, MID-50, TOP+40) // left arm page.drawLine (MID+25, TOP+60, MID+55, TOP+60) // right arm 34 35 36 page.drawLine (MID-20, TOP+5, MID+20, TOP+5) / brim of hat page.fillRect (MID-15, TOP-20, 30, 25) // top of hat 38 39 40 Output
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
