Answered step by step
Verified Expert Solution
Link Copied!
Question
1 Approved Answer

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

blur-text-image
Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

1 2 3 Data Base Techniques

Authors: Dick Andersen

1st Edition

0880223464, 978-0880223461

More Books

Students explore these related Databases questions