about | help | code help+videos | done | prefs |
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) |
Progress graphs:
Your progress graph for this problem
Random user progress graph for this problem
Random Epic Progress Graph
Difficulty: 100
Copyright Nick Parlante 2017 - privacy