Skip to content

Jiminger/JavaVendingMachine

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

45 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Vending Machine

This is a command line Java implementation of a vending machine using an MVC approach.

The machine is loaded from a JSON input file. The user is then greeted by a welcome message and given various options to interact with the machine. The machine also logs all major events during transaction and loading states.

Requirements to run the program:

  • Java 17.0.2
  • Maven 3.8.4

Instructions to run the program:

  1. Clone the repo by typing the following command in your terminal:
git clone git@github.com:Jiminger/JavaVendingMachine.git
  1. Run the program by navigating in to the JavaVendingMachine directory and entering the following command in the terminal:
mvn clean compile exec:java

Input file constraints:

  1. The file must be in the same format as the original input file.
  2. The amount of rows specified by the input file can not exceed 26.

Screenshots

Welcome Message

welcome

Menu

menu

Accepting Money

menu

Item Select / Dispensing Item / Dispensing Change

select_and_change

Audit File

audit_file

About

Java Implementation of a Vending Machine

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages