Giter Club home page Giter Club logo

job_task_currency_converter's Introduction

Currency Converter

Simple Java program for currency conversion.

About the app

One of job tasks I got while looking for my first software developer position.
Application made using Java 11, OpenCSV, Maven Wrapper and Maven itself.

Conversion rates loaded from CSV file before any currency conversion calculations made; App uses OpenCSV library to parse CSV file.

Made a decent effort to write clean OOP code to my Date.now() best understanding, like separation of concerns and encapsulation of internal workings of the class to hide details from outside while providing a simple interface to work with a class and there should be no to little pain adding new functionality.

How to set up

Open terminal and use git clone command to download the remote GitHub repository to your computer:

git clone https://github.com/skarware/job_task_currency_converter.git

It will create a new folder with same name as GitHub repository "job_task_currency_converter". All the project files and git data will be cloned into it. After cloning complete change directories into that new folder:

cd job_task_currency_converter

To compile the application into executable JAR run this command (uses maven wrapper):

./mvnw clean package

Or using your installed maven version:

mvn clean package

How to run

To run the program use java JRE with executable JAR file and three arguments: amountToConvert fromCurrency toCurrency (it is important that jar executed from main app dir or FileNotFound Exception will be thrown at runtime)

java -jar target/currency_converter-1.0-SNAPSHOT-jar-with-dependencies.jar 3 EUR USD

If all went well you should see following lines printed to stdout:

skarware@citadel:~job_task_currency_converter$ java -jar target/currency_converter-1.0-SNAPSHOT-jar-with-dependencies.jar 3 EUR USD
Loading exchange rates from a FILE...   data successfully loaded.
3.00 EUR => 3.705750000554009625 USD

job_task_currency_converter's People

Contributors

skarware avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.