Giter Club home page Giter Club logo

toll-calculator's Introduction

here we are

Toll fee calculator 1.0

A calculator for vehicle toll fees.

  • Make sure you read these instructions carefully
  • The current code base is in Java and C#, but please make sure that you do an implementation in a language you feel comfortable in like Javascript, Python, Assembler or ModiScript (please don't choose ModiScript).
  • No requirement but bonus points if you know what movie is in the gif

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 8 SEK and 18 SEK, depending on the time of day
  • Rush-hour traffic will render the highest fee
  • The maximum fee for one day is 60 SEK
  • A vehicle should only be charged once an hour
    • In the case of multiple fees in the same hour period, the highest one applies.
  • Some vehicle types are fee-free
  • Weekends and holidays are fee-free

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

You can make any modifications or suggestions for modifications that you see fit. Fork this repository and deliver your results via a pull-request or send us an e-mail. You could also create a gist, for privacy reasons, and send us the link.

Help I dont know C# or Java

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

toll-calculator's People

Contributors

fredrik-evolve avatar viktorlarsson avatar marioleed avatar 1someone 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.