summaryrefslogtreecommitdiff
path: root/3860/CH2/EX2.1/Ex2_1.txt
blob: 71aa5bebcbe972dd9c4ed09da66912d233e22670 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
 
 Develop truth table for a system with three inputs a,b and c and four outputs w,x,y and z

 Given conditions

 a = 0: odd                   a = 1: even

 b = 0: prime                 b = 1: not prime

 c = 0: less than 8           c = 1: greater than or equal to 8

 some input may never occur; the ouput is never all 0

 Inputs   |     Outputs

 A  B  C  |  W   X   Y   Z

 0  0  0  |  0   1   1   1

 0  0  1  |  1   1   0   1

 0  1  0  |  X   X   X   X

 0  1  1  |  1   1   1   1

 1  0  0  |  0   0   1   0

 1  0  1  |  X   X   X   X

 1  1  0  |  0   1   1   0

 1  1  1  |  1   1   1   0

 The above table satisfies the given conditions.