Consider a coin-operated vending machine. Assume that themachine accepts only quarters, dimes, and nickels. Coins areinserted until a total of 25 cents or more is deposited. Only onecoin is deposited at a time. The input signals corresponding toeach coin are given by I25, I10,and I5.
The output signal OM should indicate thatmerchandise should be provided. OM = 0 indicatesno merchandise. At the same time as the last coin input (that makesthe total amount 20 cents or higher), the change outputs are to beset. Assume that the machine can give a dime (O10= 1) and/or a nickel (O5 = 1). Use the
PayPal Gateway not configured
PayPal Gateway not configured