Answered step by step
Verified Expert Solution
Question
1 Approved Answer
In java Calculating the tip when you go to a restaurant is not difficult, but your restaurant wants to suggest a tip according to the
In java
Calculating the tip when you go to a restaurant is not difficult, but your restaurant wants to suggest a tip according to the service diners receive. Write a program that calculates a tip according to the diner's satisfaction as follows: Ask for the diners' satisfaction level using these ratings: 1 - Totally satisfied, 2 Satisfied, 3 = Dissatisfied. If the diner is totally satisfied, calculate a 20 percent tip. If the diner is satisfied, calculate a 15 percent tip. If the diner is dissatisfied, calculate a 10 percent tip. Report the satisfaction level and tip in dollars and centsStep 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