- You do not need to do Section 3.7 for Lab03; it is assigned as a separate homework assignment (H04).
(This note added 3:07PM, 9/22/2003).
- p. 41, just before section heading 3.4, ther e is a note:
When you download files for this course using Netscape,
save them in a directory CIS105Labs.
You should delete the words "using Netscape". You might sometimes download
files using Netscape, but more often you will copy files using the cp
command which is covered at the beginning of section 3.4.
- At the bottom of page 44, item 5 starts:
Lastly, add statements to the end of the program to compute the following and print the results of
each computation.
The "computations" being referred to are at the top of page 45. Be sure you
read the whole paragraph before you try to figure out what it means, and you will have
less chance of getting confused. Basically, the program right now has one (incorrect) assignment
statment that computes the sum. You have to "fix" that broken assignment statement in item 4.
In item 5, you are adding three more assignment statements that compute three other values.
- On p. 45, item 1 in section 3.5, it says to copy a file lab3b.c. You do this the same way you
copied the file on p. 43, but changing the end of the command to say lab3b.c instead of lab3a.c.
From now on, you'll just be expected to "know" that this is how you copy
files that are in the lab manual, so you might want to bookmark p. 43 somehow, or put a reminder to
yourself on the inside of the front cover of your lab manual.
- On p. 47, under item 3 around the middle of the page, there is a paragraph that starts "To do this,
you should use a simple, one alternative if statement.". It goes on to say that this is
covered in Chapter 4, and we haven't gotten there yet. This statement is bogus, and refers to a different
version of the textbook.
For our class, if have been covered on p. 41 and 42 in Chapter 2, and more extensively
on p. 60 in Chapter 3. So you should be fine with knowing how to use an if statement.
- On p. 48, it tells you what to hand in. Make sure that you make the following changes to these instructions:
- Use .txt instead of .scr as the file extension for your script files.
- Ignore the last sentence on page 49 about "laser printing" your files, and ignore the
commands:
cat lab3*.scr > handin
qpr -q whlps handin
- Instead, submit six (6) files via webct: lab3a.c, lab3b.c, lab3c.c, lab3a.txt, lab3b.txt, lab3c.txt.
- Grading:Your C files are worth 15 points each. Your script files are worth 15 points each. Correctly submitting
everything according to the instructions is worth 10 points, for a total of 100 points.