Giter Club home page Giter Club logo

toll-fee-calculator's Introduction

Toll fee calculator

A calculator for vehicle toll fees.

Background

Our city has decided to implement toll fees in order to reduce traffic congestion during rush hours.

This is the current draft of requirements:

  • Fees will differ between 9 SEK and 22 SEK, depending on the time of day.
  • The maximum fee for one day is 60 SEK.
  • Only the highest fee should be charged for multiple passages within a 60 minute period.
  • Some vehicle types are fee-free.
  • Fee-free days are; Saturdays, Sundays, holidays and day before holidays and the whole month of July. See Transportstyrelsen for details.

Your assignment

The last city-developer quit recently, claiming that this solution is production-ready. You are now the new developer for our city - congratulations!

Your job is to deliver the code and from now on, you are the responsible go-to-person for this solution. This is a solution you will have to put your name on.

Instructions

  1. Choose one of language alternatives available.
  2. Modify and re-factor the code as you see fit.
  3. Deliver your solution by e-mail or another suitable way.

Help, I don't know C, C#, Python, Java or JavaScript?!

No worries! We accept submissions in other languages as well, why not try it in Go or Kotlin?

toll-fee-calculator's People

Contributors

kasper-i avatar larstomas 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.