Imagine you were given $5000 that you don't need right now and decide to put it aside for the future. You could put in into a savings account where you might earn around .01% interest. Alternatively, you could put it into an index fund in an investment account where it could earn, on average, about 8% interest. Complete the program to accept an interest rate and output the value after 35 years. (Python) Input Format Input will be a percentage like 8 for 8% or .01 for .01% Constraints Use the existing prompt and function. Output Format Output the amount of the initial deposit plus accumulated interest as an amount with two decimal places. Sample Input 0 1 Sample Output 0 Enter the interest rate: 7083.01
Imagine you were given $5000 that you don't need right now and decide to put it aside for the future.
You could put in into a savings account where you might earn around .01% interest.
Alternatively, you could put it into an index fund in an investment account where it could earn, on average, about 8% interest.
Complete the
Input Format
Input will be a percentage like 8 for 8% or .01 for .01%
Constraints
Use the existing prompt and function.
Output Format
Output the amount of the initial deposit plus accumulated interest as an amount with two decimal places.
Sample Input 0
Sample Output 0
Trending now
This is a popular solution!
Step by step
Solved in 3 steps with 2 images