(Latest Revision: September 11, 2012)

FIRST CS 1500 SOLO PROGRAM
Making ASCII Figures


THE ASSIGNMENT:

Write a program that prints the output depicted below.:

---------------- the output starts just below this line ----------------

       )
      (      .---.
       )    /////\\
     _(_   ((c` .(
    //o\\  )))_ _/
          ((/  ;_ __
           / \___(__)
          /   (_ 
          \____/\
          /___\\_\
         /""|""\\_\_
    jgs /   |   \(__\

        _
       ( \
        | ;
        ; |      ,-""""-.-""-.
         \ \    /      /      \
          \ '--'       )       \-""""-.
           \     a    ;        |       '.
            '.__      |       /          \
              '-.    ;     _.'            \
                 '-,/     /              |\\
                   <___.;`               | \\
                      /`|                \  |`\
                     /  |   /-----.,_     \  \|
                    /   |   |    |   ;.    \
                    '../|   \    /   | \    |
                   jgs  \.../    \.../  \../

---------------- the output ends just above this line ----------------
Your program must output everything depicted above, including all the blank characters and all the blank lines. Please do not fail to notice that there is a blank line before the first figure, and a blank line after the second figure.

If you work smart with your editor it won't take long to write the program. Ask me for some hints in class.

To re-familiarize 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 code you could write to solve this problem, see makeBee.cpp

Note About A Small Glitch: Some of the characters in the figures are double-quote characters and backslashes. If you want to write a cout statement that causes a double-quote character or backslash character to be written to the screen, then in your code you have to precede the character with an escape character, to warn the compiler not to interpret the special character with its usual special meaning. C++ uses the backslash as the escape character.

For example, if you want to write this:

@@":-D"xx

to the screen, you have to use a statement like this:

cout << "@@\":-D\"xx" ;

Notice that the second and third double-quote characters in the example above are preceded with the escape character, a backslash like the one in this box: [ \ ]. The placement of the escape character tells the compiler that we want our program to write the second and third double-quote characters on the computer screen, and that we DO NOT want them to be interpreted in the usual way. (Usually a double-quote character in a cout statement is used to delimit the start or the end of the string we want the program to write to the screen.)

Also, when we actually want the program to write the escape character (the backslash) to the screen, we place an initial backslash before the backslash that we want to print, so that the compiler will know what we want. For example, the C++ statement:

cout << "\\" ;

prints one single backslash (the second one), and this statement:

cout << "\\\\" ;

prints just two backslashes (the second one and the fourth one).


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. For example, if you are going to send the e-mail in the manner described in the Hello World! lab exercise, then you would just paste the subject line into the appropriate part of the command you type to send 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. You can do a web search using the keywords "ascii art collection" if you want to see more examples. There is a profusion.