PRASHNIKAप्रश्निका
Back to the paper

A shopping mall announces a special discount on all its products as a festival offer only to those…

Computer Science20255 marksLong answer
A shopping mall announces a special discount on all its products as a festival offer only to those who satisfy any one of the following conditions. • If he/she is an employee of the mall and has a service of more than 10 years. OR • A regular customer of the mall whose age is less than 65 years and should not be an employee of the mall. OR • If he/she is a senior citizen but not a regular customer of the mall. The inputs are :
INPUTS
EEmployee of the mall
RRegular customer of the mall
SService of the employee is more than 10 years
CSenior citizen of 65 years or above
(In all the above cases, 1 indicates yes and 0 indicates no.) Output: X - Denotes eligible for discount [1 indicates YES and 0 indicates NO in all cases] Draw the truth table for the inputs and outputs given above and write the SOP expression for $X(E, R, S, C)$.

Answer

Answer

Official answer key
Truth table:
ERSCX
00000
00011
00100
00111
01001
01010
01101
01110
10000
10011
10101
10111
11000
11010
11101
11111
(E,R,S,C 1 = yes, 0 = no.) X = 1 when: (Condition 1) employee with service > 10 years, i.e. E.S; OR (Condition 2) regular customer, not employee, age below 65, i.e. E'.R.C'; OR (Condition 3) senior citizen (C) who is not a regular customer, i.e. C.R'. $X(E,R,S,C) = \Sigma(1,3,4,6,9,10,11,14,15)$ Canonical SOP: $X = E'R'S'C + E'R'SC + E'RS'C' + E'RSC' + ER'S'C + ER'SC' + ER'SC + ERSC' + ERSC$
Boolean Algebra

From ISC 2025 Specimen Computer Science Paper 1, question 3(i).