Creating a logic function of a burglar alarm system for a bank

This is the problem from homework that I am stuck on:

A burglar alarm system for a bank is to be operative only if a master
switch at the police station has been turned on. Subject to this
condition, the alarm will ring if the vault door is disturbed in any
way, or if the door to the bank is opened unless a special switch is
first operated by the security guard’s key. The vault door will be
equipped with a vibration sensor that will cause a switch to close if
the vault door is disturbed, and a switch will be mounted on the bank
door in such a way that it will close whenever the bank door is
opened. Symbolize the above system as a logic function and construct
the corresponding logic diagram.

So, I created an outline to list the conditions and the actions:

Conditions:

A = Master switch is turned on
B = Vault door is disturbed in any way
C = Vault door is opened
D = Special switch is 1st operated by security guard’s key

Actions:

W = Burglar alarm system becomes operative
X = Alarm rings
Y = Switch closes
Z = Switch mounts on bank door in such a way it will close the door

And here’s the truth table:

ABCDWXYZ000000000001000000100000001100000100000001010000011000000111000010001000100110001010110110111000110011101101111101111111\begin{array}{c c c c|c c c c}
A
& B
& C
& D
& W
& X
& Y
& Z \\
\hline
0 & 0 & 0 & 0 & 0 & 0 & 0 & 0\\
0 & 0 & 0 & 1 & 0 & 0 & 0 & 0\\
0 & 0 & 1 & 0 & 0 & 0 & 0 & 0\\
0 & 0 & 1 & 1 & 0 & 0 & 0 & 0\\
0 & 1 & 0 & 0 & 0 & 0 & 0 & 0\\
0 & 1 & 0 & 1 & 0 & 0 & 0 & 0\\
0 & 1 & 1 & 0 & 0 & 0 & 0 & 0\\
0 & 1 & 1 & 1 & 0 & 0 & 0 & 0\\
1 & 0 & 0 & 0 & 1 & 0 & 0 & 0\\
1 & 0 & 0 & 1 & 1 & 0 & 0 & 0\\
1 & 0 & 1 & 0 & 1 & 1 & 0 & 1\\
1 & 0 & 1 & 1 & 1 & 0 & 0 & 0\\
1 & 1 & 0 & 0 & 1 & 1 & 1 & 0\\
1 & 1 & 0 & 1 & 1\\
1 & 1 & 1 & 0 & 1 & 1\\
1 & 1 & 1 & 1 & 1\\
\end{array}

It is the last three I am not sure about:

What happens if the door is disturbed AND the special switch is first operated at same time? Would the alarm still ring?
Would the vibration sensor still be activated when the door is opened (i.e., what would happen if the door is open and is disturbed at same time)?

I am not very knowledgeable with how bank security system works, so it would be nice if anyone can explain about it.

=================

  

 

Knowledge of bank systems isn’t important.
– Andy aka
Sep 14 ’14 at 16:31

  

 

Yay, a decent homework question that shows what you’ve worked on so far!
– JYelton
Sep 14 ’14 at 18:03

  

 

Switch mounts on bank door in such a way it will close the door is wrong. It really is switch mounts on bank door in such a way that it will close (activate) when the door is open
– slebetman
Sep 14 ’14 at 19:42

=================

1 Answer
1

=================

Oh, take a step back a little from it first and look at the different parts of it.

What stimulus, ignoring the extra conditions, would make the alarm sound? Simple:

someone tampers with the vault -OR-
someone opens the bank door.

Now, when would those stimuli cause the alarm to sound? Again, simple – when the alarm is armed. When is it considered armed?

when it has been switched on at the police station -AND NOT-
when the guard’s switch has been activated.

So, if it is armed -AND- triggered, then sound the alarm.

So you have three truth tables. Firstly the trigger:

A = vault, B = door, Q = alarm.

ABQ000011101111\begin{array}{c c|c}
A&B&Q\\
\hline
0&0&0\\
0&1&1\\
1&0&1\\
1&1&1\\
\end{array}
Then you have the armed table:

A = police station, B = guard’s switch
ABQ000010101110\begin{array}{c c|c}
A&B&Q\\
\hline
0&0&0\\
0&1&0\\
1&0&1\\
1&1&0\\
\end{array}
And then you combine them together into the alarm sounding table:

A = triggered, B = armed
ABQ000010100111\begin{array}{c c|c}
A&B&Q\\
\hline
0&0&0\\
0&1&0\\
1&0&0\\
1&1&1\\
\end{array}

You could then combine them into one huge logic table if you wanted.

In boolean it could be expressed as:

(Vault+Door)آ·Stationآ·آ¬Guard(Vault + Door) آ· Station آ· آ¬Guard

Leave a Reply

Your email address will not be published. Required fields are marked *