The Restaurant Supply Warehouse requires an algorithm which will keep track of a customer's appliance purchases at the Restaurant Supply Warehouse. Customers will not know exactly how many items they will purchase as they browse the store. (Hint: a For loop will not work.)
Requirements:
· Accept the appliance name and price of each appliance purchased from the customer until the customer is finished.
· When purchases are complete, the customer will specify they are done by stating they have no further purchases.
· Keep track of the name and dollar amount of each appliance purchased.
· Keep a tally of the number of appliances purchased.
Once purchases are complete, display the following:
· The name and price of each appliance purchased
· The subtotal of all appliances purchased
· The tax
· The tally of the total number of appliances purchased
· The total cost of all appliances purchased