Project 2 From Object Oriented Programming With Java

This project is an example of a GUI application which simalates a student loan repayment calculator.

This image shows the output of the StudentLoanApp class which extends JFrame. It use an arraylist as a data member which holds Student Objects.
It also uses named inner classes which are responsible for the handling of events. The project also uses an Interface which holds a constant decimal equivalent
of 1/1200 used to convert the annual interest to monthly. The interface also holds the abstract method calculateLoanPayment that returns a double value
that represents the loan payment amount. This first image shows the Student object loaded into the form.

Image of GUI output

Here the second image shows the same form with interest rate and amortization added. The final image shows the calculations when the calculateLoanPayment event is triggered by the button click.

Image of GUI output
Back to Samples Page