CS35: Assignment 9

CS35: Programming and Problem Solving
Ray Ontko
Department of Computer Science
Earlham College

Due Friday, 1999/09/24

Programming Exercise

Write a program which reads characters from standard input (i.e., until the user types a CTRL-D) and for each character read produces a bigger version of that character, sideways, composed entirely of asterisks and spaces. This is a banner printing program.

As a simplification, you may wish to implement only a few letters of the alphabet (say, the ones in your name) but your program should be capable of creating a banner comprised entirely of the letters or other symbols you implement. In any case, your program should include a separate function for each letter it is capable of printing.

When you run your program, the dialogue should look something like this:

$ ./banner
banner -- produces a banner from the characters entered.

Enter text followed by CTRL-D.
ray

          **********
          **********
                 **
                 ***
                 **
          
             ****
           ********
          ***    ***
          ***    ***
           ********
          **********

           *********
    **    **********
    **    **
    **    **
    ****************
      **************

$

Note that this same program could be used print a banner for the word "array".

Copyright © 1999, Ray Ontko (rayo@ontko.com).