SlideShare a Scribd company logo
Computer System
2.4 Logic Gate & Simple Logic Circuit
2.4.1
2.4.2
2.4.3
Boolean Expression
Logic Gate
Logic Circuit
Chapter
PDT - 2017/2018
At the end of this topic, students
should be able to:
a)
b)
c)
Identify logical operators
Form valid Boolean expressions
Evaluate Boolean expression using
truth
table
Computer System
2.4 Logic Gate & Simple Logic Circuit
2.4.1 Boolean Expression
Chapter
PDT - 2017/2018
Logical Operators
•
•
•
AND (.)
OR (+)
NOT (¯)
*Other operator symbol
for NOT operator
~A, A’, !A
Logical Operator and symbol
Logic Operation
• OR (Sum)
0 + 0 = 0
0 + 1 = 1
1 + 0 = 1
1 + 1 = 1
• AND (Product)
0 . 0 = 0
0 . 1 = 0
1 . 0 = 0
1 . 1 = 1
• NOT (Inverse)
0 = 1
1 = 0
At the end of this topic, students
should be able to:
a) Identify symbol for logic gate
Computer System
2.4.2 Logic Gate
Chapter
PDT - 2017/2018
Logic Gates
•
An electronic circuit operates on one or
more input signals to produce an output
signal.
Gates are digital (two-state, On and Off)
circuits and can be analyzed with Boolean
algebra•
The three basic logic gates are :
AND gate OR gate NOT gate
Logic Gates
More gates
– Universal gates :
NAND-gate
NOR-gate
Logic Gates
Truth
Table
● A truth table is a good way to show the function of a
logic gate.
● It shows the output states for every possible
combination of input states
● The symbols of 1 (True) or 0 (False) are used
● For a logic gate with n inputs, there are 2n entries in
the truth table
● Eg : A logic gate with 3 inputs will have 8 entries
(2n=8)
STEP BY STEP CREATING A BASIC TRUTH TABLE
1. Identify how many input (n) form the given Boolean expression
and logic circuit.
2. Determine number of entry (2n)
3. Creating a table
e.g; Y= A + B 2 input (A, B)
input (n)
2n ; 22 = 4 entries
INPUT
A
INPUT
B
OUTPUT
Y
4 entries
A
B
Y = A . B
INPUT
A
INPUT
B
OUTPUT
Y = A. B
0 0 0
0 1 0
1 0 0
1 1 1
Boolean expression : Y = A . B
@ Y = AB
TRUTH TABLE
AND GATE (logic gate, Boolean
expression and Truth Table
Electrical Switches – Illustrate switches for AND Gate
SWITCH A SWITCH B LAMP
Open (O) Open (O) OFF (O)
Closed (1) Open (O) OFF (O)
Open (O) Closed (1) OFF (O)
Closed (1) Closed (1) ON (1)
he The AND gate
is an electronic
circuit that gives
a ON(1) output
only if ALL its
inputs are ON(1).
A
B
Y = A + B
INPUT
A
INPUT
B
OUTPUT
Y = A+ B
0 0 0
0 1 1
1 0 1
1 1 1
Boolean expression : Y = A + B
TRUTH TABLE
OR GATE (logic gate, Boolean expression
and Truth Table
Electrical Switches – Illustrate switches for OR Gate
SWITCH A SWITCH B LAMP
Open (O) Open (O) OFF (O)
Closed (1) Open (O) ON (1)
Open (O) Closed (1) ON (1)
Closed (1) Closed (1) ON (1)
hOR gate is an
electronic circuit
that gives a ON(1)
output if one or
more of its inputs
are ON(1)
NOT GATE (logic gate, Boolean
expression and Truth Table
A Y = A
INPUT
A
OUTPUT
Y = A
0 1
1 0
Boolean expression : Y = A
TRUTH TABLE
*Other operator symbol
~A, A’, !A
- The NOT gate has one binary input and one binary output.
- The NOT gate's output is the inverse of its input.
A
B
Y = (A . B)
INPUT
A
INPUT
B
OUTPUT
Y = (A.B)
0 0 1
0 1 1
1 0 1
1 1 0
Boolean expression : Y = (A . B)
TRUTH TABLE
NAND GATE (logic gate, Boolean expression
and Truth Table
A
B
A
B
Y = (A . B)
INPUT
A
INPUT
B
OUTPUT
Y = (A+B)
0 0 1
0 1 0
1 0 0
1 1 0
Boolean expression : Y = (A + B)
TRUTH TABLE
NOR GATE (logic gate, Boolean expression
and Truth Table
Computer System
Form valid Boolean
expressions
Chapter
PDT - 2017/2018
EXAMPLE 1:
Write a boolean expression
EXAMPLE 1:
Write a boolean expression
Hence, Y = (A+B). C
EXAMPLE 1:
Write a boolean expression
Hence, Y = (A+B). C
Boolean Expression :
Q = (A.B)+(A+B)
Q = (A.B)+ (A+B)
EXAMPLE 2:
Write a boolean expression and draw the truth table to represent this
logic circuit diagram.
Y = (A.B) . C
A B C Y
0 0 0 0
0 0 1 0
0 1 0 0
0 1 1 0
1 0 0 0
1 0 1 0
1 1 0 0
1 1 1 1
Write a boolean expression and draw the truth table to represent this
logic circuit diagram.
Y = (A.B) + C
A B C Y
0 0 0 0
0 0 1 1
0 1 0 0
0 1 1 1
1 0 0 0
1 0 1 1
1 1 0 1
1 1 1 1
At the end of this topic, students
should be able to:
a) Draw simple logic circuit for a given
Boolean expression
Computer System
2.4.3 Logic Circuit
Chapter
PDT - 2017/2018
• First, perform all inversions of single terms
• Perform all operations with parentheses ( )
• Perform an AND operation before and OR
operation unless parentheses indicate otherwise
• If an expression has a bar over it, perform the
operations inside the expression first and then
invert the result
Step by step drawing a logic circuit
Precedence
Simple Logic Circuit
F = (A + B).C
1. Draw the operations with parentheses ( ) ; (A+B)
2. Joint the output of (A+B) with .C (AND gate)
A
B
C
F
Simple Logic Circuit
F = (A . B)+C
1. Draw the operations with parentheses ( ) ; (A.B)
2. Joint the output of (A.B) with .C (OR gate)
A
B
C
F
Simple Logic Circuit
F = A + (B.C)
1. First, draw inversions of single terms ; A
2. Draw the operations with parentheses ( ) ; (B.C)
3. Joint the output of A with output of B.C using OR gate
A
B
C
F
Simple Logic Circuit
Draw the logic circuit for the Boolean expression
Y = A + B.C + D
Simple Logic Circuit
Draw the logic circuit for the Boolean expression
Y = ((A.B)+C)
Draw the logic circuit for the question below
1. F = (B+A).C+(A’+D)
2. Y = (B.C+A).(A’+C)
3. Adi will be the football coach if Emran is the goalkeeper or Irfan is not a
striker. However, Emran will only be a goalkeeper only if ZIkri and Afif are the
defender
4. Amy will reach the International Airport as schedules if she checks in before
9am and her luggage is not more than 20kg
5. PSPM is around the corner. Amni and Anna decided to study at the library.
Elsa and Olaf are interested to join them. Amni will goes to the library if Elsa
or Olaf not goes but Anna goes
Exercise

More Related Content

What's hot

Digital Electronics Logic gates
Digital Electronics Logic gatesDigital Electronics Logic gates
Digital Electronics Logic gates
MD Mahadi Hasan
 
Lecture 2.4 logic_gate_&_simple_logic_circuit
Lecture 2.4 logic_gate_&_simple_logic_circuitLecture 2.4 logic_gate_&_simple_logic_circuit
Lecture 2.4 logic_gate_&_simple_logic_circuitKMJ Science Computer
 
Logic gates (2)
Logic gates (2)Logic gates (2)
Logic gates (2)
Tanuj Parikh
 
Physics investigatory project for class 12 logic gates
Physics investigatory project for class 12 logic gatesPhysics investigatory project for class 12 logic gates
Physics investigatory project for class 12 logic gates
biswanath dehuri
 
Digital logic design DLD Logic gates
Digital logic design DLD Logic gatesDigital logic design DLD Logic gates
Digital logic design DLD Logic gates
Salman Khan
 
Introduction to digital logic
Introduction to digital logicIntroduction to digital logic
Introduction to digital logic
Kamal Acharya
 
Digital logic Gates of Computer Science
Digital logic Gates of Computer ScienceDigital logic Gates of Computer Science
Digital logic Gates of Computer Science
Anil Kumar Prajapati
 
Digital systems logicgates-booleanalgebra
Digital systems logicgates-booleanalgebraDigital systems logicgates-booleanalgebra
Digital systems logicgates-booleanalgebra
elfeds916
 
Digital Logic & Computer Architecture Practical Book by Yasir Ahmed Khan
Digital Logic & Computer Architecture Practical Book by Yasir Ahmed KhanDigital Logic & Computer Architecture Practical Book by Yasir Ahmed Khan
Digital Logic & Computer Architecture Practical Book by Yasir Ahmed Khan
Yasir Khan
 
COMPUTER ORGANIZATION - Logic gates, Boolean Algebra, Combinational Circuits
COMPUTER ORGANIZATION - Logic gates, Boolean Algebra, Combinational CircuitsCOMPUTER ORGANIZATION - Logic gates, Boolean Algebra, Combinational Circuits
COMPUTER ORGANIZATION - Logic gates, Boolean Algebra, Combinational Circuits
Vanitha Chandru
 
Logic gates 07 11-2014
Logic gates 07 11-2014Logic gates 07 11-2014
Logic gates 07 11-2014
Govind Kaintura
 
Logic gate
Logic gateLogic gate
Logic gate
Prasanna Bandara
 
Electronic Circuits
Electronic  CircuitsElectronic  Circuits
Electronic Circuitsgavhays
 
Chapter 02 Logic Functions and Gates
Chapter 02 Logic Functions and GatesChapter 02 Logic Functions and Gates
Chapter 02 Logic Functions and Gates
SSE_AndyLi
 
investagatory PHYSICS-LOGIC GATES
investagatory PHYSICS-LOGIC GATESinvestagatory PHYSICS-LOGIC GATES
investagatory PHYSICS-LOGIC GATES
Lakhvinder Singh
 
B sc cs i bo-de u-ii logic gates
B sc cs i bo-de u-ii logic gatesB sc cs i bo-de u-ii logic gates
B sc cs i bo-de u-ii logic gates
Rai University
 
Logic Gates Class 12
Logic Gates Class 12Logic Gates Class 12
Logic Gates Class 12
RithuJ
 

What's hot (20)

Logic gates
Logic gatesLogic gates
Logic gates
 
Digital Electronics Logic gates
Digital Electronics Logic gatesDigital Electronics Logic gates
Digital Electronics Logic gates
 
Lecture 2.4 logic_gate_&_simple_logic_circuit
Lecture 2.4 logic_gate_&_simple_logic_circuitLecture 2.4 logic_gate_&_simple_logic_circuit
Lecture 2.4 logic_gate_&_simple_logic_circuit
 
Logic gates (2)
Logic gates (2)Logic gates (2)
Logic gates (2)
 
Logical Gates
Logical GatesLogical Gates
Logical Gates
 
Physics investigatory project for class 12 logic gates
Physics investigatory project for class 12 logic gatesPhysics investigatory project for class 12 logic gates
Physics investigatory project for class 12 logic gates
 
Digital logic design DLD Logic gates
Digital logic design DLD Logic gatesDigital logic design DLD Logic gates
Digital logic design DLD Logic gates
 
Introduction to digital logic
Introduction to digital logicIntroduction to digital logic
Introduction to digital logic
 
Digital logic Gates of Computer Science
Digital logic Gates of Computer ScienceDigital logic Gates of Computer Science
Digital logic Gates of Computer Science
 
Digital systems logicgates-booleanalgebra
Digital systems logicgates-booleanalgebraDigital systems logicgates-booleanalgebra
Digital systems logicgates-booleanalgebra
 
Lec 2 digital basics
Lec 2 digital basicsLec 2 digital basics
Lec 2 digital basics
 
Digital Logic & Computer Architecture Practical Book by Yasir Ahmed Khan
Digital Logic & Computer Architecture Practical Book by Yasir Ahmed KhanDigital Logic & Computer Architecture Practical Book by Yasir Ahmed Khan
Digital Logic & Computer Architecture Practical Book by Yasir Ahmed Khan
 
COMPUTER ORGANIZATION - Logic gates, Boolean Algebra, Combinational Circuits
COMPUTER ORGANIZATION - Logic gates, Boolean Algebra, Combinational CircuitsCOMPUTER ORGANIZATION - Logic gates, Boolean Algebra, Combinational Circuits
COMPUTER ORGANIZATION - Logic gates, Boolean Algebra, Combinational Circuits
 
Logic gates 07 11-2014
Logic gates 07 11-2014Logic gates 07 11-2014
Logic gates 07 11-2014
 
Logic gate
Logic gateLogic gate
Logic gate
 
Electronic Circuits
Electronic  CircuitsElectronic  Circuits
Electronic Circuits
 
Chapter 02 Logic Functions and Gates
Chapter 02 Logic Functions and GatesChapter 02 Logic Functions and Gates
Chapter 02 Logic Functions and Gates
 
investagatory PHYSICS-LOGIC GATES
investagatory PHYSICS-LOGIC GATESinvestagatory PHYSICS-LOGIC GATES
investagatory PHYSICS-LOGIC GATES
 
B sc cs i bo-de u-ii logic gates
B sc cs i bo-de u-ii logic gatesB sc cs i bo-de u-ii logic gates
B sc cs i bo-de u-ii logic gates
 
Logic Gates Class 12
Logic Gates Class 12Logic Gates Class 12
Logic Gates Class 12
 

Similar to PDT DC015 Chapter 2 Computer System 2017/2018 (f)

PST SC015 Chapter 2 Computer System (III) 2017/2018
PST SC015 Chapter 2 Computer System (III) 2017/2018PST SC015 Chapter 2 Computer System (III) 2017/2018
PST SC015 Chapter 2 Computer System (III) 2017/2018
Fizaril Amzari Omar
 
Number systems and Boolean Reduction
Number systems and Boolean ReductionNumber systems and Boolean Reduction
Number systems and Boolean Reduction
Dhaval Shukla
 
Logic circuit2017
Logic circuit2017Logic circuit2017
Logic circuit2017
Lhorelie Arcega
 
Lecturer mid.ppt
Lecturer mid.pptLecturer mid.ppt
Lecturer mid.ppt
SafiUllah130
 
7 realization of logic function using logic gates (1)
7 realization of logic function using logic gates (1)7 realization of logic function using logic gates (1)
7 realization of logic function using logic gates (1)
Hemant Suthar
 
Dee2034 chapter 2 boolean algebra part b
Dee2034 chapter 2 boolean algebra part bDee2034 chapter 2 boolean algebra part b
Dee2034 chapter 2 boolean algebra part b
SITI SABARIAH SALIHIN
 
Basic gates and boolean algebra
Basic gates and boolean algebraBasic gates and boolean algebra
Basic gates and boolean algebraSudheesh S Madhav
 
class xi pptx-1.pptx
class xi pptx-1.pptxclass xi pptx-1.pptx
class xi pptx-1.pptx
PriyanshuGumber1
 
Mcsl 17 ALP lab manual
Mcsl 17 ALP lab manualMcsl 17 ALP lab manual
Mcsl 17 ALP lab manual
sannnnnnnnnnnnnnnn
 
combinational _logic_circuit_digital.pptx
combinational _logic_circuit_digital.pptxcombinational _logic_circuit_digital.pptx
combinational _logic_circuit_digital.pptx
NadzlinIbrahim3
 
Lec4-Algghhhhgghgjhf5dvbgyuygit87678.pdf
Lec4-Algghhhhgghgjhf5dvbgyuygit87678.pdfLec4-Algghhhhgghgjhf5dvbgyuygit87678.pdf
Lec4-Algghhhhgghgjhf5dvbgyuygit87678.pdf
abdnazar2003
 
9525.ppt
9525.ppt9525.ppt
9525.ppt
AravindaAKumar1
 
chapter 3 Boolean algebra (2).pptx
chapter 3 Boolean algebra (2).pptxchapter 3 Boolean algebra (2).pptx
chapter 3 Boolean algebra (2).pptx
RithinA1
 
Physics logic gates1
Physics logic gates1Physics logic gates1
Physics logic gates1
Kirthi Kirthu
 
verification of logic gates cbse class 12
verification of logic gates cbse class 12verification of logic gates cbse class 12
verification of logic gates cbse class 12
Kirthi Kirthu
 
Physics project on logic gate
Physics project on logic gatePhysics project on logic gate
Physics project on logic gate
Virat Prasad
 
Digital logic
Digital logicDigital logic
Digital logic
Madhu Bala
 
Logic Gate.pptx
Logic Gate.pptxLogic Gate.pptx
Logic Gate.pptx
MrAdhit1
 
Digital-Logic40124sequential circuits logic gatepptx
Digital-Logic40124sequential circuits logic gatepptxDigital-Logic40124sequential circuits logic gatepptx
Digital-Logic40124sequential circuits logic gatepptx
ssuser6feece1
 

Similar to PDT DC015 Chapter 2 Computer System 2017/2018 (f) (20)

PST SC015 Chapter 2 Computer System (III) 2017/2018
PST SC015 Chapter 2 Computer System (III) 2017/2018PST SC015 Chapter 2 Computer System (III) 2017/2018
PST SC015 Chapter 2 Computer System (III) 2017/2018
 
Number systems and Boolean Reduction
Number systems and Boolean ReductionNumber systems and Boolean Reduction
Number systems and Boolean Reduction
 
Logic circuit2017
Logic circuit2017Logic circuit2017
Logic circuit2017
 
Lecturer mid.ppt
Lecturer mid.pptLecturer mid.ppt
Lecturer mid.ppt
 
7 realization of logic function using logic gates (1)
7 realization of logic function using logic gates (1)7 realization of logic function using logic gates (1)
7 realization of logic function using logic gates (1)
 
Dee2034 chapter 2 boolean algebra part b
Dee2034 chapter 2 boolean algebra part bDee2034 chapter 2 boolean algebra part b
Dee2034 chapter 2 boolean algebra part b
 
Basic gates and boolean algebra
Basic gates and boolean algebraBasic gates and boolean algebra
Basic gates and boolean algebra
 
class xi pptx-1.pptx
class xi pptx-1.pptxclass xi pptx-1.pptx
class xi pptx-1.pptx
 
Mcsl 17 ALP lab manual
Mcsl 17 ALP lab manualMcsl 17 ALP lab manual
Mcsl 17 ALP lab manual
 
combinational _logic_circuit_digital.pptx
combinational _logic_circuit_digital.pptxcombinational _logic_circuit_digital.pptx
combinational _logic_circuit_digital.pptx
 
Lec4-Algghhhhgghgjhf5dvbgyuygit87678.pdf
Lec4-Algghhhhgghgjhf5dvbgyuygit87678.pdfLec4-Algghhhhgghgjhf5dvbgyuygit87678.pdf
Lec4-Algghhhhgghgjhf5dvbgyuygit87678.pdf
 
9525.ppt
9525.ppt9525.ppt
9525.ppt
 
chapter 3 Boolean algebra (2).pptx
chapter 3 Boolean algebra (2).pptxchapter 3 Boolean algebra (2).pptx
chapter 3 Boolean algebra (2).pptx
 
14 Lec11 2003
14 Lec11 200314 Lec11 2003
14 Lec11 2003
 
Physics logic gates1
Physics logic gates1Physics logic gates1
Physics logic gates1
 
verification of logic gates cbse class 12
verification of logic gates cbse class 12verification of logic gates cbse class 12
verification of logic gates cbse class 12
 
Physics project on logic gate
Physics project on logic gatePhysics project on logic gate
Physics project on logic gate
 
Digital logic
Digital logicDigital logic
Digital logic
 
Logic Gate.pptx
Logic Gate.pptxLogic Gate.pptx
Logic Gate.pptx
 
Digital-Logic40124sequential circuits logic gatepptx
Digital-Logic40124sequential circuits logic gatepptxDigital-Logic40124sequential circuits logic gatepptx
Digital-Logic40124sequential circuits logic gatepptx
 

More from Fizaril Amzari Omar

Chapter 7 Information System
Chapter 7 Information SystemChapter 7 Information System
Chapter 7 Information System
Fizaril Amzari Omar
 
Chapter 6 Database SC025 2017/2018
Chapter 6 Database SC025 2017/2018Chapter 6 Database SC025 2017/2018
Chapter 6 Database SC025 2017/2018
Fizaril Amzari Omar
 
Chapter 5 Multimedia SC025 2017/2018
Chapter 5 Multimedia SC025 2017/2018Chapter 5 Multimedia SC025 2017/2018
Chapter 5 Multimedia SC025 2017/2018
Fizaril Amzari Omar
 
PST SC015 Chapter 2 Computer System 2017/2018
PST SC015 Chapter 2 Computer System 2017/2018PST SC015 Chapter 2 Computer System 2017/2018
PST SC015 Chapter 2 Computer System 2017/2018
Fizaril Amzari Omar
 
PDT DC015 Chapter 2 Computer System 2017/2018 (m)
PDT DC015 Chapter 2 Computer System 2017/2018 (m)PDT DC015 Chapter 2 Computer System 2017/2018 (m)
PDT DC015 Chapter 2 Computer System 2017/2018 (m)
Fizaril Amzari Omar
 
PDT DC015 Chapter 2 Computer System 2017/2018 (k)
PDT DC015 Chapter 2 Computer System 2017/2018 (k)PDT DC015 Chapter 2 Computer System 2017/2018 (k)
PDT DC015 Chapter 2 Computer System 2017/2018 (k)
Fizaril Amzari Omar
 
PDT DC015 Chapter 2 Computer System 2017/2018 (j)
PDT DC015 Chapter 2 Computer System 2017/2018 (j)PDT DC015 Chapter 2 Computer System 2017/2018 (j)
PDT DC015 Chapter 2 Computer System 2017/2018 (j)
Fizaril Amzari Omar
 
PDT DC015 Chapter 2 Computer System 2017/2018 (i)
PDT DC015 Chapter 2 Computer System 2017/2018 (i)PDT DC015 Chapter 2 Computer System 2017/2018 (i)
PDT DC015 Chapter 2 Computer System 2017/2018 (i)
Fizaril Amzari Omar
 
PDT DC015 Chapter 2 Computer System 2017/2018 (g)
PDT DC015 Chapter 2 Computer System 2017/2018 (g)PDT DC015 Chapter 2 Computer System 2017/2018 (g)
PDT DC015 Chapter 2 Computer System 2017/2018 (g)
Fizaril Amzari Omar
 
PDT DC015 Chapter 2 Computer System 2017/2018 (e)
PDT DC015 Chapter 2 Computer System 2017/2018 (e)PDT DC015 Chapter 2 Computer System 2017/2018 (e)
PDT DC015 Chapter 2 Computer System 2017/2018 (e)
Fizaril Amzari Omar
 
PDT DC015 Chapter 2 Computer System 2017/2018 (d)
PDT DC015 Chapter 2 Computer System 2017/2018 (d)PDT DC015 Chapter 2 Computer System 2017/2018 (d)
PDT DC015 Chapter 2 Computer System 2017/2018 (d)
Fizaril Amzari Omar
 
PDT DC015 Chapter 2 System Concept 2017/2018 (a)
PDT DC015 Chapter 2 System Concept 2017/2018 (a)PDT DC015 Chapter 2 System Concept 2017/2018 (a)
PDT DC015 Chapter 2 System Concept 2017/2018 (a)
Fizaril Amzari Omar
 
PST SC015 Chapter 4 Comp. Ethics and Security 2017/2018
PST SC015 Chapter 4 Comp. Ethics and Security 2017/2018PST SC015 Chapter 4 Comp. Ethics and Security 2017/2018
PST SC015 Chapter 4 Comp. Ethics and Security 2017/2018
Fizaril Amzari Omar
 
PST SC015 Chapter 3 Internet Technology (V) 2017/2018
PST SC015 Chapter 3 Internet Technology (V)  2017/2018PST SC015 Chapter 3 Internet Technology (V)  2017/2018
PST SC015 Chapter 3 Internet Technology (V) 2017/2018
Fizaril Amzari Omar
 
PST SC015 Chapter 3 Internet Technology (IV) 2017/2018
PST SC015 Chapter 3 Internet Technology (IV)  2017/2018PST SC015 Chapter 3 Internet Technology (IV)  2017/2018
PST SC015 Chapter 3 Internet Technology (IV) 2017/2018
Fizaril Amzari Omar
 
PST SC015 Chapter 3 Internet Technology (II) 2017/2018
PST SC015 Chapter 3 Internet Technology (II)  2017/2018PST SC015 Chapter 3 Internet Technology (II)  2017/2018
PST SC015 Chapter 3 Internet Technology (II) 2017/2018
Fizaril Amzari Omar
 
PST SC015 Chapter 3 Internet Technology (II) 2017/2018
PST SC015 Chapter 3 Internet Technology (II)  2017/2018PST SC015 Chapter 3 Internet Technology (II)  2017/2018
PST SC015 Chapter 3 Internet Technology (II) 2017/2018
Fizaril Amzari Omar
 
PST SC015 Chapter 3 Internet Technology (I) 2017/2018
PST SC015 Chapter 3 Internet Technology (I)  2017/2018PST SC015 Chapter 3 Internet Technology (I)  2017/2018
PST SC015 Chapter 3 Internet Technology (I) 2017/2018
Fizaril Amzari Omar
 
PST SC015 Chapter 2 Computer System (IV) 2017/2018
PST SC015 Chapter 2 Computer System (IV) 2017/2018PST SC015 Chapter 2 Computer System (IV) 2017/2018
PST SC015 Chapter 2 Computer System (IV) 2017/2018
Fizaril Amzari Omar
 
PST SC015 Chapter 2 Computer System (II) 2017/2018
PST SC015 Chapter 2 Computer System (II) 2017/2018PST SC015 Chapter 2 Computer System (II) 2017/2018
PST SC015 Chapter 2 Computer System (II) 2017/2018
Fizaril Amzari Omar
 

More from Fizaril Amzari Omar (20)

Chapter 7 Information System
Chapter 7 Information SystemChapter 7 Information System
Chapter 7 Information System
 
Chapter 6 Database SC025 2017/2018
Chapter 6 Database SC025 2017/2018Chapter 6 Database SC025 2017/2018
Chapter 6 Database SC025 2017/2018
 
Chapter 5 Multimedia SC025 2017/2018
Chapter 5 Multimedia SC025 2017/2018Chapter 5 Multimedia SC025 2017/2018
Chapter 5 Multimedia SC025 2017/2018
 
PST SC015 Chapter 2 Computer System 2017/2018
PST SC015 Chapter 2 Computer System 2017/2018PST SC015 Chapter 2 Computer System 2017/2018
PST SC015 Chapter 2 Computer System 2017/2018
 
PDT DC015 Chapter 2 Computer System 2017/2018 (m)
PDT DC015 Chapter 2 Computer System 2017/2018 (m)PDT DC015 Chapter 2 Computer System 2017/2018 (m)
PDT DC015 Chapter 2 Computer System 2017/2018 (m)
 
PDT DC015 Chapter 2 Computer System 2017/2018 (k)
PDT DC015 Chapter 2 Computer System 2017/2018 (k)PDT DC015 Chapter 2 Computer System 2017/2018 (k)
PDT DC015 Chapter 2 Computer System 2017/2018 (k)
 
PDT DC015 Chapter 2 Computer System 2017/2018 (j)
PDT DC015 Chapter 2 Computer System 2017/2018 (j)PDT DC015 Chapter 2 Computer System 2017/2018 (j)
PDT DC015 Chapter 2 Computer System 2017/2018 (j)
 
PDT DC015 Chapter 2 Computer System 2017/2018 (i)
PDT DC015 Chapter 2 Computer System 2017/2018 (i)PDT DC015 Chapter 2 Computer System 2017/2018 (i)
PDT DC015 Chapter 2 Computer System 2017/2018 (i)
 
PDT DC015 Chapter 2 Computer System 2017/2018 (g)
PDT DC015 Chapter 2 Computer System 2017/2018 (g)PDT DC015 Chapter 2 Computer System 2017/2018 (g)
PDT DC015 Chapter 2 Computer System 2017/2018 (g)
 
PDT DC015 Chapter 2 Computer System 2017/2018 (e)
PDT DC015 Chapter 2 Computer System 2017/2018 (e)PDT DC015 Chapter 2 Computer System 2017/2018 (e)
PDT DC015 Chapter 2 Computer System 2017/2018 (e)
 
PDT DC015 Chapter 2 Computer System 2017/2018 (d)
PDT DC015 Chapter 2 Computer System 2017/2018 (d)PDT DC015 Chapter 2 Computer System 2017/2018 (d)
PDT DC015 Chapter 2 Computer System 2017/2018 (d)
 
PDT DC015 Chapter 2 System Concept 2017/2018 (a)
PDT DC015 Chapter 2 System Concept 2017/2018 (a)PDT DC015 Chapter 2 System Concept 2017/2018 (a)
PDT DC015 Chapter 2 System Concept 2017/2018 (a)
 
PST SC015 Chapter 4 Comp. Ethics and Security 2017/2018
PST SC015 Chapter 4 Comp. Ethics and Security 2017/2018PST SC015 Chapter 4 Comp. Ethics and Security 2017/2018
PST SC015 Chapter 4 Comp. Ethics and Security 2017/2018
 
PST SC015 Chapter 3 Internet Technology (V) 2017/2018
PST SC015 Chapter 3 Internet Technology (V)  2017/2018PST SC015 Chapter 3 Internet Technology (V)  2017/2018
PST SC015 Chapter 3 Internet Technology (V) 2017/2018
 
PST SC015 Chapter 3 Internet Technology (IV) 2017/2018
PST SC015 Chapter 3 Internet Technology (IV)  2017/2018PST SC015 Chapter 3 Internet Technology (IV)  2017/2018
PST SC015 Chapter 3 Internet Technology (IV) 2017/2018
 
PST SC015 Chapter 3 Internet Technology (II) 2017/2018
PST SC015 Chapter 3 Internet Technology (II)  2017/2018PST SC015 Chapter 3 Internet Technology (II)  2017/2018
PST SC015 Chapter 3 Internet Technology (II) 2017/2018
 
PST SC015 Chapter 3 Internet Technology (II) 2017/2018
PST SC015 Chapter 3 Internet Technology (II)  2017/2018PST SC015 Chapter 3 Internet Technology (II)  2017/2018
PST SC015 Chapter 3 Internet Technology (II) 2017/2018
 
PST SC015 Chapter 3 Internet Technology (I) 2017/2018
PST SC015 Chapter 3 Internet Technology (I)  2017/2018PST SC015 Chapter 3 Internet Technology (I)  2017/2018
PST SC015 Chapter 3 Internet Technology (I) 2017/2018
 
PST SC015 Chapter 2 Computer System (IV) 2017/2018
PST SC015 Chapter 2 Computer System (IV) 2017/2018PST SC015 Chapter 2 Computer System (IV) 2017/2018
PST SC015 Chapter 2 Computer System (IV) 2017/2018
 
PST SC015 Chapter 2 Computer System (II) 2017/2018
PST SC015 Chapter 2 Computer System (II) 2017/2018PST SC015 Chapter 2 Computer System (II) 2017/2018
PST SC015 Chapter 2 Computer System (II) 2017/2018
 

Recently uploaded

"Protectable subject matters, Protection in biotechnology, Protection of othe...
"Protectable subject matters, Protection in biotechnology, Protection of othe..."Protectable subject matters, Protection in biotechnology, Protection of othe...
"Protectable subject matters, Protection in biotechnology, Protection of othe...
SACHIN R KONDAGURI
 
CLASS 11 CBSE B.St Project AIDS TO TRADE - INSURANCE
CLASS 11 CBSE B.St Project AIDS TO TRADE - INSURANCECLASS 11 CBSE B.St Project AIDS TO TRADE - INSURANCE
CLASS 11 CBSE B.St Project AIDS TO TRADE - INSURANCE
BhavyaRajput3
 
Language Across the Curriculm LAC B.Ed.
Language Across the  Curriculm LAC B.Ed.Language Across the  Curriculm LAC B.Ed.
Language Across the Curriculm LAC B.Ed.
Atul Kumar Singh
 
Guidance_and_Counselling.pdf B.Ed. 4th Semester
Guidance_and_Counselling.pdf B.Ed. 4th SemesterGuidance_and_Counselling.pdf B.Ed. 4th Semester
Guidance_and_Counselling.pdf B.Ed. 4th Semester
Atul Kumar Singh
 
Francesca Gottschalk - How can education support child empowerment.pptx
Francesca Gottschalk - How can education support child empowerment.pptxFrancesca Gottschalk - How can education support child empowerment.pptx
Francesca Gottschalk - How can education support child empowerment.pptx
EduSkills OECD
 
Home assignment II on Spectroscopy 2024 Answers.pdf
Home assignment II on Spectroscopy 2024 Answers.pdfHome assignment II on Spectroscopy 2024 Answers.pdf
Home assignment II on Spectroscopy 2024 Answers.pdf
Tamralipta Mahavidyalaya
 
How to Make a Field invisible in Odoo 17
How to Make a Field invisible in Odoo 17How to Make a Field invisible in Odoo 17
How to Make a Field invisible in Odoo 17
Celine George
 
Polish students' mobility in the Czech Republic
Polish students' mobility in the Czech RepublicPolish students' mobility in the Czech Republic
Polish students' mobility in the Czech Republic
Anna Sz.
 
1.4 modern child centered education - mahatma gandhi-2.pptx
1.4 modern child centered education - mahatma gandhi-2.pptx1.4 modern child centered education - mahatma gandhi-2.pptx
1.4 modern child centered education - mahatma gandhi-2.pptx
JosvitaDsouza2
 
A Strategic Approach: GenAI in Education
A Strategic Approach: GenAI in EducationA Strategic Approach: GenAI in Education
A Strategic Approach: GenAI in Education
Peter Windle
 
678020731-Sumas-y-Restas-Para-Colorear.pdf
678020731-Sumas-y-Restas-Para-Colorear.pdf678020731-Sumas-y-Restas-Para-Colorear.pdf
678020731-Sumas-y-Restas-Para-Colorear.pdf
CarlosHernanMontoyab2
 
How libraries can support authors with open access requirements for UKRI fund...
How libraries can support authors with open access requirements for UKRI fund...How libraries can support authors with open access requirements for UKRI fund...
How libraries can support authors with open access requirements for UKRI fund...
Jisc
 
BÀI TẬP BỔ TRỢ TIẾNG ANH GLOBAL SUCCESS LỚP 3 - CẢ NĂM (CÓ FILE NGHE VÀ ĐÁP Á...
BÀI TẬP BỔ TRỢ TIẾNG ANH GLOBAL SUCCESS LỚP 3 - CẢ NĂM (CÓ FILE NGHE VÀ ĐÁP Á...BÀI TẬP BỔ TRỢ TIẾNG ANH GLOBAL SUCCESS LỚP 3 - CẢ NĂM (CÓ FILE NGHE VÀ ĐÁP Á...
BÀI TẬP BỔ TRỢ TIẾNG ANH GLOBAL SUCCESS LỚP 3 - CẢ NĂM (CÓ FILE NGHE VÀ ĐÁP Á...
Nguyen Thanh Tu Collection
 
The basics of sentences session 5pptx.pptx
The basics of sentences session 5pptx.pptxThe basics of sentences session 5pptx.pptx
The basics of sentences session 5pptx.pptx
heathfieldcps1
 
Adversarial Attention Modeling for Multi-dimensional Emotion Regression.pdf
Adversarial Attention Modeling for Multi-dimensional Emotion Regression.pdfAdversarial Attention Modeling for Multi-dimensional Emotion Regression.pdf
Adversarial Attention Modeling for Multi-dimensional Emotion Regression.pdf
Po-Chuan Chen
 
Phrasal Verbs.XXXXXXXXXXXXXXXXXXXXXXXXXX
Phrasal Verbs.XXXXXXXXXXXXXXXXXXXXXXXXXXPhrasal Verbs.XXXXXXXXXXXXXXXXXXXXXXXXXX
Phrasal Verbs.XXXXXXXXXXXXXXXXXXXXXXXXXX
MIRIAMSALINAS13
 
Instructions for Submissions thorugh G- Classroom.pptx
Instructions for Submissions thorugh G- Classroom.pptxInstructions for Submissions thorugh G- Classroom.pptx
Instructions for Submissions thorugh G- Classroom.pptx
Jheel Barad
 
special B.ed 2nd year old paper_20240531.pdf
special B.ed 2nd year old paper_20240531.pdfspecial B.ed 2nd year old paper_20240531.pdf
special B.ed 2nd year old paper_20240531.pdf
Special education needs
 
Overview on Edible Vaccine: Pros & Cons with Mechanism
Overview on Edible Vaccine: Pros & Cons with MechanismOverview on Edible Vaccine: Pros & Cons with Mechanism
Overview on Edible Vaccine: Pros & Cons with Mechanism
DeeptiGupta154
 
The approach at University of Liverpool.pptx
The approach at University of Liverpool.pptxThe approach at University of Liverpool.pptx
The approach at University of Liverpool.pptx
Jisc
 

Recently uploaded (20)

"Protectable subject matters, Protection in biotechnology, Protection of othe...
"Protectable subject matters, Protection in biotechnology, Protection of othe..."Protectable subject matters, Protection in biotechnology, Protection of othe...
"Protectable subject matters, Protection in biotechnology, Protection of othe...
 
CLASS 11 CBSE B.St Project AIDS TO TRADE - INSURANCE
CLASS 11 CBSE B.St Project AIDS TO TRADE - INSURANCECLASS 11 CBSE B.St Project AIDS TO TRADE - INSURANCE
CLASS 11 CBSE B.St Project AIDS TO TRADE - INSURANCE
 
Language Across the Curriculm LAC B.Ed.
Language Across the  Curriculm LAC B.Ed.Language Across the  Curriculm LAC B.Ed.
Language Across the Curriculm LAC B.Ed.
 
Guidance_and_Counselling.pdf B.Ed. 4th Semester
Guidance_and_Counselling.pdf B.Ed. 4th SemesterGuidance_and_Counselling.pdf B.Ed. 4th Semester
Guidance_and_Counselling.pdf B.Ed. 4th Semester
 
Francesca Gottschalk - How can education support child empowerment.pptx
Francesca Gottschalk - How can education support child empowerment.pptxFrancesca Gottschalk - How can education support child empowerment.pptx
Francesca Gottschalk - How can education support child empowerment.pptx
 
Home assignment II on Spectroscopy 2024 Answers.pdf
Home assignment II on Spectroscopy 2024 Answers.pdfHome assignment II on Spectroscopy 2024 Answers.pdf
Home assignment II on Spectroscopy 2024 Answers.pdf
 
How to Make a Field invisible in Odoo 17
How to Make a Field invisible in Odoo 17How to Make a Field invisible in Odoo 17
How to Make a Field invisible in Odoo 17
 
Polish students' mobility in the Czech Republic
Polish students' mobility in the Czech RepublicPolish students' mobility in the Czech Republic
Polish students' mobility in the Czech Republic
 
1.4 modern child centered education - mahatma gandhi-2.pptx
1.4 modern child centered education - mahatma gandhi-2.pptx1.4 modern child centered education - mahatma gandhi-2.pptx
1.4 modern child centered education - mahatma gandhi-2.pptx
 
A Strategic Approach: GenAI in Education
A Strategic Approach: GenAI in EducationA Strategic Approach: GenAI in Education
A Strategic Approach: GenAI in Education
 
678020731-Sumas-y-Restas-Para-Colorear.pdf
678020731-Sumas-y-Restas-Para-Colorear.pdf678020731-Sumas-y-Restas-Para-Colorear.pdf
678020731-Sumas-y-Restas-Para-Colorear.pdf
 
How libraries can support authors with open access requirements for UKRI fund...
How libraries can support authors with open access requirements for UKRI fund...How libraries can support authors with open access requirements for UKRI fund...
How libraries can support authors with open access requirements for UKRI fund...
 
BÀI TẬP BỔ TRỢ TIẾNG ANH GLOBAL SUCCESS LỚP 3 - CẢ NĂM (CÓ FILE NGHE VÀ ĐÁP Á...
BÀI TẬP BỔ TRỢ TIẾNG ANH GLOBAL SUCCESS LỚP 3 - CẢ NĂM (CÓ FILE NGHE VÀ ĐÁP Á...BÀI TẬP BỔ TRỢ TIẾNG ANH GLOBAL SUCCESS LỚP 3 - CẢ NĂM (CÓ FILE NGHE VÀ ĐÁP Á...
BÀI TẬP BỔ TRỢ TIẾNG ANH GLOBAL SUCCESS LỚP 3 - CẢ NĂM (CÓ FILE NGHE VÀ ĐÁP Á...
 
The basics of sentences session 5pptx.pptx
The basics of sentences session 5pptx.pptxThe basics of sentences session 5pptx.pptx
The basics of sentences session 5pptx.pptx
 
Adversarial Attention Modeling for Multi-dimensional Emotion Regression.pdf
Adversarial Attention Modeling for Multi-dimensional Emotion Regression.pdfAdversarial Attention Modeling for Multi-dimensional Emotion Regression.pdf
Adversarial Attention Modeling for Multi-dimensional Emotion Regression.pdf
 
Phrasal Verbs.XXXXXXXXXXXXXXXXXXXXXXXXXX
Phrasal Verbs.XXXXXXXXXXXXXXXXXXXXXXXXXXPhrasal Verbs.XXXXXXXXXXXXXXXXXXXXXXXXXX
Phrasal Verbs.XXXXXXXXXXXXXXXXXXXXXXXXXX
 
Instructions for Submissions thorugh G- Classroom.pptx
Instructions for Submissions thorugh G- Classroom.pptxInstructions for Submissions thorugh G- Classroom.pptx
Instructions for Submissions thorugh G- Classroom.pptx
 
special B.ed 2nd year old paper_20240531.pdf
special B.ed 2nd year old paper_20240531.pdfspecial B.ed 2nd year old paper_20240531.pdf
special B.ed 2nd year old paper_20240531.pdf
 
Overview on Edible Vaccine: Pros & Cons with Mechanism
Overview on Edible Vaccine: Pros & Cons with MechanismOverview on Edible Vaccine: Pros & Cons with Mechanism
Overview on Edible Vaccine: Pros & Cons with Mechanism
 
The approach at University of Liverpool.pptx
The approach at University of Liverpool.pptxThe approach at University of Liverpool.pptx
The approach at University of Liverpool.pptx
 

PDT DC015 Chapter 2 Computer System 2017/2018 (f)

  • 1. Computer System 2.4 Logic Gate & Simple Logic Circuit 2.4.1 2.4.2 2.4.3 Boolean Expression Logic Gate Logic Circuit Chapter PDT - 2017/2018
  • 2. At the end of this topic, students should be able to: a) b) c) Identify logical operators Form valid Boolean expressions Evaluate Boolean expression using truth table Computer System 2.4 Logic Gate & Simple Logic Circuit 2.4.1 Boolean Expression Chapter PDT - 2017/2018
  • 3. Logical Operators • • • AND (.) OR (+) NOT (¯) *Other operator symbol for NOT operator ~A, A’, !A Logical Operator and symbol
  • 4. Logic Operation • OR (Sum) 0 + 0 = 0 0 + 1 = 1 1 + 0 = 1 1 + 1 = 1 • AND (Product) 0 . 0 = 0 0 . 1 = 0 1 . 0 = 0 1 . 1 = 1 • NOT (Inverse) 0 = 1 1 = 0
  • 5. At the end of this topic, students should be able to: a) Identify symbol for logic gate Computer System 2.4.2 Logic Gate Chapter PDT - 2017/2018
  • 6. Logic Gates • An electronic circuit operates on one or more input signals to produce an output signal. Gates are digital (two-state, On and Off) circuits and can be analyzed with Boolean algebra•
  • 7. The three basic logic gates are : AND gate OR gate NOT gate Logic Gates
  • 8. More gates – Universal gates : NAND-gate NOR-gate Logic Gates
  • 9. Truth Table ● A truth table is a good way to show the function of a logic gate. ● It shows the output states for every possible combination of input states ● The symbols of 1 (True) or 0 (False) are used ● For a logic gate with n inputs, there are 2n entries in the truth table ● Eg : A logic gate with 3 inputs will have 8 entries (2n=8)
  • 10. STEP BY STEP CREATING A BASIC TRUTH TABLE 1. Identify how many input (n) form the given Boolean expression and logic circuit. 2. Determine number of entry (2n) 3. Creating a table e.g; Y= A + B 2 input (A, B) input (n) 2n ; 22 = 4 entries INPUT A INPUT B OUTPUT Y 4 entries
  • 11. A B Y = A . B INPUT A INPUT B OUTPUT Y = A. B 0 0 0 0 1 0 1 0 0 1 1 1 Boolean expression : Y = A . B @ Y = AB TRUTH TABLE AND GATE (logic gate, Boolean expression and Truth Table
  • 12. Electrical Switches – Illustrate switches for AND Gate SWITCH A SWITCH B LAMP Open (O) Open (O) OFF (O) Closed (1) Open (O) OFF (O) Open (O) Closed (1) OFF (O) Closed (1) Closed (1) ON (1) he The AND gate is an electronic circuit that gives a ON(1) output only if ALL its inputs are ON(1).
  • 13. A B Y = A + B INPUT A INPUT B OUTPUT Y = A+ B 0 0 0 0 1 1 1 0 1 1 1 1 Boolean expression : Y = A + B TRUTH TABLE OR GATE (logic gate, Boolean expression and Truth Table
  • 14. Electrical Switches – Illustrate switches for OR Gate SWITCH A SWITCH B LAMP Open (O) Open (O) OFF (O) Closed (1) Open (O) ON (1) Open (O) Closed (1) ON (1) Closed (1) Closed (1) ON (1) hOR gate is an electronic circuit that gives a ON(1) output if one or more of its inputs are ON(1)
  • 15. NOT GATE (logic gate, Boolean expression and Truth Table A Y = A INPUT A OUTPUT Y = A 0 1 1 0 Boolean expression : Y = A TRUTH TABLE *Other operator symbol ~A, A’, !A - The NOT gate has one binary input and one binary output. - The NOT gate's output is the inverse of its input.
  • 16. A B Y = (A . B) INPUT A INPUT B OUTPUT Y = (A.B) 0 0 1 0 1 1 1 0 1 1 1 0 Boolean expression : Y = (A . B) TRUTH TABLE NAND GATE (logic gate, Boolean expression and Truth Table A B
  • 17. A B Y = (A . B) INPUT A INPUT B OUTPUT Y = (A+B) 0 0 1 0 1 0 1 0 0 1 1 0 Boolean expression : Y = (A + B) TRUTH TABLE NOR GATE (logic gate, Boolean expression and Truth Table
  • 18. Computer System Form valid Boolean expressions Chapter PDT - 2017/2018
  • 19. EXAMPLE 1: Write a boolean expression
  • 20. EXAMPLE 1: Write a boolean expression Hence, Y = (A+B). C
  • 21. EXAMPLE 1: Write a boolean expression Hence, Y = (A+B). C
  • 22. Boolean Expression : Q = (A.B)+(A+B) Q = (A.B)+ (A+B) EXAMPLE 2:
  • 23. Write a boolean expression and draw the truth table to represent this logic circuit diagram. Y = (A.B) . C A B C Y 0 0 0 0 0 0 1 0 0 1 0 0 0 1 1 0 1 0 0 0 1 0 1 0 1 1 0 0 1 1 1 1
  • 24. Write a boolean expression and draw the truth table to represent this logic circuit diagram. Y = (A.B) + C A B C Y 0 0 0 0 0 0 1 1 0 1 0 0 0 1 1 1 1 0 0 0 1 0 1 1 1 1 0 1 1 1 1 1
  • 25. At the end of this topic, students should be able to: a) Draw simple logic circuit for a given Boolean expression Computer System 2.4.3 Logic Circuit Chapter PDT - 2017/2018
  • 26. • First, perform all inversions of single terms • Perform all operations with parentheses ( ) • Perform an AND operation before and OR operation unless parentheses indicate otherwise • If an expression has a bar over it, perform the operations inside the expression first and then invert the result Step by step drawing a logic circuit Precedence
  • 27. Simple Logic Circuit F = (A + B).C 1. Draw the operations with parentheses ( ) ; (A+B) 2. Joint the output of (A+B) with .C (AND gate) A B C F
  • 28. Simple Logic Circuit F = (A . B)+C 1. Draw the operations with parentheses ( ) ; (A.B) 2. Joint the output of (A.B) with .C (OR gate) A B C F
  • 29. Simple Logic Circuit F = A + (B.C) 1. First, draw inversions of single terms ; A 2. Draw the operations with parentheses ( ) ; (B.C) 3. Joint the output of A with output of B.C using OR gate A B C F
  • 30. Simple Logic Circuit Draw the logic circuit for the Boolean expression Y = A + B.C + D
  • 31. Simple Logic Circuit Draw the logic circuit for the Boolean expression Y = ((A.B)+C)
  • 32. Draw the logic circuit for the question below 1. F = (B+A).C+(A’+D) 2. Y = (B.C+A).(A’+C) 3. Adi will be the football coach if Emran is the goalkeeper or Irfan is not a striker. However, Emran will only be a goalkeeper only if ZIkri and Afif are the defender 4. Amy will reach the International Airport as schedules if she checks in before 9am and her luggage is not more than 20kg 5. PSPM is around the corner. Amni and Anna decided to study at the library. Elsa and Olaf are interested to join them. Amni will goes to the library if Elsa or Olaf not goes but Anna goes Exercise