CSE 111, Fall 00, HW #8

CSE 111, Fall 2000

#### HW #8: CONCATENATION AND ARITHMETIC

1. Do Biermann, Ch. 2, p. 48, #1.
   - This requires you to design, write, compile, and test (and debug, if necessary) a Pascal program that tests the concatenation operator.

2. Do Biermann, Ch. 2, p. 51, #1.
   - This requires you to design, write, compile, and test (and debug, if necessary) a Pascal program that uses choice (if-then-else) to compute the answer to an arithmetic problem.
   - Hint: An integer n is positive =def n > 0; an integer n is negative =def n < 0.
     Question: Is 0 positive?

3. Do Biermann, Ch. 2, p. 51, #2.
   - This requires you to design, write, compile, and test (and debug, if necessary) a Pascal program that inputs two integers from the user and computes some arithmetic functions.

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

- Cover page with your name (clearly printed), lab number, date.
- Copies of your Pascal programs.
- For each program: 2 sample runs.
- If any of your programs don't work by the due date, then turn in a bug report (of the sort you wrote for HW #7).

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