Write a program that will allow a user to enter an initial amount in a savings account and an interest rate that will be compounded annually. Have your program figure out how many years it will take for the user to become a millionaire.
· Make sure you convert the interest rate to a percentage by dividing by 100 (for example, if the user enters "7", convert that to .07).
· To increase a value by a certain percentage, you should multiply by 1 + that percentage. For example, to increase an amount by 7%, multiply it by 1.07.
A sample run is shown below:
Download the solution for this project here.