Skip to content

Tawfiqh/VendingMachine

Repository files navigation

Instructions for running

run $ make and then $./launchVendingMachine

Vending Machine Notes

Application

The UIlabel "screen" represents the screen that would be displayed on the vending machine.

pop-up dialogue boxes represent hardware interaction with the user that would occur in a vending machine through physical output of change or products.

VendingMachineView

Handles the view such as buttons and layout.

Receives user interaction, works out what the user is trying to achieve and calls the relevant action from the controller.

The view is independent of the controller and the model and in this case is implemented in javaSwing as a basic GUI. It must implement the method defined in VendingMachineViewInterface.

This means that any view object must have a screen that the controller can interact with and it must be able to dispense products and return change.

VendingMachineController

Independent of the view, has methods for core functionality and updates the model appropriately.

Notes

Java uses a lot of boiler plate and has an odd way of programming jbutton actions.

About

Simple Coding exercise to build a vending machine app.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published