Answered step by step
Verified Expert Solution
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:
- Create a Java application that draws a simple house or beach hut. Use the drawing methods from the Graphics class.
- Your hut should be on the beach, with the ocean nearby.
- 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:
- 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
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started