Write a JAVA program that will help the Smiths and any other customer of the lender determine their monthly mortgage payment based on the following input: - Purchase Price - Down Payment - Loan Amount (purchase price - down payment) - Interest rate in decimal form - Number of years for mortgage             The program will also include entry of the name(s) for the mortgagee (person taking out the loan for the mortgage) and the date the calculations were made. The program will also ask if the client wants to run the program again [that way the Smiths' will be able to see what their monthly mortage payment will be if they take out a 30-year, 20-year, or 10-year mortgage.   The formula to calculate the monthly payment is as follows: Fixed Monthly Mortgage Repayment Calculation = P * r * (1 + r)n / [(1 + r)n - 1] where P = Outstanding loan amount, r = Effective monthly interest rate (divide r by 12), n = Total number of periods (i.e., years x 12 months)

Computer Networking: A Top-Down Approach (7th Edition)
7th Edition
ISBN:9780133594140
Author:James Kurose, Keith Ross
Publisher:James Kurose, Keith Ross
Chapter1: Computer Networks And The Internet
Section: Chapter Questions
Problem R1RQ: What is the difference between a host and an end system? List several different types of end...
icon
Related questions
Question

Mr. and Mrs. John Smith have signed a purchase agreement for a 4 bedroom house with separate garage. The purchase price is $500,000. They plan on putting a down payment of 20 percent. They are with their lender who shows the couple how much their monthly mortgage payment would be if they took out a 30-year mortgage, a 20-year mortgage, or if they took out a 15-year mortgage. The interest rate is 2.5% to take out the loan.

 

Write a JAVA program that will help the Smiths and any other customer of the lender determine their monthly mortgage payment based on the following input:

- Purchase Price

- Down Payment

- Loan Amount (purchase price - down payment)

- Interest rate in decimal form

- Number of years for mortgage 

          

The program will also include entry of the name(s) for the mortgagee (person taking out the loan for the mortgage) and the date the calculations were made. The program will also ask if the client wants to run the program again [that way the Smiths' will be able to see what their monthly mortage payment will be if they take out a 30-year, 20-year, or 10-year mortgage.

 

The formula to calculate the monthly payment is as follows:

Fixed Monthly Mortgage Repayment Calculation = P * r * (1 + r)n / [(1 + r)n - 1]

where P = Outstanding loan amount, r = Effective monthly interest rate (divide r by 12), n = Total number of periods (i.e., years x 12 months)

 

Please also create a flowchart for the problem

Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 4 steps with 3 images

Blurred answer
Recommended textbooks for you
Computer Networking: A Top-Down Approach (7th Edi…
Computer Networking: A Top-Down Approach (7th Edi…
Computer Engineering
ISBN:
9780133594140
Author:
James Kurose, Keith Ross
Publisher:
PEARSON
Computer Organization and Design MIPS Edition, Fi…
Computer Organization and Design MIPS Edition, Fi…
Computer Engineering
ISBN:
9780124077263
Author:
David A. Patterson, John L. Hennessy
Publisher:
Elsevier Science
Network+ Guide to Networks (MindTap Course List)
Network+ Guide to Networks (MindTap Course List)
Computer Engineering
ISBN:
9781337569330
Author:
Jill West, Tamara Dean, Jean Andrews
Publisher:
Cengage Learning
Concepts of Database Management
Concepts of Database Management
Computer Engineering
ISBN:
9781337093422
Author:
Joy L. Starks, Philip J. Pratt, Mary Z. Last
Publisher:
Cengage Learning
Prelude to Programming
Prelude to Programming
Computer Engineering
ISBN:
9780133750423
Author:
VENIT, Stewart
Publisher:
Pearson Education
Sc Business Data Communications and Networking, T…
Sc Business Data Communications and Networking, T…
Computer Engineering
ISBN:
9781119368830
Author:
FITZGERALD
Publisher:
WILEY