Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Assignment 1 (Due Jan. 8, by 11:59pm) Implement a Picturejav a which displays a house a tree,three flowers (ntall idenical), and sky with crescent moon,five

image text in transcribed
Assignment 1 (Due Jan. 8, by 11:59pm) Implement a Picturejav a which displays a house a tree,three flowers (ntall idenical), and sky with crescent moon,five or more stars and a comet. The stars must include 5-pointed, 6-pointed and 7-pointed varieties. The comet should be a white disk with lines emanating from it. Also, include a caption with some text. You may use any of the methods of the Graphics class. Use filPolygon (or drawpolygon) to ly cover a white disk with a sky-colored disk to get a crescent). For nice symmetrical stars (optional) you can use sine and cosine to determine location of the points. xs[i-xOffset + radiuscos(72Math PlinumPoints): and something similar for ysl Upload Picture,java and a screenshot of the running applet. (Your s your whole desktop.) The screenshot should be saved as a gor jpeg or png. Suggested dimensions: 800 pixels wide x 600 pixels h

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access with AI-Powered Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Students also viewed these Databases questions