Skip to content

A simple command line Vending Machine, 1st semester, 1st exercise, computer science.

Notifications You must be signed in to change notification settings

n-c0de-r/CS1.01_VendingMachine

Repository files navigation

Purpose of project: To illustrate the basics of fields, constructors, and methods.

Description from the project: VendingMachine models a naive vending machine that dispenses some snacks. Git user n-c0de-r updated this naive machine to an improved one, for showcasing purposes. This improved machine only accepts certain coins and will return inappropriate amounts and set prices right as n-c0de-r implemented all guards needed to solve that. Compared to the original machine, this has a few extra methods to do so correctly. The price of a snack is specified via the constructor.

Based on the original by David J. Barnes and Michael Kölling @author n-c0de-r @version 2023.02.05

Updated to have a GUI. This can still be improved!

About

A simple command line Vending Machine, 1st semester, 1st exercise, computer science.

Topics

Resources

Stars

Watchers

Forks

Languages