What is computer logic?
How a machine solves problems.
Yes or No only.
And
Yes Yes = Yes
Or
Yes No = Yes
Not
Yes = No
Nand
Yes Yes = No
Nor
Yes No = No
XOR
Yes No = Yes
Yes Yes = No
What could And be used for?
Fire alarm (smoke and heat)
What could Or be used for?
Internal car light (either door open)
What could Not be used for?
Microwave will stop if door is open.
What could NAND be used for?
Security is active unless both code and ID are correct.
What could NOR be used for?
Air condition will only come on if both windows are closed.
What could XOR be used for?
Only one lightswitch on at one time.