"Dick Moores" <[EMAIL PROTECTED]> wrote

> For the U.S., say the output so far is:
>
> Enter the cost: 5.77
> Enter the tendered amount: 10
> Your change is $4.23

> What would be the U.S. way of counting back the change? I think we
> start with the $5.77, but then what?

Dunno about the US but in the UK we generally just hand over the total
change as indicated on the till nowadays! :-)

But in days of yore it was done thusly:

5.77 and 3(cents) is 5.80 and 20 (cents)  is 6 and 4 (dollars) is 10.

Except of course we use pounds and pence!

Alan G. 


_______________________________________________
Tutor maillist  -  Tutor@python.org
http://mail.python.org/mailman/listinfo/tutor

Reply via email to