Question: this is python program Q2. ( 25 points) Compound interest is computed using the principal amount, number of years, and annual rate of interest as

this is python program
this is python program Q2. ( 25 points) Compound interest is computed

Q2. ( 25 points) Compound interest is computed using the principal amount, number of years, and annual rate of interest as follows: Compound Interest =P(1+R/100)n where P : principal amount, n : number of years, R : annual rate of interest. Write a program to calculate the compound interest on a principal amount of $5,000 for a duration of 5 years with the rate of interest equal to 4.5%. Use the pow () function that returns the power of a number. Also, display the principal and compound interest to two decimal places only. Sample Output: Principal is: $5000.00 Duration is: 5 years Annual rate of interest is: 4.59 Compound interest is: $6230.91

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!