Question: The formula for computing the final amount if one is earning compound interest is given on Wikipedia as Write a Python program that assigns the

The formula for computing the final amount if one is earning compound interest is given on Wikipedia as

formula for compound interest

Write a Python program that assigns the principal amount of 10000 to variable P, assign to n the value 12, and assign to r the interest rate of 8% (0.08). Then have the program prompt the user for the number of years,t, that the money will be compounded for. Calculate and print the final amount after t years.

Step by Step Solution

3.53 Rating (150 Votes )

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock

To solve this problem we will create a Python program that computes the final amount using the compo... View full answer

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 Programming Questions!