Tip, Tax, and Total Write a program that calculates the total amount of a meal purchased at a
Need help with this assignment?Get an original answer from a qualified tutor — from $10/page.
Get it written →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/
Get a plagiarism-free answer to this question
Send us your instructions and we’ll match you with the best writer in your subject.
- 100% human-written, zero AI
- Turnitin report included
- Confidential — we never share your data
- Free revisions & refunds