Conceptually, an ASCII-art picture is a two-dimensional grid,
nuColumns columns wide and nuRows rows tall. (For
the equipment Mr. Surd is using, reasonable values are
nuColumns = 80 and nuRows = 24.) Each point in the
grid is identified by its x-y coordinates (where the upper left corner
has x=0 and y=0, and the lower right corner has
x=
Mr. Surd's program allows its user to draw a picture on such a grid and display it on demand (i.e., the picture is only displayed when the user requests it). The program repeatedly prompts the user to enter one of a selection of one-letter commands -- one for each allowed shape (point, vertical line, etc.), plus commands to display the drawing, clear the drawing, and quit. If the user enters the command to draw an object, the program prompts for its coordinates and dimensions and the character to use in drawing it.