| Description |
Construct a class that represents a loan. This class should contain data representing the interest rate, loan amount, and the length of loan period (in years). The class should have constructors that permits a loan to be created when:\n - annual interest rate, length of loan period, and loan amount are specified\n - none of the properties of the loan are specified. In this, we create a loan with default values for the loan properties (3 % interest rate, 1-year loan period, and 1000 loan amount).\nThe other methods of the this class should calculate the amount of monthly payments on the loan as well as the total payment.\n\nThe LoanTester2 class instantiates an object from this class and invokes its method to determine the amount of monthly payments on the loan and the total payment. |