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 calculate_total_cost (meal_cost, tax_rate, tip_percentage):
tax_amount = meal_cost *(tax_rate /100)
tip_amount = meal_cost *(tip_percentage /100)
total_cost = meal_cost + tax_amount + tip_amount return total_cost
def main():
tax_rate = float(input ("Enter the tax rate (%): "))
tip_percentage = float(input ("Enter the tip percentage (%): "))
print(" InTotal cost of the meal: $", calculate_total_cost(meal_cost=float(input("Enter the cost of the meal: $"))))
split_decision = input("Do you want to split the bill? (yes/no) : ").lower()
if split_decision == "yes": num_people = int(input("How many people are splitting the bill? "))
cost_per_person = calculate_total_cost(meal_cost=float (input ("Enter the cost of the meal: $")),)/ num_people print ("Each person should pay: $", cost_per_person)
elif split_decision =="no": print("Thank you for dining with us!")
else: print("Invalid input. Please enter'yes' or 'no'.")
if__name__==__main_:
main ()

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!