(Latest Revision: August 23 2010)

FIRST CS 1500 SOLO PROGRAM
Making ASCII Figures


THE ASSIGNMENT:

Write a program that prints this output:

                  _          _
                 ('<        >')
                \(_)________( \
                 (___________)\\
                    (     )     \
                     |   |
                     |   |
                     |   |
                    _|   |_
                   (_______)lc

             __,,__
         _,-"      "-,_
       ,"              "-,
      /                   \
      |                    \
      ;     ,    /          \
       \   ( "-,/            \
        \   \  /  /\   (\/)\  \
         |  ) {  /\ \      }\  }
        /  /  | |  \ [  = =| | |
       |  /   / |   \ ~\  /  | \
       ) \    ) \,  / ((_o) ,/ (
        "'    '~"   "'       "~`
The figures your program prints must be exactly like the ones shown, in every way. (If you work smart with your editor it won't take long to write the program. Ask me for some hints in class.)

To refamiliarize yourself with the basic steps required for doing a programming assignment, please refer to the directions for the Hello World! practice assignment.

To see some sample code similar in structure to what you need to make for this assignment, see makeBee.cpp

Note About A Small Glitch: Some of the characters in the figures above are "backslashes" as in the third line of the birds and bath figure:

\(_)________( \

The backslash has a special meaning in C++. It is used as an escape character. Therefore you must use the escape sequence \\ for each single backslash you want to print. For example, the C++ statement:

cout << "\\" ;

prints one single backslash, and this one:

cout << "\\\\" ;

prints just two backslashes.

Note also that the bear figure above contains double quote characters (and backslashes too). Like the backslash, the double quote has to be escaped with a leading backspace. For example, this statement:

cout << "\"' '~\"" ;

prints this:

"' '~"

If you don't escape a double quote in a cout statement, then naturally the compiler would interpret the double quote as the delimiter indicating the end of the string you want written to the screen. So that explains why double quotes need to be escaped, right? The FOURTH double quote in the cout statement above is the one that actually delimits the end of the string to be printed.


WHAT TO TURN IN:

You will be sending me two e-mail messages. Please follow these rules: Here is the list of things you have to turn in: Note that there are no spaces in the subject lines given above. It is important that you do not insert any spaces. The easiest way to make sure you are using the correct subject line is to just select, copy, and paste it into the appropriate location when you are composing the e-mail.

My e-mail address is: john@ishi.csustan.edu


DUE DATES:

For the due dates, see the class schedule.



In case you are interested, I didn't create the ascii art I used for this assignment. I found it somewhere on the world wide web. If you are interested in seeing more examples, just use the keywords "ascii art collection" in a search engine.