Question
Write a Python program that will calclate the tip and total price for a meal. consider fixed tip of 15%, 20%, and 25% of totla
Write a Python program that will calclate the tip and total price for a meal. consider fixed tip of 15%, 20%, and 25% of totla price Example of the Outcome of the program will looks like Tip Calculator Cost of meal: 10 15% Tip amount: 1.5 Total amount: 11.5 20% Tip amount: 2.0 Total amount: 12.0 25% Tip amount: 2.5 Total amount: 12.5 Specifications the formula for calculating tip amount is : tip = cost of meal * (tip percent /100) the program should accept decimal entries like 52.31 and 15.53Assume the user will enter valid data the program should round the results to a maximum of two decimal places
Step 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