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
cppdirectory. - Compile the code using a C++ compiler, e.g.,
g++ calculator.cpp -o calculator. - Run the executable, e.g.,
./calculator.
- Navigate to the
pythondirectory. - Run the script using Python, e.g.,
python calculator.py.
- Navigate to the
javadirectory. - Compile the code using
javac, e.g.,javac Calculator.java. - Run the application, e.g.,
java Calculator.
- Navigate to the
javascriptdirectory. - Open
index.htmlin 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!
