# Title: Movie ticket cost calculator # Author: Knox Meade # Date: 06/08/26 # Version: 1 # Purpose: To calculate the cost of movie tickets print("Welcome to the movie program") print("To use this program please enter how many tickets you would like to buy and how much each ticket costs. If you purchase 8 or more tickets you will receive a 25% discount from the total cost.") ticket_amount = int(input("How many tickets would you like to buy? (Must be between 1-20.) ")) ticket_cost = float(input("How much does each ticket cost? (Must be between 5-20) ")) full_cost = ticket_amount * ticket_cost if ticket_amount <= 7: print("No discount applied") print(f"The total amount is {ticket_amount} x ${ticket_cost} = ${full_cost}") else: discount_amount = full_cost / 4 print(f"You receive a discount of ${discount_amount}") discount_cost = discount_amount * 3 print(f"The total amount is (${full_cost} - ${discount_amount}) = ${discount_cost}") # Display output print("Program has ended.")