Skip to content

Instantly share code, notes, and snippets.

@ecojuntak
Last active August 27, 2019 04:49
Show Gist options
  • Save ecojuntak/a9152d38bbf4efdb6f6a43633b282d81 to your computer and use it in GitHub Desktop.
Save ecojuntak/a9152d38bbf4efdb6f6a43633b282d81 to your computer and use it in GitHub Desktop.

Calculator

Problem Description

As a fan of math, I want to model a calculator which accepts add, subtract, multiply, divide, cancel and exit as commands, So that I can do basic mathematics.

Requirements

  • Input is integer
  • Output should be one decimal places precision
  • Divide by 0 should be handled

Dev environment setup

Build instructions

./gradlew clean build

Run test

./gradlew clean test

Run app

./gradlew run
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment