A collection of calculator implementations in different programming languages including C++, Python, Java (Swing), and JavaScript (HTML, CSS, JS).
To test these calculators, follow the instructions for each language:
- Navigate to the
cpp
directory. - Compile the code using a C++ compiler, e.g.,
g++ calculator.cpp -o calculator
. - Run the executable, e.g.,
./calculator
.
- Navigate to the
python
directory. - Run the script using Python, e.g.,
python calculator.py
.
- Navigate to the
java
directory. - Compile the code using
javac
, e.g.,javac Calculator.java
. - Run the application, e.g.,
java Calculator
.
- Navigate to the
javascript
directory. - Open
index.html
in a web browser.
If you would like to contribute a calculator implementation in a different programming language or improve an existing one, please follow these steps:
- Fork the repository.
- Create a new branch for your feature, e.g.,
git checkout -b add-new-calculator
. - Add your code in a new directory named after the programming language.
- Commit your changes and push to your fork.
- Create a pull request with a description of your changes.
We welcome all contributions and improvements!