A text based calculator
Run the program with leiningen giving it the location to the file that contains the operations:
lein run filename
For example, if you give it a file with the following:
ADD 5
MULT 5
DIV 5
The program should print:
5
The following operations are supported:
- ADD x for addition
- SUB x for substraction
- MULT x for multiplication
- DIV x for division
- SQR for square
Run the tests with leiningen:
lein test
Copyright © 2018