Question: Write a program that calculates the amount of a meal purchased at a restaurant. The program should ask the user to enter the cost of

Write a program that calculates the amount of a meal purchased at a restaurant. The program should ask the user to enter the cost of the meal. It should apply the sales tax of 7.125% and add that to the total. The program should print out the pretax cost, the tax, the total cost. It should also give suggested tips for 15%, 20% and 25% of the total cost.

Inputs Outputs Processing

Test Case 1

Example Input

Expected Output:

Test Case 2

Example Input

Expected Output:

Pseudocode

Python Code

Test Results

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!