
Hi,
I have a year 7 school project due in 1 week. Cant figure out why it wont work. Please help. The program I use wont tell me where the error is. Does anything stand out?
I have a year 7 school project due in 1 week. Cant figure out why it wont work. Please help. The program I use wont tell me where the error is. Does anything stand out?
TOTAL = int(0) print(" Hello, welcome to Bazing cafe what is your full name") def get_firstname(): firstname = input("enter your first name") return firstname def get_lastname(): lastname = input("enter your last name") return lastname def drinks(): print("Drinks menu") print("1.Juice Oringe $3.00") print("2.Juice apple $3.00") print("3.Juice black current $3.00") print("4.milkshake chocolate $4.50") print("5.milkshake strawberry $4.50") print("6.milkshake vanilla $4.50") print("7.milkshake caramel $4.50") def main_meals(): print("Main meals") print("1.kids schnitti $7.99") print("2.mini chicken burger $6.00") print("3.mini beef burger $6.00") print("4.spaghetti $8.00") print("5.lasagne $7.50") def A_DRINKS(): print("1.beer $9.15") print("2.wine $18.00") print("3.gin $16.00") print("4.mocktail $22.00") def A_MAIN_MEALS(): print("1.beef burger $16.50") print("2.chicken burger $16.50") print("3.wagyu burger $29.99") print("4.roast chicken $15.99") print("5.special soup $11.50") print("6.salad of the day $12.99") if __name__=="__main__": firstname = get_firstname() lastname = get_lastname() print("hello", firstname, lastname) num = int(input("how old are you ")) drink() answer = int(input("type the number of your choice")) if answer == 1: TOTAL = TOTAL + 3 elif answer == 2: TOTAL = TOTAL + 3 elif answer == 3: TOTAL = TOTAL + 3 elif answer == 4: TOTAL = TOTAL + 4.5 elif answer == 5: TOTAL = TOTAL + 4.5 elif answer == 6: TOTAL = TOTAL + 4.5 elif answer == 7: TOTAL = TOTAL + 4.5 main_meals() answer = int(input("type the number of your choice")) if answer ==1: TOTAL = TOTAL + 7.99 elif answer ==2: TOTAL = TOTAL + 6 elif answer ==3: TOTAL = TOTAL + 6 elif answer ==4: TOTAL = TOTAL + 8 elif answer ==5: TOTAL = TOTAL + 7.5 print(" total price =$" + TOTAL) print("adult menus") A_DRINKS answer = int(input("type the number of your choice")) if answer ==1: TOTAL = TOTAL + 9.15 elif aswer ==2: TOTAL = TOTAL + 18 elif answer ==3: TOTAL = TOTAL +16 elif answer ==4: TOTAL = TOTAL +22 answer = int(input("type the number of your choice")) A_MAIN_MEALS if answer ==1: TOTAL = TOTAL + 16.50 elif answer ==2: TOTAL = TOTAL + 16.50 elif answer ==3: TOTAL = TOTAL + 29.99 elif answer ==4: TOTAL = TOTAL + 15.99 elif answer ==5: TOTAL = TOTAL + 11.50 elif answer ==6: TOTAL = TOTAL + 12.99 print(" cost =$" +TOTAL)