#Title: Cafeteria Budget #Author: Ari Ross #Date: 30/10/2026 #Version: 1 #Purpose: Help the user budget for food from the school cafeteria #This program will ask for a name and a budget. #It will check the budget range and display a message. at_school = true def pay(money, cost): if money - cost < 0: print("You don't have enough money for that") #collect input name = input("What is your name? ") print(f"Kia ora {name}") wallet = float(input("How much is your budget to spend?")) #Food item variables smoothie = 6.5 pie = 6 wedges = 4.5 for wallet < 4.5 or at_school != true: food = input("What do you want to buy? A smoothie, a pie or wedges? ") if food == 'smoothie': pay(wallet, smoothie) elif food = 'pie': pay(wallet, pie) elif food = 'wedges': pay(wallet, wedges) if input("Do you want to buy more? [Y/N] ") == N: at_school = false else: print("You have entered an invalid option") print("The program has ended")