CSci 1301: Problem set 4

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

What to submit

Please send me all your Racket files as e-mail attachments. My e-mail is elenam at The subject of your e-mail must be "1301 Problem set 4" followed by your initials or name.

Task 1 (16 points): walk signal

Exercise 108.

Task 2 (4 points): equality for traffic light values

Exercise 115 at the end of section 6.5. Please read the entire section. For the exercise start with check-error to specify what message you would like to get for calls such as (light=? "red" "purple"). It should be something like: "traffic light expected as second argument, given: purple".
Note that if both values passed to the function are not valid traffic light colors then only the first one of them will be listed in the error message, and that's fine.

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.