Write the code to complete a method, printTipAmount(), as de…
Write the code to complete a method, printTipAmount(), as defined below. This method receives the cost for a meal and an integer indicating a satisfaction level (1 – 4). The level determines the percentage tip to be used to calculate the tip amount. Use the following information, in your calculations: Tip Amount Satisfaction Level Tip Percentage 1 – Totally satisfied 20% 2 – Satisfied 15% 3 – Somewhat dissatisfied 10% 4 – Totally dissatisfied 5% The result of the calculations are output to the console. For example, a meal cost of 29.75 and a satisfaction level of 1 would result in the following output: Customer satisfaction level: Totally satisfiedTip earned: 20.0% or $5.95 Code submitted in the text box supplied must include the complete method signature and body, using the correct data types based on the problem statement.