#title: Movie tickets #Author: Blake #Date: 09/06/2026 #version: 2 #Purpose: to calculate the total cost and it applies the discount of 25% off when there is 8 or more people # 1. Input welcome = print("welcome to the Movie program") print("To use this program you will emter the number of tickets you want to purchase and how much the ticket will cost") print("If you purchase 8 or more tickets you will receive a 25% discount off the total cost") print("...Lets begin") ticket_price = float(input("Enter the ticket price (between $5 and $20): ")) num_tickets = int(input("Enter the number of people in the group (between 1 and 20): ")) # 2. Calculate total_cost = num_tickets * ticket_price # 3. Discount if num_tickets >= 8: # Calculate 25% discount discount_amount = total_cost * 0.25 final_price = total_cost - discount_amount # discounted group print(f"\nTotal cost of tickets (before discount): ${total_cost:.2f}") print(f"Discount applied (25%): ${discount_amount:.2f}") print(f"Total price to pay: ${final_price:.2f}") else: #smaller groups print("\nNo discount applied.") print(f"Total price to pay: ${total_cost:.2f}") # 4. end print("The program has ended.")