Question: 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

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!