This Program Is Designed To Help With Digital Electronics, Making It Easier To Learn And Apply Digital Electronics Concepts
The BooleanAlgebra Class Allows You To Perform Various Logical Operations On Two Boolean Values. The Available Logic Gates Include:
- NOT (Inverts A Value)
- AND (Returns
TrueIf Both Values AreTrue) - OR (Returns
TrueIf Either Value IsTrue) - NAND (Returns
TrueIf Not Both Values AreTrue) - NOR (Returns
TrueIf Both Values AreFalse) - XOR (Returns
TrueIf Exactly One Value IsTrue) - XNOR (Returns
TrueIf Both Values Are The Same)
The BinaryOperations Class Provides Methods To Perform Basic Binary Arithmetic Operations:
- Addition
- Subtraction
- Multiplication
- Division
All Binary Operations Are Performed Step-By-Step, Showing Intermediate Results For Better Understanding.
To Use This Program, Simply Clone The Repository And Run The Python File:
git clone https://github.com/yourusername/digital-electronics-assistant.git
cd digital-electronics-assistant
python main.pyOnce The Program Is Executed, You Will Be Presented With A Menu To Choose Between Boolean Algebra And Binary Operations:
Commands:
1> Boolean Algebra (Using Two Values)
2> Binary Operations (Addition, Subtraction, Multiplication, And Division)- Select 1 To Choose Boolean Algebra Operations.
- Input Two Boolean Values (Either
TrueOrFalse). - Select The Desired Logic Gate (1-7) From The Available Options.
- Select 2 To Choose Binary Operations.
- Choose The Type Of Binary Operation (Addition, Subtraction, Multiplication, Or Division).
- Input Two Integers For The Operation.
- The Program Will Show Intermediate Steps For Addition, Subtraction (Using Two's Complement), Multiplication (Using Shift-And-Add), And Division (Quotient And Remainder).
Enter Value One (Either True Or False)> True
Enter Value Two (Either True Or False)> False
Choose The Logic Gate (1-7): 2Output:
Result Of AND Gate: False
Enter Operation> 1
Enter Value One> 5
Enter Value Two> 3Output:
Performing Binary Addition: 101 + 11
Result (Binary): 1000
Feel Free To Fork The Repository, Submit Issues, And Open Pull Requests. We Welcome Contributions To Improve The Program!
This Program Is Licensed Under The MIT License - See The LICENSE File For Details.
.png)