Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Part 1: Create a Java application that draws a simple house or beach hut. Use the drawing methods from the Graphics class. Your hut should

Part 1:

  1. Create a Java application that draws a simple house or beach hut. Use the drawing methods from the Graphics class.
  2. Your hut should be on the beach, with the ocean nearby.
  3. Your hut should have at least one door and one window, and a roof.

Here is an example screenshot. Please note that your image needs to have a few additional features not shown in mine, such as clouds. Please see the rubric below for more details.

Part 2:

  1. Change just one line of code, and run your program again. Your beach hut should now be floating 50 pixels above the beach. (In order to accomplish this with one line of code, your program will have to use variables, not literals, to specify the position of the hut.)

Here is an example screenshot.

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored 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

Recommended Textbook for

More Books

Students also viewed these Databases questions

Question

4-5. What functions do transitions serve? [LO-6]

Answered: 1 week ago