Difference between revisions of "CSC103 Final Solutions Fall 2012"
(→Boolean Logic) |
|||
(2 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
--[[User:Thiebaut|D. Thiebaut]] 10:11, 31 October 2012 (EDT) | --[[User:Thiebaut|D. Thiebaut]] 10:11, 31 October 2012 (EDT) | ||
---- | ---- | ||
+ | <onlydft> | ||
=Boolean Logic= | =Boolean Logic= | ||
Line 14: | Line 15: | ||
|0 | |0 | ||
|0 | |0 | ||
− | | | + | |1 |
|- | |- | ||
|0 | |0 | ||
Line 20: | Line 21: | ||
|0 | |0 | ||
|1 | |1 | ||
− | | | + | |1 |
|- | |- | ||
|0 | |0 | ||
Line 32: | Line 33: | ||
|1 | |1 | ||
|1 | |1 | ||
− | | | + | |1 |
|- | |- | ||
|0 | |0 | ||
Line 38: | Line 39: | ||
|0 | |0 | ||
|0 | |0 | ||
− | | | + | |1 |
|- | |- | ||
|0 | |0 | ||
Line 44: | Line 45: | ||
|0 | |0 | ||
|1 | |1 | ||
− | | | + | |1 |
|- | |- | ||
|0 | |0 | ||
Line 56: | Line 57: | ||
|1 | |1 | ||
|1 | |1 | ||
− | | | + | |1 |
|- | |- | ||
|1 | |1 | ||
Line 62: | Line 63: | ||
|0 | |0 | ||
|0 | |0 | ||
− | | | + | |1 |
|- | |- | ||
|1 | |1 | ||
Line 68: | Line 69: | ||
|0 | |0 | ||
|1 | |1 | ||
− | | | + | |1 |
|- | |- | ||
|1 | |1 | ||
Line 80: | Line 81: | ||
|1 | |1 | ||
|1 | |1 | ||
− | | | + | |1 |
|- | |- | ||
|1 | |1 | ||
Line 86: | Line 87: | ||
|0 | |0 | ||
|0 | |0 | ||
− | | | + | |1 |
|- | |- | ||
|1 | |1 | ||
Line 92: | Line 93: | ||
|0 | |0 | ||
|1 | |1 | ||
− | | | + | |1 |
|- | |- | ||
|1 | |1 | ||
Line 98: | Line 99: | ||
|1 | |1 | ||
|0 | |0 | ||
− | | | + | |1 |
|- | |- | ||
|1 | |1 | ||
Line 104: | Line 105: | ||
|1 | |1 | ||
|1 | |1 | ||
− | | | + | |1 |
|- | |- | ||
|} | |} | ||
+ | |||
+ | * The equation is | ||
+ | |||
+ | Y = D or NOT( C AND NOT( A AND B ) ) ) | ||
+ | |||
+ | * There were also longer forms, which were also valid. | ||
=Assembly= | =Assembly= | ||
Line 191: | Line 198: | ||
</source> | </source> | ||
+ | </onlydft> |