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
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.
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started