Programming Language: C# DIRECTIONS: Complete the following Programming Exercise
ID: 3830412 • Letter: P
Question
Programming Language: C#
DIRECTIONS: Complete the following Programming Exercise. 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 GUI 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 derived, readonly property (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 GUI application o Gather information you need about the Customer via the GUI o Any information you need about the Loan can be hard-coded using the constructor 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.
Explanation / Answer
//Customer.cs
============================================================================
//CustomerGUI.Designer.cs
=======================================================================
//CustomerGUI.cs
===========================================================================
//Loan.cs
=============================================================================
LoanGUI.Designer.cs
========================================================================
//LoanGUI.cs
======================================================================
//Program.cs
=====================================================================
Related Questions
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.