Git Product home page Git Product logo

problem-vending-machine's Introduction

IGEARGEEK : Vending Machine Problem

Follow this condition

  • Unlimited products.
  • Unlimited changes.
  • Allow insert 1 baht, 2 baht, 5 baht and 10 baht coin only.
  • API calling to get product listing.
  • Design User Interface of vending machine based on good user experience.
  • We focus on good code quality. (Bonus point)
    • Readability, consistency — how easy it is to read and understand sections of the code; this includes code clarity, simplicity, and documentation.
    • Predictability, reliability, and robustness — software behavior should be predictable, and not prone to hidden bugs.
    • Maintainability and extensibility — fixing, updating and improving software should be as simple as possible, not inherently complex. Ref: https://medium.com/@mkt_43322/why-is-code-quality-such-a-big-deal-for-developers-91bdace85d44
  • You can add more cool features. (Bonus point)

Example

Story Insert Total Selected Got item? Change
1 User insert 10 baht and 5 baht coins and select Pepsi Max 10, 5 15 Pepsi Max true -
2 User insert 10 baht, 5 baht, 2 baht and 1 baht coins and select Pepsi Max 10, 5, 2, 1 18 Pepsi Max true 2, 1
3 User insert 10 baht, 2 baht coins and select Pepsi Max but can't select because not enough money 10, 2 12 Pepsi Max false -
4 User insert 10 baht, 2 baht baht coins and select Coke Vanilla (S) but can't selected because product not available in machine 10, 2 12 Coke Vanilla (S) false -
6 User insert 10 baht, 10 baht, 2 baht coin but need refund 10, 10, 2 22 - false 10, 10, 2

Product listing

API Endpoint Method
Product listing http://www.mocky.io/v2/5af11f8c3100004d0096c7ed GET

Acceptance Agreement

  1. Fork github project to your account
  2. Move your code to exercise folder

Have any question?

Open Issue for question or any suggestion from this link below

https://github.com/nitipatl/problem-vending-machine/issues

problem-vending-machine's People

Contributors

nitipatl avatar ijoke17 avatar

problem-vending-machine's Issues

[New req] ทางลูกค้าต้องการเพิ่มการชำระเงินด้วยธนบัตร

ทางลูกค้าต้องการเพิ่มการชำระเงินด้วยธนบัตร 20, 50 และ 100 บาท
Hint : ซึ่งการออกแบบหรือพัฒนาซอฟแวร์ที่ดี ต้องสามารถทำให้การแก้ไขในครั้งต่อไปง่ายที่สุด
:)

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.