Question: Write a program that allows a user to enter an initial value of an investment (PV), a target future value of an investment (FV), and
Write a program that allows a user to enter an initial value of an investment (PV), a target future value of an investment (FV), and the number of years that the investment will be held. The program should calculate the rate of return (r) required to achieve this (NOTE: r is in decimal form, for instance, 10% is 0.10).
The formula for r is:
Be sure to pay attention to details, and write a nice user interface with program title, good prompts, and informative output. The resulting output should show only two decimal places and as a percentage (non-decimal) form. For instance, 0.134532 would be displayed as 13.45%.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
