Interest Calculator
For this project, I built an Interest Table Calculator using JavaFX that allows users to calculate and compare simple interest and compound interest over a customizable number of years. The GUI lets users input a principal amount and an interest rate, then adjust a slider to select the number of years (up to 25). With the click of a button, the application generates a table displaying the yearly growth for:
- Simple interest
- Compound interest
- Both simple and compound interest side by side
Key highlights of this project include:
- Event-driven programming:I implemented button functionality using a mix of inner classes, anonymous inner classes, and lambda expressions.
- Model-View-Controller (MVC) structure:All interest calculations are handled in a separate Interest class, keeping the logic independent of the GUI.
- JavaFX GUI design: Built an interactive interface with text fields, a slider, buttons, and a table to display results.
- Number formatting: Used NumberFormat to present results as properly formatted currency values.