Ask Question
7 December, 22:33

Write a python program that calculates the amount of meal purchased in a restaurant. The program shoud ask the user for the charge of the meal Then calculate the amount of a 18% tip and 7 % sales tax. Display the tip, tax and the Overall Total.

+2
Answers (1)
  1. 7 December, 23:58
    0
    charge = float (input ())

    tip = charge*0.18

    tax = charge*0.07

    print ('tip:', round (tip))

    print ('tax:', round (tax))

    print ('total:', round (charge+tip+tax))

    Explanation:

    Step 1 read the user charge

    charge = float (input ())

    Step 2 calculate the tip and taxes

    tip = charge*0.18

    tax = charge*0.07

    step 3 show results

    print ('tip:', round (tip))

    print ('tax:', round (tax))

    print ('total:', round (charge+tip+tax))
Know the Answer?
Not Sure About the Answer?
Find an answer to your question ✅ “Write a python program that calculates the amount of meal purchased in a restaurant. The program shoud ask the user for the charge of the ...” 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