Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

image text in transcribed
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

Step: 1

blur-text-image

Get Instant Access with AI-Powered Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Students also viewed these Databases questions