Question
A waiter or waitress serving an individual table at a restaurant is usually tipped between 15 and 20% of the cost of the meal. However,
A waiter or waitress serving an individual table at a restaurant is usually tipped between 15 and 20% of the cost of the meal. However, some restarurants don't leave the amount of the tip up to the customer and charge a fixed percentage of the meal. First, complete the calcTip() method shown below for a party of two. Then, Write a complete overloaded method called calcTip which calculates the tip at the rate of 17.5%. (Note: You will submit two methods for this question.)
//post condiditon: returns the amount of the tip public double calcTip(double percent, double mealCost) { //complete the code for the first method here } //second method to be written here
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started