A simple application that receives as input the annual consumption of the user (in KWh) and shows how much would cost (in Euros) each of the available products
To run the project it is necessary to have installed nodejs and npm under your machine
Run npm install
at the project root folder.
Run npm start
at the project root folder, therefore the results of each comparison will be printed at the console.
Run npm run start-test-watch
at the project root folder. The result of the comparison will be printed (just like the option npm start) and besides that all the test cases will be executed and it will be shown.
To execute the comparison with different values, open the file app.ts
into the src
folder and write on it another calls of the method showTariffComparison
with any value do you want.