Logichands is a lightweight and modular command-line tool written in C that helps users perform logical operations and compound expression evaluations interactively.
It’s designed to demonstrate structured programming, modularity, and Boolean logic concepts in a simple yet elegant way.
| 🧠 Capability | 💡 Description |
|---|---|
| ✅ Logical Operations | Supports AND, OR, NOT, XOR |
| 🧩 Compound Expressions | Evaluate combined Boolean expressions |
| 🔁 Interactive Menu | User-friendly CLI for input and selection |
| ⚙️ Modular Code | Functions for readability and reusability |
| 💻 Portable | Works on any Linux terminal with a C compiler |
- Boolean logic and truth tables
- Function-based modular design
- Menu-driven CLI structure
- Conditionals (
if-else,switch) - User input handling with validation
Logichands/
│
├── main.c # Core logic & user interface
├── logic.c # Logic operation implementations
├── logic.h # Function declarations
├── README.md # Project documentation
└── LICENSE # Apache 2.0 LicenseEnsure you have:
- A C compiler such as
gcc - A Linux or terminal environment
# Clone the repository
git clone https://github.com/roshhellwett/Logichands.git
cd Logichands
# Compile the program
gcc main.c logic.c -o logichands🧩 LOGICHANDS - LOGICAL OPERATIONS TOOL 🧩
- Perform Basic Logic Operation
- Evaluate Compound Expression
- Exit
Enter your choice: 1
Select Operation:
1. AND
2. OR
3. NOT
4. XOR
Enter first value (0/1): 1
Enter second value (0/1): 0
Result: 1 AND 0 = 0