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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started