Question: Create a Python program that serves as a tip calculator for a restaurant patron. The program should ask the user to provide 2 pieces on

Create a Python program that serves as a tip calculator for a restaurant patron. The program should ask the user to provide 2 pieces on information: the amount of the bill and the percentage tip desired. Then, the program should print some nicely-formatted output that includes 6 pieces of information:
the dollar amount of the bill (provided by the user)
the percentage tip (provided by the user)
the dollar amount of the tip (calculated)
the subtotal (the sum of the bill and tips)
tax (tax equals 9.5% of bill)
the total amount to pay, including the tip (calculated)
Your program should follow the input-processing-output pattern. Each numeric value shown in the output section should be rounded to 2 places after the decimal point.
*NOTE: You should be sure to show all dollar amounts with two digits after the decimal point.
Suggestions:
Remember that you will need to work with floating point numbers for the calculated results to be correct, so you will need to use the 'float()' function.
Remember that the 'format()' function can be used to convert numerical values to formatted strings. Refer to Section 2.8 in the textbook and/or to sample programs linked from the Week 2 samples page.
Be sure to include a complete comment block at the beginning of the program. Use comments within the code as you deem appropriate.
Follow this example of the output
Lab2.PNG

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!