CSci 1301: Problem Set 4

Due: Wednesday, October 9 at 11:59pm by e-mail

You are required to write signatures and descriptions for all functions, and also descriptions of all your structures. Additionally, functions must be tested, either using check-expect, or (for images) just by showing the image.

Make sure to have enough test cases to demonstrate that the function is correct. I may take points off for a lack of testing (in addition to those taken off for incorrect behavior) if your function doesn't work on particular expected data and there is no test for it. It's much better to leave a test that fails (perhaps in comments) that shows that the function doesn't work on given data and you don't know how to fix it.

Exercises

  1. Exercise 60 (5 points) in Chapter 5.
  2. Exercises 66, 67, 70, 71. For 66 and 67 show examples of using selectors for at least some fields (16 points total) in Chapter 5.
  3. Exercises 95 (3 points) and 99 (10 points) in Chapter 6.

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.