# Title: Movie program # Author: Beau Culliford # Date:11/06/2026 # Version: 1 # Purpose: Calculate the cost of movie tickets. print('Welcome to the movie program') print('To use this program you will enter the number of tickets you want to purchase.') keep_going = "" while keep_going == "": tickets = int(input('\nHow many tickets do you require?')) if tickets < 0 or tickets > 20: break price = float(input('How much does each ticket cost?')) if price < 5 or price > 20: break total_cost = tickets * price if tickets == 0: print('No tickets were purchased') elif tickets >= 8: print('25% discount applied.') discount_price = total_cost * 0.75 print(f'\nThe total cost is {tickets} x {price} - 25% which is ${discount_price}') elif tickets >= 1 and tickets <= 7: print('No discount applied.') print(f'\nThe total cost is {tickets} x {price} which is ${total_cost}') keep_going = input('Press enter to buy more tickets or type something if you do not want to.') print('Enjoy the movie') print('This program has ended')