In: Computer Science
Write a program that will calculate a 15% tip and a 13% tax on a meal price. The user will enter the meal price and the program will calculate tip, tax, and the total. The total is the meal price plus the tip plus the tax. Your program will then display the values of tip, tax, and total. Please format the output, also the round up to 2 decimal places. Write the code in python.
Python Program for this problem is ---
price=float(input("Enter the meal price : "))
tip=price*0.15
tax = price*0.13
total=price+tip+tax
print ("The value of tip is : ",end="")
print (round(tip,2))
print ("The value of tax is : ",end="")
print (round(tax,2))
print ("The value of total is : ",end="")
print (round(total,2))