Answered step by step
Verified Expert Solution
Question
1 Approved Answer
In C programming In this project, you will write a program that analyzes mortgage loan payments. A mortgage loan is usually taken to buy a
In C programming
In this project, you will write a program that analyzes mortgage loan payments. A mortgage loan is usually taken to buy a house but a loan with similar terms applies for buying cars. The goal of this project is to allow the user to analyze the payments such as the monthly payment and the total interest paid. Another aspect is that the borrower is allowed to make extra payments towards the capital. This allows the loan to be paid earlier and the total amount of interest to be reduced. The program will let the user analyze such scenarios. The parameters of the loan are shown in the table below Loan Parameters Loan amount (the principal) Interest rate Definition Example |Amount borrowed from the bank $150,000 Interest charged yearly 4% Term Time duration until the loan is paid back 15 years (180 months) The nominal interest rate (eg: 4%) is a yearly interest rate. This rate is divided by 12 to get the monthly interest rate. Therefore, the monthly interest rate is 412-033%. This means the bank charges 0.33% on the outstanding capital amount each month. For example, for the first month, the outstanding amount is $150,000. Accordingly, the borrower is charged 0.33% * $150,000 $495. In later months, the remaining capital goes down. Let's say after a few years of paying the outstanding capital is S 100,000. For that month, the borrower is charged 0.33% * $100,000- $330 of interest. Accordingly, we can see that the amount of interest paid goes down as the borrower progresses in making the payments. The magic of loan arithmetic is to have the borrower pay a fixed monthly amount over the lifetime of the loan. This amount is derived by the equation below. The term L is the total loan amount. The term m rate is the monthly interest rate (0.33% in our example). The term months is the total loan duration in months (180 months in our example). p = L * mrate * (1+mrate)"months / [ ((1+m rate)"months) -1 ] - - Plugging the numbers of our example gives a monthly payment amount of $1,109.53. In the first month, we already computed that the interest payment is $495. Therefore, the remaining (51,109.53-$495) 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