Stairs Help and modification
You only need to make the man go up the stairs. You do not
need to create the box holding the stair up. So it can look like:
o *
/|\ *
/ \ *
******
o *
/|\
*
/ \
*
******
o *
/|\ *
/ \ *
******
o *
/|\ *
/ \ *
******
o *
/|\ *
/ \ *
******
Step by Step:
1. You wanted to start with just printing the man 5 times.
It would look like:
o *
/|\ *
/ \ *
******
o *
/|\ *
/ \ *
******
2. Now, try to move your man's head over a given number of
spaces.
The repeating spaces will occur on the head line. They need
to be in a loop inside the loop that prints the man 5 times. You will need the
spaces to print before the head, so you will have a space loop before the line
that prints the head. First, just try to move the head over 10 spaces using a
loop that prints 10 spaces right before it prints the head. Compile and see the
head move over.
3. Now, adjust to move your man's head over 24 spaces for
the first man, 18 the second, 12 the third, 6 for the fourth and 0 for the
first. Instead of printing 10 spaces in each loop, you want to print a number
that is a function of which line you are on. Make a table listing man number,
and number of spaces and then figure out one formula using the counter from the
outer loop (man). Use that formula to stop your space counting loops that used
to move over 10 spaces. Compile and see the head move over properly.
4. Now, you want to move over every line just as you moved
over the man's head. This will mean copying the space loop to go before every line
that prints a part of the man.
5. You can stop when you have the men stepping up. I am not going to insist on the stars at the end printing properly.