Question: C++ as simple as possible. Exercise 6.2 - 6.3 Complete program P62a.cpp by defining the member functions display and payment for class Loan. Note that
C++ as simple as possible.


Exercise 6.2 - 6.3 Complete program P62a.cpp by defining the member functions display and payment for class Loan. Note that the display function will display all the information about a loan, for example: Loan ID: Loan Amount: Loan Rate: Loan Term: Modify the class Loan and include the monthly payment as a data member in that class. Note that you still have the payment function that computes the payment. Since you include the monthly payment as a member, instead of returning a value from the function, you directly set the value for monthly payment in that function. Also, add a new function called add loans, defined as: 11. float add_loans (Loan loan1, Loan loan2); The new function, add_loans, takes two loan objects and computes the total monthly payment, i.e., the sum of monthly payments of the two loans. 1. // P62a.cpp - This program is a driver written to demonstrate how the set function work S. 2. include
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
