mirror of
https://github.com/venomade/calculator.git
synced 2026-11-16 18:27:39 +00:00
b6549523a170024926ff946dbdbd358fe6960bff
Calculator
A simple calculator application for the Terminal, built step by step in SCCM4910.
It will run on Python 3 via the calculator.py script.
What It Will Do
Add, subtract, multiply and divide two numbers; display the result.
How to Run It
Run: ./run.sh
Usage
- First enter a number
- Then enter an operator (
+,-,*or/) - Lastly enter a second number
- Read the result, printed as
Result:followed by the answer. - When done stop with
Ctrl+c
Testing
- Enter a
venvand installpytest:
python3 -m venv .venv
source .venv/bin/activate
python3 -m pip install -r requirements-dev.txt
python3 -m pytest --version
- Run:
./test.sh - All tests should return
PASSEDand the return code oftest.shshould be1.
Description
MIRROR OF GITHUB VERSION.
SCCM4910 Calculator Project
39 KiB
0 Stars
1 Watchers
0 Forks
Languages
Python
85.5%
Shell
14.5%