#Write a program that calculates the total cost of amusement park #ticket. #Input: full price of the ticket (float) and age of the person #(integer). #Output: Total price after discount is taken #Ticket Price Rules: # age 0-5: free # age 6 - 18: 25% discount # 19 and older: full price #Assume that input is valid. #Input age=int(input("enter age ")) price=float(input("enter price ")) #Assuming the Input is VALID in this solution if(age<=5): final=0 elif(age<=18): final=price-price*25/100 #or you can write: final=price*75/100 else: final=price print("final price is", format(final,".2f"))