Question: create a python code for the given problem. Problem B: Compound Interest Pretend that you have just opened a new savings account that earns 4
create a python code for the given problem.
Problem B: Compound Interest
Pretend that you have just opened a new savings account that earns interest per year. The interest that you earn is paid at the end of the year, and is added to the balance of the savings account.
Write a program that begins by reading the amount of money deposited into the account from the user. Then your program should compute and display the amount in the savings account after and years. Display each amount so that it is rounded to decimal places.
Hint: Use the compound interest formula that you can find online.
IN:
OUT: After years:
OUT: After years:
OUT: After years:
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
