go to previous page   go to home page   go to next page

Answer:

X=50, Y=100

width=150, height=100


Locations of the Rectangles

house and a tree

Recall that the Graphics object of Java has a rectangle drawing method:

drawRect( int x, int y, int width, int height );

To use this method, find the upper-left x and y coordinates for each rectangle, its width, and height. Read these values off of the graph paper.


ObjectXYWidthHeight
House
Door
Left Window
Right Window
Tree Trunk

QUESTION 3:

Fill in the table. (Its OK if you do just a few.)