# main program print(" <--- Welcome to the Whanau Pizzeria --->") print("in this order system you will create a custom pizza note: All pizza bases are plain ") while True: want_history = input("\nWould you like to learn about the history of Whanau Pizzeria: ").lower() if want_history == "yes": print( "\nIn the heart of New Zealand's bustling food scene, nestled among the vibrant streets of Mount Maunganui, lies Whanau Pizzeria—a cornerstone of culinary delight\nsince its inception in the early 1990s. Founded by Italian immigrants Luca and Sofia Di Napoli,\n" "who brought with them generations-old recipes and a passion for authentic Italian cuisine, Whanau Pizzeria quickly became a beloved local institution..\n") break elif want_history == "no": print("No problem.") break else: print("Please enter 'yes' or 'no'.") # Delivery or pick u[p while True: want_order = input("Would you like to order delivery or pick up? ").lower() if want_order == "delivery" or want_order == "pick up": break else: print("Please enter 'delivery' or 'pick up'.") if want_order == "delivery": print("\nThe delivery cost will be calculated at the end of the order!") elif want_order == "pick up": print("Our address is:") print("565 Maunganui Road, Mount Maunganui 3116.") print("See you soon!\n") #menu while True: want_menu = input("\nPress enter to see the menu: ").lower() if want_menu == "": print("<--------------- Menu --------------->") print("Pizza Sauces:") print("- Cheese sauce: $1.50") print("- Pesto sauce: $1.50") print("- Marinara: Free") print("- Barbeque: $1.50\n") print("Toppings:") print("- Mozzarella Cheese: $1.50") print("- Ground beef: $3.50") print("- Smoked ham: $3.50") print("- Pepperoni: $3.50") print("- Onion: $2.00") print("- Olives: $2.00") print("- Spinach: $2.00") print("- Spring Onion: $1.00\n") print("Gourmet toppings:") print("- Premium Italian Sausage: $5.50") print("- Smoked Bacon: $3.50") print("- Slow cooked lamb: $5.50") print("- Camembert cheese: $3.50") print("- Capsicum: $4.50\n") print( "Note: Marinara sauce is free. Other sauces are $1.50 extra the pizza will automaticly have Marinara sauce on the pizza unless you add another sauce.\n") # Toppings selection chosen_toppings = [] total_cost = 0.0 while True: topping_choice = input("Enter a topping you would like to add (or enter 'done' if finished): ").strip().lower() if topping_choice == "done": break elif topping_choice in [ "mozzarella cheese", "ground beef", "smoked ham", "pepperoni", "onion", "olives", "spinach", "spring onion", "premium italian sausage", "smoked bacon", "slow cooked lamb", "camembert cheese", "capsicum" ]: # Calculate the cost of the topping and add it to the total if topping_choice in ["mozzarella cheese", "ground beef", "smoked ham", "pepperoni"]: cost = 3.50 elif topping_choice in ["onion", "olives", "spinach", "spring onion"]: cost = 2.00 elif topping_choice in ["premium italian sausage", "smoked bacon", "slow cooked lamb", "camembert cheese"]: cost = 5.50 elif topping_choice == "capsicum": cost = 4.50 else: cost = 0.0 # Marinara sauce is free total_cost += cost chosen_toppings.append(topping_choice.capitalize()) print(f"{topping_choice.capitalize()} added. Current total: ${total_cost:.2f}") else: print("sorry we dont have that topping. Please choose from the menu.") # Display chosen toppings and total cost if chosen_toppings: print("\nChosen toppings:") for topping in chosen_toppings: print(f"- {topping.capitalize()}") print(f"\nTotal cost for toppings: ${total_cost:.2f}\n") else: print("\nNo toppings selected.\n") break else: print("Please press 'enter'")