Question: 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

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 diners satisfaction as follows. o

Ask for the diners satisfaction level using these ratings: 1 = Totally satisfied, 2 = Satisfied, 3 = Dissatisfied

o If the diner is totally satisfied, calculate a 20 percent tip.

o If the diner is satisfied, calculate a 15 percent tip.

o If the diner is dissatisfied, calculate a 10 percent tip.

o Report the satisfaction level and tip in dollars and cents.

IN PYTHON

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!