A22.0002 Fall 1996

Homework assignment #4

Due Oct 29, 1997.

Write a program that produces block letters for any six of the following letters:A, B, C, E, F, G, H, J, L, O, P, S, or U. You should choose the six letters you want printed by writing the appropriate procedures calls in your main program.

For example, the letter A would be formed by procedure ProcA as follows:

**********
*        *
*        *
*        *
*        *
**********
*        *
*        *
*        *
*        *
where procedure HorizLine would produce **********; and VertLines, would produce:
*        *
*        *
*        *
*        *
Thus ProcA would be written as:
ProcA;
BEGIN
    HorizLine;
    VertLines;
    HorizLine;
    VertLines
END;
On the other hand, the letter "H" would be produced by the following sequence: Vertlines; Horizline; VertLine. By writing an additional procedure that produces a vertical line in column 1, and another one that produces a vertical line in column 10, your program can produce all of the indicated letters. All the letters should be the approximately the same height.





Sam Marateck
Sat Oct 25 22:07:01 EDT 1997