CSci 1301: Problem Set 2

Due: Wednesday, September 15 at 11:59pm by e-mail

Please follow the notations in section 2.5: for each function please write a contract, a purpose, examples, and tests with expected values. You may use check-expect (preferred) for testing.
You must have at least 3 tests for each program.

Problem 1 (8 points)

Exercise 3.3.2, 3.3.3 p. 28.

Problem 2 (8 points)

Exercise 3.3.5 p. 28.

Problem 3 (6 points)

Exercise 4.2.1 parts 1, 3, 5 p. 33.


CSci 1301 course web site.