Code Monkey home page Code Monkey logo

maxprofitassigntask's Introduction

Parking Service System

Requirement

  • Responsible: assign the workload equally between the two employees in a way that favours profit.

  • Parking rate: Small cars - $25,large vehicles - $35

  • Fuel rate: Every car with 10% or less fuel, will be refueled to maximum capacity - $1.75/litre

  • Commission rate: Employee A - 11%, Employee B - 15%

Solutions

Two solutions on Parking Service System, one focuses on front end, another one is implemented with Deno, which is a new experiment on this powerful backend framework.

New Change

  • Replaced .reducer() method with higher-order function Array.map() in getAllCarsBillStatement.
    • Array.reducer() is for reduction usage. While it is a very powerful method, it's not always the easiest to read or grasp at a glance. An saying: the simplest code is written sequentially.
  • Replaced for loop with Array.map() in carServiceAssigner.
  • Parking Service CLI - Enable the ability to log the argument data (cars, employees) and save as local data in JSON format. Note: Command updated.

Parking Service dashboard

  • Play around with it
  • TODO:
    • Responsive design.
    • Enable edit feature on cars and employees.
    • Dynamic car list instead a fixed array.
Screen

screen capture

maxprofitassigntask's People

Contributors

heyacherry avatar

Watchers

 avatar  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.