Question: can someone fix this project? I try to run it , the output isnt appearing. def calculate _ total _ cost ( meal _ cost
can someone fix this project? I try to run it the output isnt appearing.
def calculatetotalcost mealcost taxrate, tippercentage:
taxamount mealcost taxrate
tipamount mealcost tippercentage
totalcost mealcost taxamount tipamount return totalcost
def main:
taxrate floatinput Enter the tax rate :
tippercentage floatinput Enter the tip percentage :
print InTotal cost of the meal: $ calculatetotalcostmealcostfloatinputEnter the cost of the meal: $
splitdecision inputDo you want to split the bill? yesno : lower
if splitdecision "yes": numpeople intinputHow many people are splitting the bill?
costperperson calculatetotalcostmealcostfloat input Enter the cost of the meal: $ numpeople print Each person should pay: $ costperperson
elif splitdecision no: printThank you for dining with us
else: printInvalid input. Please enter'yes' or no
ifnamemain:
main
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
