<div dir="ltr">Using DrRacket v5.3.6, if I enter:<div><br></div><div><div>(define (tax pay)</div><div>  (cond</div><div>    ((<= pay 240.0) 0)</div><div>    ((<= pay 480.0) (* (/ 15 100) pay))</div><div>    ((else ((+ (* (/ 15 100) 480) (* (/ 28 100) (- pay 480))))))))</div>
</div><div><br></div><div>I get error</div><div><br></div><div>else: not allowed as an expression in: (else ((+ (* (/ 15 100) 480) (* (/ 28 100) (- pay 480)))))<br></div><div><br></div><div>Can you not have an expression in an else clause?  Can an else only contain a simple value?  What am I doing wrong?</div>
<div><br></div><div>This is HTDP ex 4.4.2 by the way.</div><div><br></div><div><br></div></div>