CSci 1301: Problem Set 2

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

Please follow the notations described in section 2.5: for each function please write a contract, a purpose, examples, and tests with expected values.
You should 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 2, 3, 5 p. 33.

CSci 1301 course web site.

The views and opinions expressed in this page are strictly those of the page author. The contents of this page have not been reviewed or approved by the University of Minnesota.