Complete the following Python calculator problem using Python IDLE, and provide the screen capture of your Python showing the answer and your working process of
Complete the following Python calculator problem using Python IDLE, and provide the screen capture of your Python showing the answer and your working process of solving the problem. Here's the instructions:
Create a variable named meal and set it to the meal cost - $33.75
Create a variable named tax and set it to the percentage of tax 8.75%
Create a variable named tip and set it equal to the tip percentage 15%
Reassign the variable meal to be the value of the meal plus the tax
Create a new variable named total that should be set to the full total for the bill including tip (let's assume you are being generous and tipping on the meal + tax amount)
Print the total to the screen using nice formatting (HINT: In Code Academy, we learned about formatting output, try this "$%.2f" % total)
Create a new variable called diners and set it equal to 2 (number of people sharing the meal)
Calculate each person's share of the bill and print it to the screen
Step by Step Solution
There are 3 Steps involved in it
Step: 1
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