Your local bank wants you to write a program that would


PYTHON

Your local bank wants you to write a program that would allow a bank customer to see what his/her savings account balance would be based on an initial balance, interest rate, and number of years the money was left in the savings account. You may assume that interest is compounded yearly.

For example, 10% interest on a $100 initial balance would yield $10 in interest after 1 year.

Your program should create and use a function called compute_compound_interest that takes 3 parameters (initial balance, interest rate, and years). It should then perform the compound interest calculations based upon the years parameter. Lastly, it should return the total balance.

Design your program to match the sample execution below.

Sample Execution 1

Welcome to TD Bank! Please enter an initial balance: 100 Please enter an interest rate: 0.1 Please enter the number of years to calculate: 1 After 1 year(s) your balance will be $110.00.
Sample Execution 2

Welcome to TD Bank! Please enter an initial balance: 1000 Please enter an interest rate: 0.01 Please enter the number of years to calculate: 20 After 20 year(s) your balance will be $1220.19.

Request for Solution File

Ask an Expert for Answer!!
Computer Engineering: Your local bank wants you to write a program that would
Reference No:- TGS02906196

Expected delivery within 24 Hours