Writing Boolean Valued Functions

Step 1: In the Definitions Window, type your first and last name inside quotation marks. (For example, I would type "Adam Wittenstein"). Then hit enter. Then type the following: "Lab #4: April 20, 2006". Then hit enter.
Step 2: Using the Design Recipe, develop a function can-vote? which takes the age of a person and returns whether (or not) that person is old enough to vote.
Step 3: Using the Design Recipe, develop a function can-vote-but-not-drink? which takes the age of a person and returns whether that person is old enough to vote but too young to drink.


When you are finished:
Save the Definitions Window as [last-name]420def.scm.
Save the Interactions Window as [last-name]420int.scm.
E-mail me both of these files by 11:59 p.m. tonight.



Last Modified: 4/20/06