Question
PYTHON Write a program that calculates and prints the total bill at a restaurant. Prompt the user for the cost of the meal and then
PYTHON Write a program that calculates and prints the total bill at a restaurant. Prompt the user for the cost of the meal and then ask if a tip will be added. If it is, prompt for the tip percent as an integer. Of course, the tip percent should not be requested if no tip will be added. Finish by printing the meal cost, tip amount, and total bill. All three outputs should be in currency format as described above. See Sample Output below. User inputs are shown in boldface. Sample Output Enter total cost of the meal 80 Are you adding a tip? y/n y Enter the tip percent as an integer 25 Here is your bill. Meal cost $80.00 Tip $20.00 Total cost $100.00
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started