Ask Question
27 February, 16:23

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.

+5
Answers (1)
  1. 27 February, 20:15
    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?
Get 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 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