Question: You are working as a computer programmer for a mortgage company that provides loans to consumers for residential housing. Your task is to create an

You are working as a computer programmer for a mortgage company that provides loans to
consumers for residential housing. Your task is to create an application to be used by the
company's loan officers when presenting loan options to its customers. The application will be a
mortgage calculator that determines a monthly payment for loans and produces an amortization
schedule for the life of the loan.
The company offers 20,25,30, and 40-year fixed loans.
Loan amounts are between 100000 and 250000.
Annual Interest rate must be >=1.0 and =10.0.
Amortize Schedule Creation:
The amortized schedule for the loan must be created using a recursive function.
Payment Calculator
The formula to calculate the monthly payment for a fixed-interest rate loan is as follows:
A=Pr(1+r)n(1+r)n-1
Requirments:
Global Values: Avoid using global variables, except for constants.
Display Information: Show your name, lab number, and lab name on the screen.
Loan Principle: Prompt and accept a valid loan principle amount (double) between 100,000 and 250,000 inclusive, rejecting invalid inputs.
Annual Interest Rate: Prompt and accept a valid annual interest rate (double) between 1.0 and 10.0, rejecting non-numeric and non-positive entries.
Loan Term: Prompt and accept the term of the loan in years (int) as 20,25,30, or 40, rejecting other entries.
Calculate Monthly Payments: Calculate the number of monthly payments for the loan.
Monthly Payment Function: Create a function (calcMonthlyPayment()) that calculates the monthly payment using principal, monthly interest rate, and number of payments as parameters.
Amortization Schedule Function: Create a recursive function (calcAmortizeSchedule()) to produce and display an amortization schedule with proper formatting, including column headings. Use setw() function for formatting.
Data Validation: Check for invalid data, including non-numeric and non-positive entries. Ensure values are within specified ranges for principal, interest rate, and term.
Code Style: Use proper indentation, meaningful identifiers, and appropriate comments in your code.
Note: please add the code that does validation checks with the source cited
Please follow the instructions and thank you so much
 You are working as a computer programmer for a mortgage company

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