Question: Python script: Write a function called meal_price to calculate the cost of a meal at restaurant. The function should have three arguments: food_cost, tax_percent, tip_percent.

Python script: Write a function called meal_price to calculate the cost of a meal at restaurant. The function should have three arguments: food_cost, tax_percent, tip_percent. The cost of the tax should be based on only the food cost, and the tip should be based on the cost of the food and tax. For example if the food cost is 50, the tax is 8 percent, and the tip is 20 percent. Then the cost is 50(1.08)(1.20)=64.8

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