CSci 1301: Problem Set 7

Due: Friday, October 29th at 11:59pm by e-mail

As always, please include a contract, a purpose, examples, and tests for each function.

You may work in pairs or individually on this problem set.

Problem 1 (6 points)

Exercise 12.3.1. Read the entire Section 12.3 first to understand the problem better.

Problem 2 (14 points)

Extended exercise in Section 12.4. Use your notes from the class as a guide. Make sure to write tests for your functions. However, don't use check-expect since the results may appear in a different order causing check-expect to fail even when you are getting correct results.

Important: we used different names for functions in class. You may use the names from the book or the names that we used in class or come up with your own, as long as they are descriptive.


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.