track of a customer’s purchases at the local fireworks stand

profileTopsolutions
 (Not rated)
 (Not rated)
Chat

Your algorithm will keep track of a customer’s purchases at the local fireworks stand. Customers will not know exactly how many items they will purchase, so using a For loop on this lab is not allowed. Let’s keep the rules simple.

•Accept the dollar value of each item purchased from the user until the user is finished.
•When purchases are complete, enter a sentinel value of -1 (indicating that the user has finished).
•If the item purchased is $50.00 or more, give your customer a 10% off

    • 12 years ago
    Solutions
    NOT RATED

    Purchase the answer to view it

    blurred-text
    • attachment
      localfireworksstand.zip