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 and inclusive, rejecting invalid inputs.
Annual Interest Rate: Prompt and accept a valid annual interest rate double between and rejecting nonnumeric and nonpositive entries.
Loan Term: Prompt and accept the term of the loan in years int as or 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 nonnumeric and nonpositive 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
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
