(Latest Revision: 03/01/2000)
03/01/2000 -- clarified some procedures
Directions for Lab #2
Do Laboratory 1 on page 96 of Shiflet. The file lab021.cpp is
here.
Do all the steps. However in steps b and e, instead of
printing a listing and a sample run of the program, send the
listing and sample run to me via e-mail. Do this in the manner
described in
the "Hello World" example:
make a script of a run of the program, filter the script to
clean it up, e-mail the source code, and e-mail the script.
Note that the lab calls for two version of the source and
output, so that makes a total of four pieces of e-mail you have
to send.
Incidentally, it would be a good idea to separately save each
version of the program source code that you make, and each
version of the script that you make. For example you could use
the Unix cp command in a manner like this:
cp lab2.cpp lab2A.cpp
cp lab2.script lab2A.script
to save copies of the current versions of your source and
script files. Later when you have different versions, you can
save them as lab2B.cpp and lab2B.script. Ask me about this if
you have questions.
For the first two e-mails, use the subjects CS1500, Lab2
source A and CS1500, Lab2 script A. For the second
two e-mails, use the subjects CS1500, Lab2 source B and
CS1500, Lab2 script B.
You must complete all steps of the lab on Friday, March 3,
including the e-mailing of the source and script files.
Therefore, spend some time before Friday getting ready. Study
the directions, rehearse, and ask questions.