I have to write a program that tells the user how much they should deposit into a savings account if they want to obtain a certain amount over a period of time. This is the formula given:
P = F / (1 + r)^n
P is the present value that is depositted.
F is the future value that the user wants to obtain.
r is the annual interest rate.
n (which is an exponent in the formula) is the number of years that the money sits in the account.
You should be able to enter all the information and the program will calculate and tell the user how much they should deposit (present value). Here is what I have so far: