Question: 3. Tip, Tax, and Total Design a program that calculates the total amount of a meal purchased at a restaurant. The program should ask the


3. Tip, Tax, and Total Design 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 a 15 percent tip and 7 percent sales tax. Display each of these amounts and the total. Design a program to solve Chapter 2 Programming Exercise 8 (Tip, Tax, and Total) in the textbook. a) Complete the following IPO Chart for the problem: b) Use a software application to create the flowchart that implements your proposed solution. Use named constants to represent the percent tip and sales tax. Create a pdf version of this flowchart titled TaxTipTotalFlow.pdf that includes your name, date, class and lab assignment number. c) Create the Python source code, TaxTipTotal.py, representing the flowchart requirements from the previous step. The Python source code must have the following for full credit: - Include a block comment header at the beginning of your program that identifies the author, date, assignment, filename, and short description of the program. - Include line comments as appropriate to explain the more complex parts of your program. - Although Python does not directly support named constants, you can simulate a named constant by using an all UPPERCASE named variable with an initialization value that does not change throughout the program. - Include a block comment at the end of your program that includes the output from a sample program run
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
