id/email
password
forgot password | create account
about | help | code help+videos | done | prefs
CodingBat code practice

 

tipNtax


The following method should calculate and return the total bill for a meal purchased at a restaurant. The total should be the sum of the meal charge, tax and tip. The tax amount is 7% of the meal charge and the tip amount is 18% of the meal charge. The function should return the total charge


tipNtax(10.0) → 12.5
tipNtax(20.0) → 25.0
tipNtax(30.0) → 37.5

...Save, Compile, Run (ctrl-enter)

def tipNtax(mealCharge):

Editor font size %:
Shorter output


Forget It! -- delete my code for this problem

Progress graphs:
 Your progress graph for this problem
 Random user progress graph for this problem
 Random Epic Progress Graph

Python Help

Difficulty: 100

Copyright Nick Parlante 2017 - privacy