#Write a program that reads a number of parking violations person got per #year. The program reads the category for each violation (assume that the #input is an integer 1, 2, or 3. Assume that the input is VALID). The #program finds the total amount paid for parking violations, the average #violation fine and the number of violations in EACH category. Use the #table below. #Violation Category Violation Fine #1 $35 #2 $50 #3 $75 size=int(input("enter number of parking violations ")) total=0 type1=0 type2=0 type3=0 for i in range(1, size+1): #i=1, 2, 3, ....size print("enter violation type for user", i) type=int(input("enter 1, 2, or 3 ")) if(type==1): fine=35 type1=type1+1 elif(type==2): fine=50 type2=type2+1 else: fine=75 type3=type3+1 total=total+fine if(size>0): print("average fine", total/size) print("total fine is", total) print("type1=", type1, "type2=", type2, "type3=", type3) else: print("no parking violations")