You just started your summer internship with NU Bank as part of its growing development team. Your first assignment is to design and build two classes that are to be utilized in both the banks website and internal applications. The first is a loan class representing a loan contract. The second is a customer class representing the individual receiving the loan. You will be building the business logic classes, so you don’t have to worry about forms for communicating with the user or data access classes to communicate with the database. To test your classes, you will use them in a test application. The requirements for your classes and the testing application are as follows: • You are to design and build 2 components of the Loan Processing System (LPS). There will be one class to represent loan contracts, and another to represent customers. • Each class should have at least 2 members and 2 methods. • The LPS will need to be able to check that the customer is at least 21 years old. A method (IsEligible) should return true if the customer is 21 or older and false otherwise. An associated method (GetAge) should return the customer’s age in years. • When assigning the customer to the loan, the assignment should be rejected if the customer is ineligible based on age. • The following pieces of information about each business object are important to track: o Customer: ▪ Customer ID, First Name, Last Name, Email, Phone, Date of Birth o Loan: ▪ Loan ID, Agent Name, Loan Amount, Interest Rate, Customer • For purposes of testing, you will write a small application o Gather information you need about the Customer via console input o Any information you need about the Loan can be hard-coded using the constructor (__init__) or properties of the class o The application must do the following – utilizing instances of your classes: ▪ Ask the user for any needed information ▪ Allow the user to save information to the Customer object. ▪ Allow the user to retrieve information from the Customer object. ▪ Test the ‘IsEligible’ functionality and output the customer age, along with the loan information, if the assignment of the customer to the loan succeeds
You just started your summer internship with NU Bank as part of its growing development team. Your
first assignment is to design and build two classes that are to be utilized in both the banks website and
internal applications. The first is a loan class representing a loan contract. The second is a customer class
representing the individual receiving the loan. You will be building the business logic classes, so you
don’t have to worry about forms for communicating with the user or data access classes to communicate
with the
classes and the testing application are as follows:
• You are to design and build 2 components of the Loan Processing System (LPS). There will be
one class to represent loan contracts, and another to represent customers.
• Each class should have at least 2 members and 2 methods.
• The LPS will need to be able to check that the customer is at least 21 years old. A method
(IsEligible) should return true if the customer is 21 or older and false otherwise. An associated
method (GetAge) should return the customer’s age in years.
• When assigning the customer to the loan, the assignment should be rejected if the customer is
ineligible based on age.
• The following pieces of information about each business object are important to track:
o Customer:
▪ Customer ID, First Name, Last Name, Email, Phone, Date of Birth
o Loan:
▪ Loan ID, Agent Name, Loan Amount, Interest Rate, Customer
• For purposes of testing, you will write a small application
o Gather information you need about the Customer via console input
o Any information you need about the Loan can be hard-coded using the constructor
(__init__) or properties of the class
o The application must do the following – utilizing instances of your classes:
▪ Ask the user for any needed information
▪ Allow the user to save information to the Customer object.
▪ Allow the user to retrieve information from the Customer object.
▪ Test the ‘IsEligible’ functionality and output the customer age, along with the
loan information, if the assignment of the customer to the loan succeeds
Trending now
This is a popular solution!
Step by step
Solved in 4 steps with 3 images