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 figures 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 and has a size of
The triangle, which is red, should fit on top of the square and have a height of
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.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
