Coder Social home page Coder Social logo

cashregister's Introduction

Cash Register App

Requirements

  • The app requires a Java 8 JDK to be installed on your machine.
  • While not required, it is assumed you will be running this on UNIX or a Mac.

Building and running the application

The instructions below assume you are on UNIX/Mac, you'll need to adjust them if you are not.

Option 1: Using Gradle

$ git clone https://github.com/dashfwd/cashregister.git
$ cd cashregister
$ ./run.sh

Option 2: Using the JDK compiler

$ git clone https://github.com/dashfwd/cashregister.git
$ cd cashregister/src/main/java/
$ javac -source 1.8 -target 1.8 com/dclaus/CashRegisterMain.java
$ java -cp . com.dclaus.CashRegisterMain

Example session

ready
> show
$0 0 0 0 0 0

> put 1 2 3 4 5
$68 1 2 3 4 5

> show
$68 1 2 3 4 5

> put 1 2 3 0 5
$128 2 4 6 4 10

> take 1 4 3 0 10
$43 1 0 3 4 0

> change 11
0 0 1 3 0

> show
$32 1 0 2 1 0

> change 14
sorry

> quit

cashregister's People

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.