Question: Explain Clearly. The Following question will make use of Python. You will be using the Compound interest formula for the question. Write a Python program

Explain Clearly.

The Following question will make use of Python.

You will be using the Compound interest formula for the question.

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%. 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.

Don't forget to use the int function to turn the string input for t into an integer.

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!