Ask Question
25 September, 05:07

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. 25 September, 05:28
    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 & Technology if the answers seem to be not correct or there’s no answer. Try a smart search to find answers to similar questions.
Search for Other Answers