Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Problem: You have been hired to write a program that prompts the user for the cost of food and the cost of drinks consumed at
Problem: You have been hired to write a program that prompts the user for the cost of food and the cost of drinks consumed at a restaurant (2 separate questions), and produces a bill detailing subtotal, tax, tip, and total amounts.
The tax is 7% of the total meal (food and drinks) cost. The tip should be 20% of the subtotal before adding the tax (or you can ask the user for tip percent or show 2 or 3 options for tip values and totals).
Instructions
1. Start by writing an algorithm to solve the problem. You will save this as a file called mealcost_algorithm.py before writing any python code.
2. Next you will use the algorithm your wrote as the comments for the program you will write in the next step. Be sure to space the comments out and write your code around them. Save this file as mealcost_program.
3. Make sure to ask the user for their name and include their name in the questions you ask about food and drink costs, and maybe the outro.
4.Your program must use a constant for the tax value of .07 (and tips percent(s) if you are not asking the user).
= Include a fun title/intro, add some designs using simple keyboard characters (like a line of *'s or -'s), add some pauses using sleep
= Make the output user friendly and make sure it looks like money using f formatting and the :,.2f we earned in class.
= Include blank lines and tabs in your output.
= Include one more unique thing in your program that make your code individual
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started