Question: Create a program that uses a loop to calculate and print three options for an appropriate tip to leave after a meal at a restaurant
Create a program that uses a loop to calculate and print three options for an appropriate tip to leave after a meal at a restaurant
Tip Calculator
Enter Cost of Meal: 52.31
15%
Tip amount: 7.85
Total amount: 60.16
20%
Tip amount: 10.46
Total amount: 62.77
25%
Tip amount: 13.08
Total amount: 65.39
- The program should calculate and display the cost of tipping at 15%, 20%, or 25%.
- Assume the user will enter valid data.
- The program should round results to a maximum of two decimal places.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
