Ask 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 meal Then calculate the amount of a 18% tip and 7 % sales tax. Display the tip, tax and the Overall Total.

+3
Answers (1)
  1. 23 June, 10:38
    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 & 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