Notes on the Exercises 2.1, 2.5, 2.9, 2.13, and 2.14
- See loop-lab-test.scm for test
expressions and their values.
- For Exercise 2.1, your procedure should have the form (power base
exponent).
- For Exercise 2.5, the integers being multiplied can be positive or
negative.
- Exercise 2.9 is in two parts. (a) In the first part, call your
procedure num-sixes, which takes a single integer
argument n. (b)
In the second part, call your procedure num-digits, which takes
two integer arguments n and d. For either part, n
can be negative.
- The behavior for Exercises 2.13 and 2.14 is described in comments in the
test file.