Create a snowman program. This snowman should have all the characteristics that
ID: 3574531 • Letter: C
Question
Create a snowman program. This snowman should have all the characteristics that appear in the picture below and more. Moon or the Sun with the illusion of haze coming from it. Instead of the 3 buttons you may create a tie/ bow tie of any color. Where it is green I need to see another layer below that in the color of brown that will represent the ground. Illustrate grass spiking for the ground.Remember some keys points which are making the eyes blink, hands move, smile, the entire body move etc. The more you do the more points will be earned. Be creative please Look at the countdown program from the graphics like which shows you how to use the thread.sleep().
"SnowMan java 1e import java.awt 2 import jpb 4 public class snowMan f se public static void main(Stringri args) Coordinates for snowman's nose int[] xNose (174, 164 174); int[] Nose {174. 177, 1 Create drawable frame 10 Drawable Frame df new Drawable Fram ("Mr. Snow 11 012 df.setsize(400, 400); 13 obtain graphics context 15 Graphics g df.getGraphicsContext(); 16 Mr. Snow 30, 2016, 4:35:29 PM)Explanation / Answer
import java.applet.Applet;
import java.awt.*;
public class SnowMan extends Applet{
public void paint (Graphics frame){
final int MID = 150;
final int TOP = 50;
setBackground (Color.cyan);
frame.setColor (Color.blue);
frame.fillRect (1, 175, 300, 50) ;
frame.setColor (Color.white);
frame.fillOval (MID - 20, TOP, 40, 40);
frame.fillOval (MID - 35, TOP + 35, 70, 50);
frame.fillOval (MID - 50, TOP + 80, 100, 60);
frame.setColor (Color.black);
frame.fillOval (MID - 10, TOP + 10, 5, 5);
frame.fillOval (MID + 5, TOP + 10, 5, 5);
frame.drawArc (MID - 10, TOP + 20, 20, 10, 190, 160);
frame.drawLine (MID - 25, TOP + 60, MID - 50, TOP + 40);
frame.drawLine (MID + 25, TOP + 60, MID + 55, TOP + 60);
frame.drawLine (MID - 20, TOP + 5, MID + 20, TOP + 5);
frame.fillRect (MID - 15, TOP - 20, 30, 25);
}
}
Related Questions
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.