Question: 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

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!