Modify your SlashFigure program from the previous exercise to become a new program called SlashFigure2 that uses

Question:

Modify your SlashFigure program from the previous exercise to become a new program called SlashFigure2 that uses a global constant for the figure’s height. (You may want to make loop tables first.) The previous output used a constant height of 6. The following are the outputs for constant heights of 4 and 8.


Data from Previous Exercise

Write a Java program called SlashFigure that produces the following output. Use nested for loops to capture the structure of the figure.

!!!!!!!!!!!!!!!!!!!!!! 1\!!!!!!!!!!!!!!!!!!// \\\\!!!!!!!!!!!!!!//// \\\\\\ !!!!! !!!!!////// 11!!!!! /// \ww.!//////////

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

Step by Step Answer:

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