Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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
image text in transcribed

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Intelligent Information And Database Systems Asian Conference Aciids 2012 Kaohsiung Taiwan March 2012 Proceedings Part 2 Lnai 7197

Authors: Jeng-Shyang Pan ,Shyi-Ming Chen ,Ngoc-Thanh Nguyen

2012th Edition

3642284892, 978-3642284892

More Books

Students also viewed these Databases questions

Question

List the principal classifications of hospital revenues.

Answered: 1 week ago

Question

b. Where did they come from?

Answered: 1 week ago