Skip to content

jesusb25/mortgage-cli

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Mortgage CLI

A simple command-line mortgage calculator written in Java. Enter a principal amount, annual interest rate, and loan period, and it calculates your monthly payment.

Requirements

Check your versions with:

java -version
mvn -version

Getting started

  1. Clone the repository

    git clone https://github.com/jesusb25/mortgage-cli.git
    cd mortgage-cli
  2. Build the project

    mvn compile
  3. Run it

    mvn exec:java
  4. Follow the prompts:

    Principal Amount Borrowed: 300000
    Annual Interest Rate: 6.5
    Loan Period (Years): 30
    Your monthly payment is: $1,896.20
    

Running tests

mvn test

Notes

  • Interest rate is entered as a percentage (e.g. 6.5 for 6.5%), not a decimal.
  • Monthly payments are rounded up to the nearest penny.

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages