Question: Please Folow the same format as Sample! Thanks Formula: getMthly() const { if (MonRate == 0.0) return LnAmt / NumPmts; else return (LnAmt * (MontRate)

Please Folow the same format as Sample! Thanks

Formula:

getMthly() const { if (MonRate == 0.0) return LnAmt / NumPmts; else return (LnAmt * (MontRate) * Term()) / (Term() - 1);

Term() const { return pow(1 + (MonRate), NumPmts);

Formula: Please Folow the same format as Sample! Thanks Formula: getMthly() const {

Sample:

if (MonRate == 0.0) return LnAmt / NumPmts; else return (LnAmt *(MontRate) * Term()) / (Term() - 1); Term() const { return pow(1

Design a class in a separate file (Mortgage.h) that will determine the monthly payment for a home mortgage. The equations are in the text. The class will have member functions for setting the loan amount, interest rate, and number of years (duration) of the loan. The class will have member functions for getting the monthly payment amount and the total amount paid to the bank at the end of the loan. Additionally, the class will have a member function that returns the total interest paid over the duration of the loan Also, do not allow the program to accept zero or negative values from the user Main will drive the program by creating a Mortgage object, prompting for the loan amount and interest rate, and showing the output. ] "FABCCSpring 2018\CSE 1 1 1 1 01 New BookCSE 1 1 1 Labs and SolutionslL Enter the amount of the loan: 10000 Enter the annual interest rate in decimal form (example.075): 2 Enter the length of the loan in years: 1 onthly Payment: $1977.69 Total Pay Back: $23732.32 Total Interest Paid-in $13732.32 Process returned (8x8) execution time : 15.093 s Press any key to continue

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!