Answered step by step
Verified Expert Solution
Question
1 Approved Answer
3. Write Python code that asks the user for a loan amount, length of loan, and the annual percentage rate and then prints out the
3. 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 monthly payments: rP p 1200 1 (1 + 1200) 12t where; P is the principle or loan amount, t is the loan amount 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: Total Interest Paid: Total Amount Paid: 2459.7 385492.0 885492.e
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started