Giter Club home page Giter Club logo

atc-challenge's Introduction

General Assembly Logo

Air Traffic Control Challenge

Prerequisites

Instructions

  1. Fork and clone this repository.
  2. Change into the new directory.
  3. Create and checkout a new branch to work on.
  4. Write your code in lib/atc.js
  5. Fulfill the listed requirements.

Requirements

A software subsystem of an air-traffic control system is defined to manage a queue of aircraft (AC) in an airport. Write a constructor function, AtcQueue, that creates an aircraft queue.

The aircraft queue is managed by a process which responds to three types of requests:

  • Enqueue aircraft used to insert a new AC into the system. enqueue
  • Dequeue aircraft used to remove an AC from the system. dequeue
  • AircraftCount used to count the aircraft in the queue. aircraftCount

AC have at least (but are not limited to having) the following properties:

  • AC type: passenger or cargo.
  • AC size: small or large.

The process which manages the queue of AC satisfies the following:

  • There is no limit on the number of AC it can manage.
  • Dequeue aircraft requests result in selection of one AC for removal such that:
    • Passenger AC have removal precedence over Cargo AC.
    • Large AC of a given type have removal precedence over Small AC of the same type.
    • Earlier enqueued AC of a given type and size have precedence over later enqueued AC of the same type and size.

Use grunt test to test your code.

  1. All content is licensed under a CC­BY­NC­SA 4.0 license.
  2. All software code is licensed under GNU GPLv3. For commercial use or alternative licensing, please contact [email protected].

atc-challenge's People

Contributors

rdegnen avatar jrhorn424 avatar

Watchers

James Cloos avatar Brandon Bowers 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.