Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/nav7fsc/loancalculatorproject
LoanCalculatorProject
https://github.com/nav7fsc/loancalculatorproject
Last synced: 1 day ago
JSON representation
LoanCalculatorProject
- Host: GitHub
- URL: https://github.com/nav7fsc/loancalculatorproject
- Owner: nav7FSC
- Created: 2024-09-08T05:10:38.000Z (5 months ago)
- Default Branch: main
- Last Pushed: 2024-09-08T05:17:24.000Z (5 months ago)
- Last Synced: 2024-11-25T07:51:44.062Z (2 months ago)
- Language: Java
- Size: 61.5 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
## Loan Calculator
## Description
The **Loan Calculator** is a JavaFX application designed to compute monthly and total payments for a loan based on user-provided details. It provides a straightforward interface for users to input the annual interest rate, the number of years, and the loan amount. Upon clicking the "Calculate" button, the application displays the monthly payment and the total payment over the life of the loan.
## Features
- **Input Fields**:
- **Annual Interest Rate**: Enter the annual interest rate as a percentage.
- **Number of Years**: Enter the number of years for the loan.
- **Loan Amount**: Enter the total amount of the loan.- **Output Fields**:
- **Monthly Payment**: Displays the calculated monthly payment.
- **Total Payment**: Displays the total amount paid over the entire loan period.- **Button**:
- **Calculate**: Triggers the calculation of the monthly and total payments based on the entered data.## Code Overview
- **`LoanCalculator` Class**: Extends `Application` from JavaFX and sets up the user interface and functionality.
- **`start(Stage primaryStage)`**: Configures the layout, initializes input/output fields, and sets up the event handler for the calculate button.
- **Event Handler**: Parses input values, performs calculations, and updates output fields.## Dependencies
- JavaFX SDK (part of JDK 21)
- Java Development Kit (JDK 21)## Running the Application
To run the Loan Calculator application:
1. Ensure you have JDK 21 and JavaFX SDK installed.
2. Compile the `LoanCalculator` class using your preferred IDE or command line.
3. Run the compiled class to launch the application window.## Author
[nav7FSC on GitHub](https://github.com/nav7FSC)