Ask Question
31 October, 03:41

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

+5
Answers (1)
  1. 31 October, 07:00
    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?
Find 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 and Technology if you're in doubt about the correctness of the answers or there's no answer, then try to use the smart search and find answers to the similar questions.
Search for Other Answers