You are on page 1of 12
PReSCTSESESESEEEEERERAAA Ad dd dd dd ddd ddd, \ CS OL Assignment #3 Eng. Maged Wageeh Don’t stress — Do your best — Forget the rest Exam Duration: 1 hour 30 minutes Student Name: Nooveldeen Amir Saad School: atitl Year: \2. Marks: / 60 Percentage: Grade (9-1 Grading Scheme): Scanned with CamScanner ( 3 (a) Complete the truth table for the following logic circuit: A ——}) > jorkspace c ie = 10 t : ot 0 . Vo 41 ° eA : t. 2 10 7 4 2 o4 oO \ 10 4 \ O14 1 1 Scanned with CamScanner (4 (©) Draw a logic circuit which corresponds tothe following logic statement X= 1if (Ais NOT 1 OR Bist) AND Cis 1) OR (is NOT 1 AND Cis 1) 8) it: (c) Write a logic statement which corresponds to the following logic circui [ wh (Big tof. 0.84).. AND(OST Om oXet Css. MOTD (3) Scanned with CamScanner [2] 6 A gas fire has a safety circuit made up of logic gates. It generates an alarm (X = 1) in response to certain conditions Binary Input PA Description gol Conditions 1__| gas pressure is correct G@ | gas pressure 0 | gas pressure is too high 1 __ | carbon monoxide level is correct, © | carbon monoxide level 0 _ | carbon monoxide level is too high 1 | nogas leak is detected L | gas leak detection 0 | gas teak is detected The output X = 1 is generated under the following conditions: ° gas pressure is correct AND carbon monoxide level is too high OR carbon monoxide level is correct AND gas leak is detected (a) Draw a logic circuit for this safety system. Scanned with CamScanner (b) Complete the truth table for the safety system, __] Workspace G c tL 1G-e Cae x [a a 8 e ° 0 Tp o ° 0 1 0 e 1 \ 0 1 1 ° a 2 1 0 0 \ o \ dl 0 1 ° | ' 1 1 ° 9 ) | \ 1 1 1 6 o | o (¢) Complete the truth table for the XOR gate: A B c 0 oO 0 1 5 1 0 ' Wo 0 5 (4) (1) Scanned with CamScanner [3] (a) Complete the truth table for this logic circuit A B c l Wertcae se 2 x 0 0 0 o}o 1 1[ ° ° 0 fl o|o { el ° 1 0 oli 1 iio 0 1 1 0 1 1 qi 1 o | o o | 1 1 ie eco 1 ol 1 1 0 oO \ \ 1 1 1 ee (4) Scanned with CamScanner (b) Draw a logic circuit corresponding to the following logic statement: X=1if((Ais 1 OR Bis 1) AND (Ais 1 AND Bis 1)) OR (Cis NOT 1) (5) Scanned with CamScanner (©) Re-draw the following logic circuit using NAND gates only. A {> LY c [. Ly Logic circuit re-drawn: [4 Scanned with CamScanner [4] For this logic statement: X =1 if (Als 1 AND Bis 1) OR (Bis 1 AND Cis NOT 1 )) (a) Draw the logic circuit. B x (4) (b) Complete the truth table for the given logic statement. ae ee qe \g space x tfol[ofo|] o © ¢ olololi o é ° 1 oa re ° \ \ Oloj;i}d oO o 2 if [ofo o [0 ° of1fo|1 ° ° ° io { | i \ ofifi|t oO | a \_) ' Scanned with CamScanner {s] A system controls the Hlow ol vehicles through a barrier based on three lights, A. B and © When a light is red, the signal is zero. When a light is green, the signal is one. The barrier will open when the output X is one. The barrier opens it elther: * light A ts red and lights B and C are both green . tight Als green and lights B and C are both red (2) Design a logic circutt for the system. A. (5) 10 Scanned with CamScanner (b) Complete the truth table for the system given at the start of Question 14 zo o8 | — Working space_ x nee ewe K- Cp: 0) OF) 0 \0 ° oO 2. ofoli] oe } 2 ofitfo 2 oO 2 oe a 1 ° | 1} 0]}0 ° \ | ee! ° Oo é 1[1[o © ° S| ie eo ° Bc o ° ° ( 0 0 } | o oO 0 0° 8 oo (3) 0° \ lL) . ® (2 ° | 0 16 1 Scanned with CamScanner —o-00000 > ---0o--00 a [6] Consider the logic statement: @ oO X = 1 if (Ais NOT 1 OR Bis 1) NOR Gis 1) NAND ((Ais 1 AND CIs 1) NOR Bis 1) raw a logic circuit to represent the given logic statement. Pirate Ende eae B— x c 8) (b) Complete the truth table for the given logic statement. _————working A ei | © (BiG) +c Cnc) Q x 8 0 0 0 oO t \ 0 ° 1 Oo 1 { 2 0 1 0 o ) ( S = ni \ 0 1 1 ° iS) it ) 1 0 ° \ \ oO = 1 0 1 6 oa 1 ° ’ 1 1 0 oO oO ) } 1 1 1 ° ° \ Ro b Rae c \ 4) Ve : 4 \ ao : ° 1 (2 \ oe 3 \ o 4 ) a \ ° 1 . ' Scanned with CamScanner

You might also like