Why does my function CountChange not work the same way, Wellin says it does on page 117 of his book Essential of Programming...?
CountChange is CountChange[coins_Llist] := Total[coins /. {p -> .01, n -> .05, d -> .10, q -> .25}]
CountChange[{p, q, q, d, d, p, q, q, d, d}]
Why do I not receive output of "1.42". Please see attach
Attachments: