Question: Write a program that calculates the total amount of a meal purchased at a restaurant. The program should ask the user to enter the charge

Write a program that calculates the total amount of a meal purchased at a restaurant. The program should ask the user to enter the charge for the food, and then calculate the amount of a 18 percent tip and 7 percent sales tax. Display each of these amounts and the total.

Attached are images of what i have so far. Im only stuck on the last part of the code where i need to call the total.Write a program that calculates the total amount of a meal purchasedat a restaurant. The program should ask the user to enter the

Assignment8Part1.py - C:/Users/Main/Documents/Schoolio/Fall 2018/IS 115 Intro ToProgra.. File Edit Format Run Options Window Help #Get the charged amount. charge-float (input ('Enter the amount you were charged. $') #Apply the tip and tax. tip- charge*. 18 tax= charge* .07 #Display the amounts. print ("charge for the food: %.2f' % charge) print ('The tip amount: %.2f' %tip) print( 'Tax amount : %.2f' %tax) print ('Total amount: %.2f' %charge -tip -tax) Ln: 11 Col: 0

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!