Now use your house to draw a town with dozens of houses at diĀ®erent sizes. You'll probably want to modify your house method to draw at an input coordinate, then change the coordinate where each house is drawn.
What will be an ideal response?
```
public void drawTown ( )
{
for ( int y = 100; y < 300; y = y + 100)
{
// loop drawing 6 houses
for ( int x = 0 ; x < 600; x = x + 100)
{
drawHouse (x , y , 1 0 0 , 5 0 ) ;
}
}
for ( int y = 300; y < 500; y = y + 100)
{
// loop drawing 6 houses
for ( int x = 0 ; x < 600; x = x + 50)
{
drawHouse (x , y , 5 0 , 5 0 ) ;
}
}
}
```
Computer Science & Information Technology
You might also like to view...
Which wildcard character matches a single character in the same position as the wildcard?
A) [!] B) * C) ? D) []
Computer Science & Information Technology
Each ________ in a main document is surrounded by double angle brackets
Fill in the blank(s) with correct word
Computer Science & Information Technology