Sept. 6, 2010
pp. 226-227: Missing right-parentheses in the definitions of
bank-interest-rate and customer-type:
(cond [(< balance 500) 0.00 ]
[(and (>= balance 500)
(< balance 1000) 0.01 ]
[(and (>= balance 1000)
(< balance 4000) 0.02 ]
[(>= balance 4000) 0.03 ]
should be
(cond [(< balance 500) 0.00 ]
[(and (>= balance 500)
(< balance 1000)) 0.01 ]
[(and (>= balance 1000)
(< balance 4000)) 0.02 ]
[(>= balance 4000) 0.03 ]
and, on the next page,
(cond [(< balance 500) "college student" ]
[(and (>= balance 500)
(< balance 1000) "poor" ]
[(and (>= balance 1000)
(< balance 4000) "moderate" ]
[(>= balance 4000) "rich" ]
should be
(cond [(< balance 500) "college student" ]
[(and (>= balance 500)
(< balance 1000)) "poor" ]
[(and (>= balance 1000)
(< balance 4000)) "moderate" ]
[(>= balance 4000) "rich" ]