Professional Documents
Culture Documents
Ap08 Cs BoolAlgApps Problems PDF
Ap08 Cs BoolAlgApps Problems PDF
The map shows three groups of four 1’s each, giving this expression.
px + py + pz or p (x + y + z )
Step 5 Draw the circuit.
For f, as the diagram above illustrates, there are two buttons: one out-
side the elevator on the first floor and one inside the elevator. Assume
that these two buttons are connected in parallel to one line into the
system. Similarly for s, assume the “2” buttons inside the elevator and
outside the elevator on the second floor are connected.
Output m = “move” function (1 = move or change floor; 0 = stay)
Step 2 The truth table is on the next page.
The first two input combinations mean that both buttons have been
pushed. So stay on the same floor and load passengers there first
(that is, m = 0).
EXERCISES 4-8
A Give all steps in the solution of each problem.
1. Revise Example 1 so that the machine offers at most one of four choices (add
hot chocolate).
2. Revise Example 2 so that there are only two Counselors (eliminate Uncle
Homer). Now design the missile launching system so that it is activated when
at least two (any two) of the Council vote to fire.
3. Revise Example 2 so that the missiles are launched even without the Presi-
dent’s vote if all three Counselors agree to fire.
4. Revise Example 2 so that the missiles are launched only if the President and
at least two of the Counselors agree to fire.
5. For the two-floor elevator of Example 3, design the circuit
that controls the door-opening mechanism. The inputs are
the same as in Example 3; replace output m with output d
for opening the door when the elevator is at a floor.
C 6. As in Example 3 design the circuitry for the “move” func-
tion but now for a three-floor elevator. There are three but-
tons: f = first floor button, s = second floor button, and t =
third floor button. The present floor indicator requires two
bits (x and y): 01 for first floor, 10 for second floor, and 11
for third floor. (Note that 00 is an impossible combination
and should be omitted from the table.) For the output m, 1
means move to another floor; 0 means stay. On the next
page is a five-variable Karnaugh map.