CISC181, Pre Lab Exercises, Chapter 5
Spring 2004, P. Conrad

In chapter 5 of your lab manual (Deitel/Deitel/Nieto), do the following pre-lab exercises:
Problems Pages Points Total
1-10 p. 175 2 pts each 20 pts
11-14 p. 177 2 pts each 8 pts
16-18 p. 177 2 pts each 6 pts
20-21 p. 179 8 pts 16 pts
23-29 pp. 181-183 4 pts 28 pts
35 pp. 187 4 pts 4 pts
Putting your name on paper 8 pts 8 pts
Putting your section on paper 5 pts 5 pts
Stapling your pages in the right order 5 pts 5 pts
TOTAL 100 pts
Hints:
3,6,13 See section 5.8
10 Pages 368-369
12 There are two possible answers that both start with the letter "c". Clue: are the "scattered" thorughout memory? Or are they the opposite of "scattered"?
18 See Section 5.12.2, starting on p. 362.
26,27 See Section 5.8, especially pp 347 and 348. Also note that the setw(4) doesn't appear to have any effect on the output, so just pretend it isn't there.
27 Don't forget to include the output "The string in array x is:" in your answer; same with the other two strings.
28,35 Read pp. 365-368
29 Read pp. 369-370

Due: at the start of lab on Wednesday 3/31/04. This is the Wednesday right after you get back from Spring Break!


Phillip T Conrad
Last modified: Mon Mar 15 16:42:49 EST 2004