Question: Program: The main activities of this program are to draw shapes using different kinds of Java drawing methods. Particularly, you are asked to draw a
Program:
The main activities of this program are to draw shapes using different kinds of Java drawing methods. Particularly, you are asked to draw a frosty snowman. Use your imagination, but be sure that Frosty has the following snowman-like properties.
Requirements:
A tripartite body (3 ovals, possibly circles)
Rectangular buttons of some non-white color on the middle oval.
Branches for arms sticking out of the middle oval.
The top oval, the head, has the following properties:
Two eyes, some sort of oval
A carrot nose, drawn as a polygon
A red licorice mouth (drawn as an arc)
A hat on the head, drawn as a polygon
Draw a scarf with writing on it
Technical requirements are:
Use two classes pattern to do the job: name the application class TestSnowMan and name the work class SnowMan. Your implementation for this assignment must use JFrame.
Suggestion
Play around, and do what you want to as long as you meet the minimum requirements.
DO THE FOLLOWING TO SCORE YOUR POINTS
Draw a class diagram in the space below (your class diagram must match your code) (10 pts)
Answer:
Paste your complete source code here (code needs to conform to Java coding convention (be consistent and indent appropriately)) (7 pts).
Answer:
Do a screen capture of your output in the space below (23 pts):
Points break down for this part:
A tripartite body: 4 points
Rectangular buttons: 4 points
Arms: 4 points
Head: 8 points as follows:
Eyes: 2 points
Nose: 2 points
Mouth: 2 points
Hat: 2 points
A scarf with writing on it: 3 points
Answer:
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
