Lecture 3 Objectives


At the end of today's class you should

KNOW:

BE ABLE TO:

Sample Exam Question:

Write a DrRacket function called sign that consumes a number, and returns one of the words positive, negative, or zero depending on the sign of the number. For example,

(sign -2)

would return "negative"

Comment your function with a contract and purpose, and write a set of test cases for your function.