Question: Assignment id: ola2 Assignment type: Project Required Files: ola2 py, myout.log Lab description: Write a Python program to get information from a user, and compute

 Assignment id: ola2 Assignment type: Project Required Files: ola2 py, myout.log

Assignment id: ola2 Assignment type: Project Required Files: ola2 py, myout.log Lab description: Write a Python program to get information from a user, and compute and output the total for a meal purchased at a restaurant. The program wll provide a breakdown of the total bill, to include meal cost, tax, and tip. Save your program with the name ola2.py. The program should 1) ask the user to input the cost for the meal 2) prompt the user for the tax rate (to be applied only to the cost of the meal, excluding the tip) calculate the tax on the food amount only (not including tip) 4) ask the user for a tip percentage (the tip will be applied to the total of the meal plus the tax) 5) calculate the tip on the sum of the meal cost and the tax 6) display the meal cost, the tax due, the tip amount, and the total for the meal, as a monetary amount, to two decimal places 7) Your program should include documentation as comments at the top of the file, to include your name, section number, assignment (OLA2), and a brief description of the program. Sample Output The lack of any spaces between the dollar sign (S) and the amount All amounts to two decimal places The lack of any spaces preceding the periodl.) at the end of the sentences Enter the eo t f the meal: 100 Enter the tax rate as a decimal (e.g., for 9% enter o.09); .10 Enter the tap percentage as a decimal (e.g., tor 15% enter 0.15): .20 Your meal cost $100.00. The tax on the meal $10.00 The tip on the meal plus tax 1 $22.00 Your total bi11 is $132.00 5> Remember to never change, or share, the default password for your class account. If you have a problem getting into to your class account please see the instructor or Lab GTA. You must submit your project via handin using your class account. Do not submit via email OLA assignments are to be done on your own, on your own time. Help may only come from your instructor, your GTA, tutors, or other faculty, NOT from your fellow students

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!