[Tutor] Ingenious script (IMO)
Alan Gauld
alan.gauld at btinternet.com
Tue Aug 7 01:12:34 CEST 2007
"Dick Moores" <rdm at rcblue.com> 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.
More information about the Tutor
mailing list