Lab 7

THIS LAB IS DUE ON FRIDAY, OCTOBER 15.

In this lab, I’d like you to create one test case for each function *before* you develop the function itself. Use check-expect for this.

Here’s an example of a function definition accompanied by a test case defined using check-expect:

;; compute the square of half a number
(define (sqhlf x)
  (* (/ x 2) (/ x 2)))
 
(check-expect (sqhlf 30) 225)

Use the "Intermediate Student" language for this lab.