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

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!