[racket] Basic Racket Question

From: Danny Yoo (dyoo at cs.wpi.edu)
Date: Tue Dec 21 19:37:24 EST 2010

> I am following the book again and your examples but i am rewriting examples
> so I am learning it.
>
> I came to this as a solution based on feeedback but it is erroring on the
> word gross as part of my netpay function. Do i need to define the gross
> function in my netpay function?
>
>  (define tax-rate 0.15)
>  (define pay-rate 12)
>  (define (gross hours)
>    (* hours pay-rate))
>
>  (define (netpay gross tax-rate)
>    (gross (- tax-rate)))

Two points:

1.  Are you also following the Design Recipe?  I see no test cases anywhere.

2.  What's the exact error message you got from this?  I can guess
that you're seeing some kind of error message (you should!) and I want
to make sure you're seeing the same.


Posted on the users mailing list.