STEP PYRAMID If the user chooses the step pyramid, your program should ask how

STEP PYRAMID
If the user chooses the step pyramid, your program should ask how many levels should be in the pyramid, and then create the pyramid.
The Step Pyramid
The step pyramid has a temple structure and entrance at the top, followed by the number of levels the user selects, with stairs going up the middle.

The Step Pyramid
The step pyramid has a temple structure and entrance at the top, followed by the number of levels the user selects, with stairs going up the middle.
The temple structure and entrance will look like this, centered above the pyramid:
_______
|_______|
| ___ |
__|__[_]__|__
For the pyramid itself, the levels repeat the given number of times. The top line in the top level has a slash, followed by four spaces, the stairs, four more spaces and then a backslash. The line below that has one more space on each side between the slashes and stairs. The top line of the second level will have ten spaces on each side of the stairs, and each level after that should increase by 6 spaces on each side from the level above it.
In between each level, there is a line of plus signs, an appropriate width to be the top of the level below. There should not be plus signs above the first level or below the final level. There should be no spaces at the end of the line (for example, if a line ends with there should not be a space after that or the autograder will count it as not matching).
The only characters you’ll need to create the temple and pyramid are: / | [ ] = + _ and spaces. See the example output below for an example of the entire structure.
Your program does not need to work for invalid input (negative numbers, words, etc) but should work for 0 (just the top is shown with no levels below) and for any positive number.
Submitting Your Project
You will submit your project in zyBooks. Your program is graded in three ways:
The step pyramids will be automatically graded, to determine whether your output exactly matches the expected output. (45 points)
Your original art will be evaluated to determine its originality, and to ensure that it follows the requirements given (using a loop and specifying the size). (15 points)
Your code will be evaluated based on style. (40 points)Meaningful identifier names (10 points)
Identifier names should indicate their purpose. Names should be words separated using capitalization, such as sumGrades.
Comments (10 points)
Comments should be easily identifiable. People should be able to understand your program by reading only the comments.
Every function (if you use them) must have a short description stating the purpose of the function, what it receives, and what it returns.
Program Header (5 points)
Every program must have a header detailing the overall goal of the program, the author, date, and environment used.
See the example code at the bottom of the project description for guidance.
Original art copied into the Program Header (5 points)
The output of your original art must be copied into the program header, to help us grade it.
Avoid Global Variables (5 points)
Global variables should be avoided and used only when necessary. Method/Function parameters should be used instead if you use functions.
Code Layout (5 points)
Different nested levels should have different indentation, while statements at the same level should have the same indentation.
Indent at least 3 spaces. Use either spaces or tabs consistently, otherwise the appearance on different devices will be messed up.
Short loops of ~ 5 lines can use loop counter variables such as i or j.

Advice on Getting Started
We’ve included example code at the bottom with a quick introduction to loops in C++ and some guidance on output in C++, which can be very helpful with getting started.
Using that, I’d recommend the following steps for starting on the base of the step pyramid:
1) After getting input for how many sections the user wants, display two slashes and one + for each level. So if the user enters two levels, your program would produce:
+
/
/
+
/
/
2) Next, add a loop or use setw so that each line is indented to form the left side of the pyramid:
+
/
/
+
/
/
3) Now add the | for the stairs, using a loop or setw to line them up:
+ |
/ |
/ |
+ |
/ |
/ |
4) Next use setfill so that there are + all the way to the stairs:
++++++++++++++++|
/ |
/ |
++++++++++++++++++++++|
/ |
/ |
5) Follow similar steps to produce the other side of the pyramid
6) Stop printing the top line of +++ and include the top of the pyramid instead.
7) Make sure you test out your program, trying out different valid numbers of steps.
EXAMPLE SOLUTION:

Posted in C++

Place this order or similar order and get an amazing discount. USE Discount code “GET20” for 20% discount