[racket] typo in HtDP

From: David Van Horn (dvanhorn at ccs.neu.edu)
Date: Tue Nov 29 19:44:23 EST 2011

On 11/29/11 6:55 PM, Bloch Stephen wrote:
>
> On Nov 29, 2011, at 4:31 PM, David Van Horn wrote:
>
>> On 11/29/11 4:28 PM, Jakub Hadam wrote:
>>> Hello,
>>> I claim there is a typo in the online version of HtDP:
>>> Exercise 4.3.3, the first condition should be
>>>
>>> [(<=n1000) (*.040n)]
>>>
>>>
>>>
>>> instead of
>>>
>>> [(<=n1000) (*.0401000)]
>>
>> Why?That's what's in the printed book too and it seems perfectly
>> reasonable to me.
>
> Well, it's a "what is the value of this expression?" exercise, so
> technically it could have been anything. However, to solve the intended
> problem of bank interest, Jakub is right: it should be (* .040 n) in the
> first case (otherwise people would earn the same $40 interest on a
> deposit of a penny as on a deposit of $1000.)

Ah, right.  I didn't read enough context to see that.

David


Posted on the users mailing list.