Question: C++ Program Assignment 1 Mortgage Payment Design a class that will determine the monthly payment on a home mortgage. The monthly payment with interest compounded
C++ Program
Assignment 1
Mortgage Payment
Design a class that will determine the monthly payment on a home mortgage. The monthly payment with interest compounded monthly can be calculated as follows:

Payment = the monthly payment
Loan = the dollar amount of the loan
Rate = the annual interest rate
Years = the number of years of the loan
Class should have member functions for setting the loan amount, interest rate, and number of years of the loan. It should also have member functions for returning the monthly payment amount and the total amount paid to the bank at the end of the loan period. Implement the class in a complete program.
Input Validation: Do not accept negative numbers for any of the loan values.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
