GithubHelp home page GithubHelp logo

coffeemachine's Introduction

The Challenge

Develop the software befind a self-serve coffee vending machine for a company called Otto's Coffee. Customers will be able to select their roast and cup size, pay for their order, and watch as their coffee and brewed and dispensed. Go the extra mile and allow for customers to enter their loyalty rewards number and they get each 5th cup free!

Ordering

Customers should be presented with a simple UI where they can select the roast of their choice--as long as their is enough coffee available in that blend.

The customer should be able to choose from the available cup sizes--again as long as their is enough coffee available to fill that cup.

The customer will pay for their order (cash only!) and receive the proper amount of change back from the available bills and coins in the machine.

The machine must measure out the appropriate amount of coffee for their cup size, brew the coffee, then dispense it.

Notes

There is a VendingMachine abstract class that must be extended by a new class named OttoCoffee to perform these actions.

For the challenge a simple SQLite database with PDO connectivity will be used and a demo database is provided which provides the available blends, cup sizes, and a starting amount of money in the register. Feel free to modify or extend the database schema as needed!

Unit tests are provided that will validate that the logic in your OttoCoffee class works as inteded. Add any tests for cases that may be missing. You can run the tests by calling composer test from the root path.

Provide both the raw source and a compiled copy (if applicable) of your UI code. For the challenge you can use the PHP built-in server to simplify things.

coffeemachine's People

Contributors

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