Question: use Java swing, not the ACM libraries to solve the following problems. Draw a pyramid. A stack of blocks should fit exactly into a centered
use Java swing, not the ACM libraries to solve the following problems.

Draw a pyramid. A stack of blocks should fit exactly into a centered rectangle that is 80% of the windows width and height. Use a constant to indicates the number of rows to be placed in the rectangle. Unlike the books version, the width and height of each brick are directly related to the current size of the window. You may start at either the top or bottom of the pyramid it can be built in either direction. Make the background white, the background centered rectangle blue and the bricks orange with red outlines.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
