python

Tip, Tax, and Total

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 an 18 percent tip(use 0.18) and 7 percent sales tax (use 0.07). Display each of these amounts and the total.

USE THIS

#This program calculates profits
#Greets the user
print(“Welcome!”)
#prompts the users for the name  of the Sales Agent
SalesAgent = input(“Enter the name of the Sales Agent: “)
#prompts the user for the total sales
TotalSales =float(input(“What is the total sales: $”))
#notes the commission rate
comrate = 0.325
#computes the commission based on Total Sales
Commission = (TotalSales*comrate)
#Final output
print(“Summary”)
print(SalesAgent)
print(“TotalSales: $”, format(TotalSales, ‘ .2f’))
print(“Commission: $”, format(Commission, ‘ .2f’))

ALSO USE THIS WEBSITE

https://replit.com/