(Latest Revision: 08/22/2004)
FIRST CS 1500 SOLO PROGRAM
Making ASCII Heads
THE ASSIGNMENT:
Write a program that prints this output:
//////\\
/ \
_| _ _ |_
|.|-(.)-(.)+.|
\| J |/
\ --- /
\ /
"####"
-------+ \
\\\\\\\\\ \
//_//__\\\ |
/\0' `0~ |\ /
(|^<, ^ .)|
( ._. ||/
\ . / |
+--/ |
The heads 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" like these:
\\\\\
The backslash has a special meaning as an escape character, and
so you must use the escape sequence \\ for each single
backslash you want to print. For example,
cout << "\\" ;
prints one single backslash, and
cout << "\\\\" ;
prints just two backslashes.
WHAT TO TURN IN:
You will be sending me two e-mail messages. Please follow these
rules:
- Always send me e-mail as plain text in the main message body.
Never send me attachments.
- Always use the exact subject line I specify for each
message. (I often get hundreds of e-mail messages in a week. The
subject line allows me to find and sort messages.) You will lose
a significant number of points on the assignment if you use the wrong
subject line.
- Be very careful when you send the e-mail. You may use the
instructions in your
Hello World! lab excercise
for guidance. Of course, you will need to make the obvious changes to
those directions -- you have to use the correct subject line and
filename.
- Always send yourself a copy of each e-mail message
you send to me, check immediately to see if you
receive the message intact, and check within a few minutes
to see if you have received e-mail notifiying you about an
undeliverable message. You are
responsible for sending e-mail correctly.
Here is the list of things you have to turn in:
- At the start of class on the
due date
place the following item on the "counter" in front of me:
- a hardcopy (printed listing) of your program (the C++
source code). Make sure all the code is properly
formatted and that it all shows on the paper.
- Before midnight on the the due
date send me the following by e-mail:
- A copy of the source code (C++ code) with subject line:
CS1500,prog1.f, and
- a (filtered) script showing a test run of the program,
with subject line: CS1500,scrp1.f .
Note that there are no spaces in the subject lines given. It is important
that you do not insert any spaces. 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-line a long time
ago. You might want to try finding examples of ascii art with a
search engine. There is a lot of it out there.