Email: support@prominentessays.com | WhatsApp: +1 (256) 784 58535 | PLACE YOUR FIRST ORDER AND SAVE 15% USING COUPON:

4.8/5

# Hi I Actually Had A Question About Python Coding Option 2 Tip Calculator This

Option 2 – Tip Calculator

This is a program that calculates three options for an appropriate tip to leave after a meal at a restaurant. Specifications are as follows: • The program should calculate and display the cost of tipping at 15%, 20%, or 25%. • Assume the user will enter valid data. • The program should round results to a maximum of two decimal places. • Use a for loop and the range function so that you only need to use one set of statements to calculate and print all 3 values.

()()cost_of_meal = (input())()percent = .15tip_amount = cost_of_meal * percenttotal_amount = tip_amount + cost_of_meal percent range(15, 30, 5):(str(round(percent, 2)) + )( + str(round(tip_amount, 2)))( + str(round(total_amount, 2)))()

I cannot get the output to give me the 20 or 25 percent results.

Cost of Meal: 52.31

15%

Tip amount:  7.85

Total amount: 60.16

20%

Tip amount:  7.85

Total amount: 60.16

25%

Tip amount:  7.85

Total amount: 60.16

That’s the result. Thanks in advance

## Why US?

##### 100% Confidentiality

Information about customers is confidential and never disclosed to third parties.

##### Timely Delivery

No missed deadlines – 97% of assignments are completed in time.

##### Original Writing

We complete all papers from scratch. You can get a plagiarism report.

##### Money Back

If you are convinced that our writer has not followed your requirements, feel free to ask for a refund.