Future Value If P dollars (called the principal) is invested at r% interest compounded annually, then the future value of the investment after n years is given by the formula
future value = P (1 + r / 100) ** n)
Calculate the future value of an investment after the user enters the principal, interest rate, and number of years.