Question: Problem 6 : How long to double your money - in a Roth IRA? ( 1 5 points ) You will write a program that
Problem : How long to double your money in a Roth IRA? points
You will write a program that calculates the number of years it takes for an investment made in a Roth IRA to double in value. The program will prompt the user for an initial investment amount and an annual percent rate of return APR The investment will earn a yearly dividend which is automatically reinvested. Because it's a Roth, no taxes are paid on the nvestment income. You will use a while loop to implement the yearly calculation and value update.
The loop will terminate as soon as the deposit passes double its initial value. Print out the number of years it took for the initial deposit to double in value at the given rate of return. Here is a short transcript showing how the program would work using a rate of return:A good place to start would be to look at the compoundedyearly.py program from Unit
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
