#Title: movie #Author: Adam #Date: 08/06/2026 #Version: 1 #Purpose: calculate the cost of movie tickets keep_going = "" print('Welcome to the movie program') print('To use this program you will enter the number of tickets you want to purchase, \nand how much each ticket cost. \nIf you purchase 8 or more tickets you will receive a 25% discount on the total price. ') while keep_going == "": tickets = int(input('How 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'The total price is {tickets} X {price} - 25% = ${discount_price}') elif tickets >= 1 and tickets <= 7: print('No discount was applied') print(f'The total amount is {tickets} X {price} = ${total_cost}') keep_going = input('click enter to keep going or type no to exit') if keep_going != "": print('Enjoy the movie!') print("This program has ended")