A passenger is allotted a window seat in an aircraft if he/she satisfies the criteria given below:
The passenger is below 15 years and is accompanied by an adult.
or
The passenger is a lady and is not accompanied by an adult.
or
The passenger is not below 15 years but is travelling for the first time. The inputs are:
Inputs |
|
A |
The passenger is below 15 years age. |
C |
The passenger is accompanied by an adult |
L |
The passenger is a lady. |
F |
The passenger is travelling for the first time. |
(In all the above cases 1 indicates yes and 0 indicates no).
Output: W – Denotes the passenger is allotted a window seat (1 indicates yes and 0 indicates no)
Draw the truth table for the inputs and outputs given above and write the SOP expression for W(A, C, L, F).