Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Attachment 1 is the instructions and 2 is the house.java Part 2: Drawing Houses 5. Open louees. java using jGRASP. Take a minute to read
Attachment 1 is the instructions and 2 is the house.java
Part 2: Drawing Houses 5. Open louees. java using jGRASP. Take a minute to read over the provided code, then try running it 6. Add a new method named dravBouse that satisfies the following requirements: It should take two double parameters named x and y When executed, it should draw a house that looks like the following: e o e The total width of the house should be .2. The total height of the house should be 3. The rectangle at the bottom should have a height of 2 and the roof should have a height of e The rectangle that forms the bottom part of the house should be centered at (x, y). In other words, the location of the house should be determined by the parameter values. The method should include a cal o to drewDoor. YOU SHOULD NOT COPY THE CONTENTS OF drawDoor INTO drawilouse! 7. Modify your main so that in includes three calls to drawlouse. Houses should be drawn at (.2, 5). (5, 5) and (8, 5). The result should look like the image at the top of this page Part 2: Drawing Houses 5. Open louees. java using jGRASP. Take a minute to read over the provided code, then try running it 6. Add a new method named dravBouse that satisfies the following requirements: It should take two double parameters named x and y When executed, it should draw a house that looks like the following: e o e The total width of the house should be .2. The total height of the house should be 3. The rectangle at the bottom should have a height of 2 and the roof should have a height of e The rectangle that forms the bottom part of the house should be centered at (x, y). In other words, the location of the house should be determined by the parameter values. The method should include a cal o to drewDoor. YOU SHOULD NOT COPY THE CONTENTS OF drawDoor INTO drawilouse! 7. Modify your main so that in includes three calls to drawlouse. Houses should be drawn at (.2, 5). (5, 5) and (8, 5). The result should look like the image at the top of this pageStep 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