#Mini Quiz Solution rate=float(input("current insurance per year ")) points=int(input("points ")) if(points>=3): incr=25 elif(points==1 or points==2): incr=10 else: incr=0 new_rate=rate+rate*incr/100 monthly=new_rate/12 print(new_rate, monthly) #test 1: rate = 99.99 points=3 new_rate=99.99+99.99*25/100=124.99, #monthly=10.42 #test 2: rate = 99.99 points=4 new_rate=99.99+99.99*25/100=124.99, #monthly=10.42 #test 3: rate = 99.99 points=1 new_rate=99.99+99.99*10/100=109.99, #monthly=9.17 #test 4: rate = 99.99 points=2 new_rate=99.99+99.99*10/100=109.99, #monthly=9.17 #test 5: rate = 99.99 points=0 new_rate=99.99 monthly=8.33