#week 8 lab monday pr 1 def ticket_cost(price, age): if(age>=0 and age<=5): disc=100 elif(age<=10): disc=50 elif(age<=13): disc=25 elif(age<=18): disc=10 else: disc=0 final=final-final*disc/100 return final def main(): full_price=float(input("enter full price ")) age1=int(input("enter age first person ")) age2=int(input("enter age second person ")) age3=int(input("enter age 3rd person ")) age4=int(input("enter age 4th person ")) tax=int(input("enter tax ")) price1=ticket_cost(full_price, age1) price2=ticket_cost(full_price, age2) price3=ticket_cost(full_price, age3) price4=ticket_cost(full_price, age4) fp1=price1+price1*tax/100 fp2=price2+price2*tax/100 fp3=price3+price3*tax/100 fp4=price4+price4*tax/100 print("person 1", fp1) print("person 2", fp2) print("person 3", fp4) print("person 4", fp4) total=fp1+fp2+fp3+fp4 print("total for family", total) main()