Code Monkey home page Code Monkey logo

talkbot's Introduction

Parking lot Problem]

console based application for parking.

Supported Commands

  1. create_parking_lot
  2. park
  3. leave
  4. status
  5. registration_numbers_for_cars_with_colour
  6. slot_numbers_for_cars_with_colour
  7. slot_number_for_registration_number

Uasge of command

  1. create_parking_lot

    create_parking_lot command can be used to create a parking lot. We can specify the parking lot size by passing a number(size) in first argument
    e.g.

    // size of parking lot = 10
    create_parking_lot 10 
    
  2. park

    park command can be used to allocate a parking space to a vehicle.
    e.g.

    // park [REG_NO] [COLOR]
    park KA-01-HH-2701 Blue
    
  3. leave

    leave command can be used to pull out a vehicle from parking lot.
    e.g.

    // leave [SPOT_NO]
    leave 4
    
  4. status

    status command will show the status of parking lot

    status
    Slot No. Registration No Colour
    1   KA-01-HH-2701   Red
    2   KA-01-HH-2702   Green
    3   KA-01-HH-2703   Blue
    
  5. registration_numbers_for_cars_with_colour

    To display the registration number of car(s) with a specific color.

    registration_numbers_for_cars_with_colour Blue
    KA-01-HH-1234, KA-01-HH-9999    
    
  6. slot_numbers_for_cars_with_colour

talkbot's People

Contributors

ankitsny avatar

Watchers

James Cloos 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.