Ask Question
23 November, 15:43

Write a cash register program that calculates change for a restaurant of your choice. Your program should include: Ask the user to input the cost of 3 items purchased by the customer * Tell the user the total cost of the items purchased Ask the user to input the amount paid by the customer Calculate and print the amount of change to be given to the customer

+3
Answers (1)
  1. 23 November, 17:04
    0
    Python Code

    Explanation:

    total = 0.0

    change = 0.0

    itemone = float (input ("Enter the first price: "))

    itemtwo = float (input ("Enter the second price: "))

    itemthree = float (input ("Enter the third price: "))

    total = itemone + itemtwo + itemthree

    print ("Total:", total)

    cash = float (input ("Cash given: "))

    change = total - cash

    print ("Your change:", change)
Know the Answer?
Not Sure About the Answer?
Get an answer to your question ✅ “Write a cash register program that calculates change for a restaurant of your choice. Your program should include: Ask the user to input ...” in 📙 Computers & Technology if there is no answer or all answers are wrong, use a search bar and try to find the answer among similar questions.
Search for Other Answers