Question: Write Python code that prompts the user to enter the principle (initial money), APR (interest rate), and number of years for a loan with com-

Write Python code that prompts the user to enter the principle (initial money), APR (interest rate), and number of years for a loan with com- pound interest, and output the dollar value of the loan after this time. You can calculate the value of a loan with principle P, interest rate r, and time t as V = Pert, where e is Eulers number. You should use a value of e = 2.718 when estimating the value of the loan. You should prompt the user to enter the principle, interest rate, and time as Enter the principle: , Enter the interest rate: , and Enter the time 2 (in years): (with a space at the end of each prompt). You should then output the value of the loan and nothing else (including no dollar sign). You do not need to (and should not) round the amount to two decimal places; just print out the value of the loan using all of the decimal places calculated. Hint : here is a small table of values you can use to test your code:

Principle Rate Time Value 10000 0.05 1 10512.65646376286 10000 0.05 5 12839.92133809273 10000 0.26 1 12968.951246118606 20000 0.05 1 21025.31292752572

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!