1. In finance, the Present Value of an investment is calculated
using the following formula: ๐๐=๐น๐/(1+๐)โฟ Where: PV = Present Value
FV = Future Value r = rate of return n = number of periods
Example: An individual wishes to determine how much money (PV)
she would need to put into her money market account to have $2000
(FV) 15 years from today if she is earning 4.5% interest on her
account. Your goal is write a program that will prompt the user for
the Future Value, rate of return, and the number of years of
investment, then calculate and return the present value of
investment.
You should write a script that will: prompt the user for the
values call a function to calculate the Present Value print a
sentence that will state the corresponding Present Value (use the
values given in the example)