Question: Use Python for the solution! 5) We want to code an example of compound interest. Prompt the user to input a starting balance and an

Use Python for the solution!
5) We want to code an example of compound interest. Prompt the user to input a starting balance and an interest rate. Compute the balance after 10 cycles using two methods. One, by computing the balance at each step. Two, by using the formula for compound interest. Here is how compound interest works. Let A be the starting balance. Letr be the interest rate. After one cycle the new balance is A_new= A + Atror A*(1 + r). The process repeats for the number of desired cycles. You should calculate the result by explicitly coding the balance for each of the ten cycles (this is actually fairly easy - it is a cut and paste job). Then you should calculate using the formula A_final=A(1 + r)**n, where n is the number of cycles. Display the two answers, showing that they are the same. Also, using pencil and paper show that A_final=A(1 + r)**n is the correct expression, i.e. prove this result
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
