Giter Site home page Giter Site logo

neurotrack's Introduction

Neurotrack Vending Machine

Overview: A Python program that implements the functionality of a vending machine. It displays the vending machine menu, where the user can interact with the system with the help of a keyboard. The user can select items from the menu, as well as the quantity needed. Multiple items can also be selected. After the selection, the items selected, and the total cost are displayed. The user is then prompted to enter the total money fed into the vending machine, and the machine counts out the change given, and displays it on the screen. The change is dispensed in such a way that it uses a minimal number of coins to dispense the exact change.

Assumptions:

  1. There is an infinite supply of coins.
  2. System accepts only cash

Additional functionality: Accounts for typos in the user's selection from the menu. For example, if the user types in "chibs" instead of Chips, the system knows that it has to choose Chips.

This system could have had some added functionality, if there had been more time. I could have implemented features that would account for a finite number of coins. I also would have worked on improving the "minimal change dispensary" system, where the system dispenses the exact change using the smallest number of coins it can use.

A small demo video has been attached, in order to demonstrate what the input should look like. The program can be run using the command "python3 vending_machine.py".

Side Note: This system has been tested with the goal of breaking the system. You are welcome to give it any crazy test cases like 800 bottles of soda (assuming the machine can produce an infinite supply of products) or enter the total amount fed into the system as 121.95, etc.

neurotrack's People

Contributors

shr100 avatar

Watchers

 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.