Question: In python create the first function called calculate_tip() that receives the total cost and the tip amount . It should calculate what the tip would

In python create the first function called calculate_tip() that receives the total cost and the tip amount. It should calculate what the tip would be and print out the recommendation as follows: calculate_tip(10.00,.15) should print 15% tip: $1.50

Create a second function called calculate_total_cost() that receives meal_price and tax_rate as inputs. It should print out the tax_cost and total_cost.

Then it should call the calculate_tip function 3 times to calculate a tip for 15, 20 and 25%. For example: Calculate_total_cost(100.00, .07) should print: Tax amount: $7.00 Total amount: $107.00 15% tip. 20% tip 25% tip In the main function, prompt the user for the meal price and tax rate, then pass that info into the calculate_total_cost function.

P:S, Please don't use( if), (return) and (else) statements

only simple code, such as

def main():

def ():

def ():

main():

thank you

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 Programming Questions!