Write a program called TwoRectangles that uses two integer class constants called WIDTH and HEIGHT to draw

Question:

Write a program called TwoRectangles that uses two integer class constants called WIDTH and HEIGHT to draw two rectangles of stars of the given dimensions. The first rectangle should be flush left, and the second should be indented horizontally by the given width. For example, if the WIDTH and HEIGHT are 7 and 4 respectively, the program should draw the following figure:

******* ******* ******* **大★★★大 ******* 大★★大大*大 ******* *******

Fantastic news! We've Found the answer you've been seeking!

Step by Step Answer:

Related Book For  book-img-for-question
Question Posted: