CSci 1301: Problem Set 4

Due: Wednesday, September 30 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 (drawing functions don't need test cases or examples, but still need a contract and a purpose). Also please write data definitions for structures, i.e. specify the types of all the fields.

It is recommended that you work in pairs on this problem set

Problem 1 (25 points)

The hangman problem, i.e. exercises 6.7.1, 6.7.2, and 6.7.3 in Section 6.7. Some important notes:


CSci 1301 course web site.