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.

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

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!