Write a program that calculates the total amount of a meal p

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.

Solution

Charge=input(\"Enter the charge for the food:\")

print \'The percent tip is\',0.18*Charge,\'#Sales tax is\',0.07*Charge,\'#Total Amount is:\',Charge*0.25+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 the

Get Help Now

Submit a Take Down Notice

Tutor
Tutor: Dr Jack
Most rated tutor on our site