CSE 111, Fall 00, HW #9

CSE 111, Fall 2000

#### HW #9: SUBSTRINGS

1. Do Biermann, Ch. 2, pp. 56-58, #1:
   - This requires you to read, understand, and tell in simple English what several substring programs do both on particular input and on inputs in general.
   - Hint: You can try running the programs after making your initial guess on what they do on the particular input.
   - However, note that you also have to tell what they do in general, which can't be answered just by running the program; you'll need to understand the program to answer that!

2. Do Biermann, Ch. 2, p. 58, #2:
   - This requires you to design, write, compile, and test (and debug, if necessary) a Pascal program that uses the substring function.

You should turn in the following, all stapled in the upper-left corner:

- Cover page with your name (clearly printed), lab number, date.
- For the first set of problems, your handwritten answers.
- For the second problem: Your program + 2 different sample runs
- If your program doesn't work by the due date, then turn in a bug report.

DUE: AT THE START OF LECTURE: WED., NOV. 8