Question: C++ please Implement the following class by separating into Loan.h and Loan.cpp files. Please also provide the test class in the Loan Tester.cpp file. Loa

C++ please Implement the following class by separating into Loan.h and Loan.cppC++ please

Implement the following class by separating into Loan.h and Loan.cpp files. Please also provide the test class in the Loan Tester.cpp file. Loa -annualInterestRate: double -numberOfYears: int -loanAmount: double The annual interest rate of the loan (default: 2.5) The number of years for the loan (default: 1) The loan amount (default: 1000) +Loan O +Loan (rate: double,years: int, Constructs a default loan object Constructs a loan with specified interest rate, years and loan amount amount: double) +getAnnualInterestRateO double +getNumberOfYearsO int +getLoanAmountO: double +setAnnualInterestRate( Returns the annual interest rate of this loan. Returns the number of the years of this loan Returns the amount of this loan. Sets a new annual interest rate to this loan rate: double): void +setNumberOfYears( Sets a new number of years to this loan. years: int): void +setLoanAmount Sets a new amount to this loan. amount: double) void +getMonthlyPaymentO: double +getTotal Payment O: double Returns the monthly payment of this loan Returns the total payment of this loan

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!