Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Write Python code that asks the user for a loan amount, length of loan, and the annual percentage rate and then prints out the monthly

Write Python code that asks the user for a loan amount, length of loan, and the annual percentage rate and then prints out the monthly payment amount, the total interest paid on the loan, and the total amount paid.
You can use the following formula to calculate the amortized monthly payments:
=
1200
[
1
(
1
+
1200
)
12
]
,
\rho =
1200[1(1+
1200
r
)
12t
]
rP
,
where;
P is the principle or loan amount,
t is the length of the loan in years, and
r is the annual interest rate.
For example:
>>> Enter amount of loan: 500000
>>> Enter length of loan, in years: 30
>>> Enter the annual percentage rate: 4.25
Monthly payments: 2459.7
Total Interest Paid: 385491.8
Total Amount Paid: 885491.8

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Guide To Client Server Databases

Authors: Joe Salemi

2nd Edition

1562763105, 978-1562763107

More Books

Students also viewed these Databases questions

Question

Describe the four steps managers take in making a decision.

Answered: 1 week ago