(Latest Revision: September 11, 2011)

FIRST CS 1500 SOLO PROGRAM
Making ASCII Figures


THE ASSIGNMENT:

Write a program that prints the output depicted below.:

---------------- the ouput starts just below this line ----------------

                 _
                /))
             __(((__
           .' _`""`_`'.
          /  /\\  /\\  \
         |  /)_\\/)_\\  |
         |  _  _()_  _  |
         |  \\/\\/\\//  |
          \  \/\/\/\/  /
     jgs   '.___..___.'



               =,    (\_/)    ,=
                /`-'--(")--'-'\
           jgs /     (___)     \
              /.-.-./ " " \.-.-.\
 
---------------- the ouput 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 pumpkin, and a blank line after the bat.

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 image of the bat:
           jgs /     (___)     \
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 bat 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 << "\":-D\"" ;

prints this:

":-D"

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.