Description
Introduction to Programming
with Java
Class: Pyramid.java
Score:
Prerequisites: ACM Java Task Force, Loops
Description: Write a GraphicsProgram subclass that draws a pyramid consisting of bricks arranged in horizontal rows, so that the number of bricks in each row decreases by one as you move up the pyramid, as shown in the following sample run.
Sample Run:
Reviews
There are no reviews yet.