Class 3 Objectives


At the end of today's class you should

KNOW:

BE ABLE TO:

Vocabulary: predicate, test case

Sample Exam Question:

Write a Racket function called sign that consumes a number, and returns one of the words positive or negative, depending on the sign of the number (consider 0 a positive number). For example,

(sign -2)

would return "negative"

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