Giter Club home page Giter Club logo

tecajnica's Introduction

Tečajnica

Build Status

LoC Hits-of-Code

Moja rešitev testne naloge podjetja irose.

Naloga

Napiši program, ki za poljubno izbrano časovno obdobje iz podatkovne baze, izpiše tečajnico za izbrane valute, poleg tabelaričnega izpisa naj se izriše še graf. Dodatna funkcionalnost naj bo še izračun oportunitetnih zaslužkov/izgub med dvema poljubno izbranima valutama za poljubno izbrani termin iz podatkovne baze.

Kot vir vrednosti podatkovne baze naj se uporabi tečajna lista BSI (Prenos časovnih serij od 2007 http://www.bsi.si/_data/tecajnice/dtecbs-l.xml)

Program naj bo napisan v programskem jeziku Java, brez nepotrebnih odvisnosti, vsebovati mora prevajalno skripto, zaželjen je Maven, lahko tudi ANT. Program mora biti zapakiran v arhivsko datoteko, ki omogoča uporabniku prijazno izvajanje.

Install

Requirements:

  • Java 8 (Oracle JRE)

Fetch the latest release *.jar file and double-click to run.

If that doesn't work, run the program from the command line:

java -jar tecajnica-<LATEST_RELEASE_TAG>.jar

Releases

Use the release script with the following arguments:

  1. release - the next release version

  2. snapshot - the next snapshot version

  3. dryRun (optional) - if set to true, the changes will not be pushed to the remote repository

Example:

./release.sh 0.1.1 0.1.2-SNAPSHOT

tecajnica's People

Contributors

glusk avatar

Watchers

 avatar

tecajnica's Issues

Localize Warning dialog

Try something like this:

Alert alert = new Alert(AlertType.WARNING);
alert.setTitle(/* */);
alert.setHeaderText(/* */);
alert.setContentText(/* */");

Revert to Java 8

Reasons:

  • unable to create a modular jar #11
  • non-modular Java 11 builds fail to create a stand-alone runnable jar; only managed to run the project with javafx maven plugin by running mvn javafx:run

Dodaj dodatno funkcionalnost

Dodatna funkcionalnost naj bo še izračun oportunitetnih zaslužkov/izgub med dvema poljubno izbranima valutama za poljubno izbrani termin iz podatkovne baze.

Glej tudi #13.

Nejasnost

Tega dela naloge nisem povsem razumel:

Dodatna funkcionalnost naj bo še izračun oportunitetnih zaslužkov/izgub med dvema poljubno izbranima valutama za poljubno izbrani termin iz podatkovne baze.

Nejasno je v tem smislu, da podatki v xml datoteki Banke Slovenije prikazujejo za vsako valuto samo
1 tečaj (npr. samo EUR/USD in ne tudi USD/EUR).


EDIT: To je narobe!

Lahko da je bilo mišljeno nekaj takega:

1. julij 2018                     18. julij 2018:
USD/EUR = EUR/USD = 1,1658        USD/EUR = EUR/USD = 1,1707
GBP/EUR = EUR/GBP = 0,88605       GBP/EUR = EUR/GBP = 0,88725
...                               ...

recimo da smo kupili 1. julija dolarje za 100€:

100€ * 1,1658 $/€ = 116,58$

nato se odločimo 18. julija pretvoriti dolarje nazaj v evre po novem tečaju:

116,58$ / 1,1707 €/$ = 99.581€

DOBIČEK/IZGUBA:

-0.419€

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.