#Quiz 3 prep 2 #discussion: #pound- int, tax- int, tax_ind - int, price-float #assume input valid, all values are positive and tax_ind is 1 or 0 #Input pound=int(input("enter number of pounds ")) tax=int(input("enter tax ")) tax_ind=int(input("tax indicator ")) price=float(input("price per pound ")) if(pound>=11): disc=20 elif(pound>=6): disc=10 else: disc=0 #alternative #if(pound>=0 and pound<=5): # disc=0 #elif(pound>=6 and pound<=10): # disc=10 #else: # disc=20 pre_tax_disc=pound*price pre_tax=pre_tax_disc - pre_tax_disc*disc/100 if(tax_ind==1): total=pre_tax+pre_tax*tax/100 else: total=pre_tax print("Total is", format(total,'.2f'), "dollar")