A22.0002, Section 2

HOMEWORK #4

Write a program that produces block letters for any eight of the following letters:A, B, C, E, F, G, H, J, L, O, P, S, or U.
You should choose the eight 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; VertLines. 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. As always, please submit your source code along with the output containing all of your selected letters.

 

adapted from an assignment by Sam Marateck