A22.0002

Homework assignment #4

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:

**********
*        *
*        *
*        *
*        *
**********
*        *
*        *
*        *
*        *
The procedure ProcA will in turn use procedures HorizLine and VertLines; 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.