Problem 1: Over or Under (100pts)

Define a procedure over-or-under which takes in a number a and a number b and returns the following:

  • -1 if a is less than b
  • 0 if a is equal to b
  • 1 if a is greater than b
(define (over-or-under a b) 'YOUR-CODE-HERE ) ;;; Tests ; scm> (over-or-under 1 2) ; -1 ; scm> (over-or-under 2 1) ; 1 ; scm> (over-or-under 1 1) ; 0

Remember, you can test your implementation with ok:

$ python ok -q over-or-under