Question: Calculating a tip when you go to a restaurant based on service if something we all do. However, current tip recommendations are not based on

Calculating a tip when you go to a restaurant based on service if something we all do. However, current tip recommendations are not based on degree of satisfaction. This program should create such a tip calculator. 1. In the Tip class: Create a Tip class. Create an instance variable called satisfactionBating. This variable should be an int. Create a constructor. The constructor sets (initializes) satisfactionBating variable to the value in the parameter. Create a method, salculateBill. It will calculatesa tip, calUp,and add it to the cost of the meal. The method should have a double argument which you should name bill that represents the cost of the meal before the tip. Create a variable which is a double and called tip. If the satisfactionRating is 1, multiple the bill by 20% and assign it to the variable named tip. If the satisfactioRating is 2, multiple the bill by 15% and assign it to the variable named tip. If the satisfaction Rating is 3, multiple the bill by 10% and assign it to the variable named tip. Add the tip to the bill and return the calculated value. The method should return a double which represents the numeric calculation of the tip + the cost a. b. c. d
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
