Question: Background If you supply the correct arguments, the following code will draw the house shown below g.setcolor (Color.LIGHT GRAY) g.fillRect( g.setcolor (Color.GREEN.darker O) g.drawLine g.setcolor

 Background If you supply the correct arguments, the following code will

Background If you supply the correct arguments, the following code will draw the house shown below g.setcolor (Color.LIGHT GRAY) g.fillRect( g.setcolor (Color.GREEN.darker O) g.drawLine g.setcolor (Color.RED) g.drawRect. g.setColor (Color.BLACK) g.fillRect ( ); //set background color //draw the green ground //draw a square for red walls //draw a solid black door //draw the triangle, which needs three points: (75, 200) and intyPoints [ ]={ , , }; g.drawPolygon (xPoints, yPoints, 3): /1 11 //draw the black roof (175, 150) and (275, 200) g.setColor (Color.YELLOW) g.fillOval (-, --, //draw the yellow sun g.setColor (Color.WHITE) g.drawString( //say "We1come Home Specification Create a new Java driver and panel in folder Unit21Lab01. Reproduce the house below Sample Run Unit2Lab01.jar (0,0) (40, 40) g.filloval(300, 75, 50, 50) (75, 200) (175, 150) (275, 200) g, drawRect (100, 200, 150, 150) g, fillRect(150, 275, 50, 7 (400, 350) (0, 350) 400, 400)

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!