Design a parent class called Loan Account that receives an account number, an account name, the amount
Question:
Design a parent class called Loan Account that receives an account number, an account name, the amount borrowed, the term of the loan and the interest rate. The amount borrowed must be positive and less than or equal to $100 000.00, the term must be less than 30 years and the interest rate must be less than 15%. Your class is to validate the input data and print all the loan information. Design a child class called Personal Loan that uses all the methods from its parent class; however, the amount borrowed must be less than or equal to $10 000.00, the term must be for less than 5 years, and the interest rate must be between 5% and 15%.
a Design the class table and UML diagram.
b Write an algorithm for each operation.
c Write a test or driver algorithm to test the class.