Question: calculator will compute the fixed monthly payment required to pay off a mortgage over a specified term, given the initial loan amount, interest rate, and

calculator will compute the fixed monthly payment required to pay off a mortgage over a specified term,
given the initial loan amount, interest rate, and term length.
1 Background
A mortgage is a loan used to purchase a property, with the property itself serving as collateral. The
borrower makes regular payments, typically monthly, to the lender over a fixed period (the mortgage
term). The fixed monthly payment required to pay off the mortgage depends on several factors:
L : The initial principal or value of the loan.
r : The annual interest rate (expressed as a decimal, e.g.,0.05 for 5%).
c: monthly interest rate. The monthly interest rate, calculated as c=r12
n : The term of the mortgage in months (e.g.,30 years =360 months).
The formula to compute the fixed monthly payment is, the derivation of which can be found here.
P=Lc(1+c)n(1+c)n-1
2 Task
Design the Mortgage Calculator:
Write a Python program that prompts the user to input the initial loan amount L, the annual
interest rate r, and the mortgage term in years.
Convert the annual interest rate to a monthly interest rate c, and the mortgage term in years
to the term in months n.
Implement the formula provided above to calculate the fixed monthly payment P.
Test the Calculator:
Ensure that your program correctly computes the monthly payment for different inputs. Test
with various loan amounts, interest rates, and terms.
Documentation and User Interface:
Provide clear documentation within your code to explain how each part of the program works.
Design the user interface (input/output prompts) to be user-friendly and informative.
Discussion:
After completing the implementation, write a brief reflection on how the mortgage payment
is affected by changes in the interest rate, loan amount, and mortgage term. Discuss any
challenges you encountered during the implementation process and how you overcame them.
Deliverables:
A Python script named mortgage_calculator. ipynb that performs the required computations.
Evaluation Criteria: Your submission will be evaluated based on the following criteria:
Correctness: The program accurately calculates the monthly mortgage payment based on the
provided inputs.
Code Quality: The code is well-organized, clearly documented, and follows good programming
practices.
User Interface: The program is user-friendly and
provides clear instructions and output. How do i put this into jupyter?!?
calculator will compute the fixed monthly payment

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