Question: first prompt the user for two integer inputs using Scanner. These must be requested in the following order: size: What is the size of the

first prompt the user for two integer inputs using Scanner. These must be requested in the following order:

size: What is the size of the mountain? In the picture above, the mountain has size 5 because there are 5 levels of squares, and the widest part of the mountain, at its bottom, is also 5 squares. A mountain will always be a square structure containing sizesize elements, some of which are hashtags (#) and some of which are blanks.

pattern: We will use an integer in the range 1 to 4 to indicate which pattern your program should produce. In the picture above, pattern 1 is shown. The other patterns are explained below

Your program then prints the mountain of the specified size and pattern.

Mario runs from left to right. he would have to climb, as shown in the example for a size 5 mountain.

##### #### ### ## #image text in transcribedimage text in transcribedimage text in transcribed

##### #### ### ## #

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 Programming Questions!