This is a simple Java program that calculates the monthly payment and total cost of a car loan, based on the loan amount, interest rate, and loan duration provided by the user. This program also displays an amortization table that shows the breakdown of payments, including the interest paid, principal paid, and remaining balance for each month. I created this when learning Java.
- Calculates the monthly payment total cost of the loan, based on the user's input.
- It also displays an amortization table that shows the breakdown of payments for each month.
- It again handles cases where the user enters a letter instead of a number, and provides an error message.
- Uses formatted strings to display the output in a user-friendly way.
To run the program, you will need Java installed on your computer. Here are the steps:
- Download the CarLoanPaymentCalculator.java file from this repository.
- Open a command prompt or terminal window and navigate to the directory where you saved the file.
- Compile the program by typing javac CarLoanPaymentCalculator.java and pressing Enter.
- Run the program by typing java CarLoanPaymentCalculator and pressing Enter.
- Follow the prompts to enter the loan amount, interest rate, and loan duration.
- You can choose to see the amortization table or not.
Contributions are welcome! If you find a bug or want to suggest a feature, please open an issue or submit a pull request.
License This project is licensed under the MIT License. See the LICENSE file for details.