- You have the code for drawing the staircase that goes downward
from the left side of the screen.
-
Doing the ascending staircase
HINTS
and directions.
- You need to write (or Copy and Paste and then modify) the code
to make the left side and right side of the graphic, the vertical
strings. You also need to do the Ascending Staircase string
segment. Notice each one is a different color. You can use
whatever colors that YOU like. You do NOT have to use the ones
that I used.
- You can add extra features to the program, if you wish.
For example, you could have an InputBox() function call or have
a TextBox object on the Form, so the user of your program could
try different phrases. That way an ISU Cyclone or an Iowa Hawkeye
or a Joffrey Ballet fan could put in their own phrase!
- You can have every letter be a different randomly chosen color,
or have each segment be a randomly chosen color each time,
for the FOUR segments. That is optional, and not required.
- You can use a Timer control to allow the user to animate the
process. It would only make sense to do this if you either
had the random color happening everytime, or if you had
the timer either erase the screen or write the screen pattern
each time. I'll talk about how to do all of these
special additional techniques on Monday, November 8th in class.
- The other three colors used were Color.Green, Color.Violet and Color.Blue.
- The Mid() function returns a string. It accepts three arguments:
Mid(theString, whereToStartAt, howManyToGet)
- The string you want to extract some characters from the MIDdle of.
- The where to start integer value between 1 and Len(theString).
- How many characters you want starting from that character.
- Type in the above code and try it out.
- Try to add the other vertical or diagonal strings, one at a time,
until you have the full output shown above.