# Title: Cost Calculator # Author: Carla # Date: 2/11/2026 # Version: 1 # Purpose: This progrqam will ask for a name and the budget. It will check range and # Display a message # collect input name = input('What is your name? ') print(f'Kia ora {name}.') budget = int(input('What is you budget? ')) # Variables smoothie = 6.5 pie = 6 wedges = 4.5 more = 'yes' while more == 'yes': food = input('What would you like to buy today? We have smoothies which are $6.50, pies are $6.00, and wedges are $4.50. ') if food == 'smoothie': new_budget = budget - smoothie print(f'You have selected a smoothie, yum! Only ${new_budget} left.') elif food == 'pie': new_budget = budget - pie print(f'You have selected a pie, yum! Only ${new_budget} left.') elif food == 'wedges': new_budget = budget - wedges print(f'You have selected the wedges, yum! Only ${new_budget} left.') else: print('You have entered an invalid option.') more = input('Would you like anything else? ') print('Ok, goodbye.') # Display output print('The program has ended')