This Programmer Calculator is a command-line application written in C. It provides basic arithmetic functions, bitwise operations, and number system conversions (binary, decimal, and hexadecimal). The project is structured with modularity in mind, with separate directories for source files, header files, and build artifacts.
- Basic arithmetic operations (addition, subtraction, multiplication, division)
- Bitwise operations (AND, OR, XOR, NOT)
- Number system conversions (binary to decimal, decimal to binary, decimal to hexadecimal, hexadecimal to decimal)
- GCC Compiler
- Make (for building the project)
src/: Contains the source files.cinclude/: Contains the header files.hbuild/: Contains the compiled binaries and object files
To compile the project, navigate to the project root directory and run:
makeThis command will generate the executable in the build/ directory.
After compiling, run the program using:
./build/programmer_calculatorFollow the on-screen prompts to perform various calculations.
To clean up the build files, use:
make cleanContributions to this project are welcome. Please ensure to follow the existing code structure and comment your code where necessary.
This project is open-source and available under the MIT License.