Solved

Write a Paint Method to Draw Out an American Flag

Question 4

Essay

Write a paint method to draw out an American flag. The flag will comprise a blue square in the upper left corner and 13 red and white stripes, starting with red, and alternating. 6 of the 13 stripes appear to the right of the blue square and the last 7 stripes appear beneath the blue square extending as far right as the other stripes. Use a for-loop to draw the stripes. Do not try to draw any stars in the blue square.

Correct Answer:

verifed

Verified

public void paint(Graphics page)
{
page....

View Answer

Unlock this answer now
Get Access to more Verified Answers free of charge

Related Questions