Write a Web program to calculate the discount rate and interest rate for a bond. If a bond is purchased for n dollars and sold one year later for m dollars, then the discount rate is

m-2/m and the interest rate is m-n/n, where each is expressed as a percent.