Write a program called Football that uses the DrawingPanel to draw the figure shown in Figure 3G.34.

Question:

Write a program called Football that uses the DrawingPanel to draw the figure shown in Figure 3G.34. Though the figure looks to contain curves, it is entirely made of straight lines.

Drawing Panel + x File View Help

The window is 250 x 250 pixels in size. There is an outer rectangle from (10, 30) to (210, 230), and a set of black lines drawn around the edges every 10 pixels. For example, along the top-left there is a line from (10, 200) to (20, 30), a line from (10, 190) to (30, 30), a line from (10, 180) to (40, 30),... and along the bottom-right there is a line from (20, 210) to (210, 200), a line from (30, 210) to (210, 190), and so on.

Fantastic news! We've Found the answer you've been seeking!

Step by Step Answer:

Related Book For  book-img-for-question
Question Posted: