On 5/21/07, mkaylad99 <[EMAIL PROTECTED]> wrote:
> Just curious, how would you create a cash register program in
> comparison to a calculator program?
A basic calculator only does arithmetic operations.
A cash register will start a "shift" with a certain amount of "cash",
and then running totals must be kept for cash that goes in and cash
that goes out. Then the cash register handles transactions as
purchases are made, money is taken in, and then change is made, if
necessary. At the end of a shift, the actual amount of money inside
the cash register must reconcile against the amounts brought in and
the amounts taken out. If the amounts don't reconcile, then the
cashier is dishonest and must be fired.
Is this for a homework problem?
-- Brett
------------------------------------------------------------
"In the rhythm of music a secret is hidden;
If I were to divulge it, it would overturn the world."
-- Jelaleddin Rumi