Question: Python Program 2. Compound Interest (10 points): The total amount of money paid back on a loan can be computed using the formula nt A

Python Program

Python Program 2. Compound Interest (10 points): The total amount of money

2. Compound Interest (10 points): The total amount of money paid back on a loan can be computed using the formula nt A = P(1+3) where A is the total amount paid at the end of the term, P is the principal or initial loan amount taken, r is the rate of interest, n is the number of times interest is compounded per year, and t is the total number of years the money is borrowed. Please write a program named compound-interest.py that accepts the quantities P, r, n and t from the user and displays the total amount paid back. Please round your answers up to two places of decimal. Please display appropriate messages to the user while acquiring input and printing output. A sample output is shown below. Sample Input and Output: Enter the principal amount: 5000 Enter the rate of interest: 5 Enter the number of times interest is compounded in a year: 12 Enter the total number of years borrowed: 10 The total amount paid is 8235.05

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!