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

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!