Write a program called Stairs that uses the DrawingPanel to draw the figure shown in Figure 3G.31.
Question:
Write a program called Stairs that uses the DrawingPanel to draw the figure shown in Figure 3G.31. The first stair’s top-left corner is at position (5, 5). The first stair is 10 × 10 pixels in size. Each stair is 10 pixels wider than the one above it. Make a table with the (x, y) coordinates and (width × height) sizes of the first five stairs.
Fantastic news! We've Found the answer you've been seeking!
Step by Step Answer:
Related Book For
Building Java Programs A Back To Basics Approach
ISBN: 9780135471944
5th Edition
Authors: Stuart Reges, Marty Stepp
Question Posted: