#Title: Movie challenge #Author: Musa Wilson #Date: 08/06/26 #Version: 1 #Purpose: Ask for how many tickets are being bought and the price of each ticket, if there is 8 or more tickets being bought there is a 25% discount. print('Welcome to the Movie program') print('To use this program you will enter the number of tickets you want to purchase and how much the tickets cost') print('If you purchase 8 or more tickets you recieve a 25% discount off the total cost.') print('..lets begin') keep_going = '' #input while keep_going == '': tickets_bought = int(input('How many tickets are you buying? ')) ticket_price = float(input('What is the ticket price? ')) final_price = tickets_bought * ticket_price discount_amount = final_price / 4 discount_price = final_price - discount_amount #output if tickets_bought >= 8: print(f'You recieve a discount of ${discount_amount}') print(f'The total amount is (${final_price} - ${discount_amount}) = ${discount_price}') else: print('No discount applied') print(f'The total amount is ${tickets_bought} x ${ticket_price} = ${final_price}') keep_going = input('Do you want to calculate more ticket prices? (Click the enter button if yes type no if no.) ') print('The program has ended.')