[plt-scheme] solution for exercise 5.1.3

From: carlo ambrogio (cr-service at hotmail.it)
Date: Thu May 8 17:46:47 EDT 2008




is this correct?

(define (unity a b c)
(+ (* a 100) (* b 10) c))

(define (check-guess3 a b c target)
  (cond
     [(< (unity a b c) target) 'TooSmall]
     [(= (unity a b c) target) 'Perfect]
     [(> (unity a b c) target) 'TooLarge]))

_________________________________________________________________
Una cena tra amici? Cerca il ristorante con Live Search Maps
 http://maps.live.it
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.racket-lang.org/users/archive/attachments/20080508/2201d8a8/attachment.html>

Posted on the users mailing list.