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
Get step-by-step solutions from verified subject matter experts
