#A gym offers two types of membership. Type 1 costs 10.99 + TAX per month #and Type 2 costs 21.99 + TAX per month. Write a program that asks user to #enter the membership type (integer) and the tax (integer). The program #calculates the total price user pays per year. Your program must check #validity of the input. type=int(input("enter type of the membership ")) tax=int(input("tax ")) if((type==1 or type==2) and tax>=0): if(type==1): price=10.99 else: price=21.99 final=price*(1+tax/100)*12 print("final", format(final, '.2f')) else: print("invalid input")