Question: Requirements: 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

Requirements:
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.

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!