Question: For this question you will provide a class to draw a simple house. I Use the Chapter 3 figures 2 project as a starting point,

For this question you will provide a class to draw a simple house. I
Use the Chapter 3 figures2 project as a starting point, and to help you check that your code works.
Create a class, give it an appropriate name, and remove any code from your own class that is not relevant to this question. You need to draw a simple house as illustrated below.
The square, which is magenta, has its bounding box origin at (250,120) and has a size of 50,
The triangle, which is red, should fit on top of the square and have a height of 80.
No alterations to other classes in the project are allowed.
Paste only your solution class into this question. You can check that your code compiles using the Check button. No other tests of functionality or specification are provided. (If the Check button doesn't respond quickly, please do not press it repeatedly.)
Make sure that your code is also appropriately commented and uses a good style.
 For this question you will provide a class to draw a

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!