SlideShare ist ein Scribd-Unternehmen logo
1 von 17
Boolean Logic
George Boole ,[object Object],[object Object],100 th  Anniversary Edition
Boolean Logic ,[object Object],[object Object],[object Object],100 th  Anniversary Edition
The AND Operation ,[object Object],[object Object],[object Object],F F F F T T a F T b AND
The OR Operation ,[object Object],[object Object],[object Object],F T F T T T a F T b OR
The NOT Operation ,[object Object],[object Object],[object Object],T F F T a NOT
Logical Conditions ,[object Object],[object Object],If (hours > 40) pay overtime If (age < 12) stay in the back seat While (count     10) print count   increment count
Logical Comparison Operators ,[object Object],A    B A    B A > B A < B A    B A = B In Math A >= B A  is greater than or equal to  B A <= B A  is less than or equal to  B A > B A  is greater than  B A < B A  is less than  B A<> B or A != B A  is not equal to  B A = B or A == B A  equals  B In Programming Condition
Compound Conditions ,[object Object],If  (  (hours > 40) AND (type = hourly)  ) pay overtime If  (  (age < 12) OR (height < 42 in.)  ) stay in the back seat While  (  (count  <= 10) AND    NOT (status = away)  ) print name.count   increment count
Boolean Logic  in Alice
Boolean Functions Functions in Alice that return true or false values are called Boolean functions. Alice has many such built-in functions, such as these two groups of basic Boolean logic functions and comparison functions.
They can be found on  the world’s functions tab
They are used inside branching and looping instruction tiles
Boolean Functions The Boolean comparison functions can be used to  create simple true or false conditions.
Boolean Functions The Boolean logic functions can be used to  create compound conditions.
Boolean Functions Alice has many other world-level and object-level fuctions that return true or false values, such as  the Boolean proximity functions shown here on aliceLiddel’s functions tab in the details area.
Boolean Functions They can be used anywhere that a Boolean value is needed, such as in this If/Else command.

Weitere ähnliche Inhalte

Was ist angesagt?

Subject seminar boolean algebra by :-shivanshu
Subject seminar  boolean algebra  by :-shivanshuSubject seminar  boolean algebra  by :-shivanshu
Subject seminar boolean algebra by :-shivanshuShivanshu Dixit
 
Boolean functions
Boolean functionsBoolean functions
Boolean functionsZareenRauf1
 
Boolean Algebra
Boolean AlgebraBoolean Algebra
Boolean Algebragavhays
 
Chapter 03 Boolean Algebra and Combinational Logic
Chapter 03 Boolean Algebra and Combinational LogicChapter 03 Boolean Algebra and Combinational Logic
Chapter 03 Boolean Algebra and Combinational LogicSSE_AndyLi
 
Boolean Algebra
Boolean AlgebraBoolean Algebra
Boolean AlgebraHau Moy
 
Boolean expression org.
Boolean expression org.Boolean expression org.
Boolean expression org.mshoaib15
 
SOP POS, Minterm and Maxterm
SOP POS, Minterm and MaxtermSOP POS, Minterm and Maxterm
SOP POS, Minterm and MaxtermSelf-employed
 
Chapter 2: Boolean Algebra and Logic Gates
Chapter 2: Boolean Algebra and Logic GatesChapter 2: Boolean Algebra and Logic Gates
Chapter 2: Boolean Algebra and Logic GatesEr. Nawaraj Bhandari
 
2nd PUC computer science chapter 2 boolean algebra
2nd PUC computer science chapter 2  boolean algebra 2nd PUC computer science chapter 2  boolean algebra
2nd PUC computer science chapter 2 boolean algebra Aahwini Esware gowda
 
Digital systems logicgates-booleanalgebra
Digital systems logicgates-booleanalgebraDigital systems logicgates-booleanalgebra
Digital systems logicgates-booleanalgebraelfeds916
 
Introduction to Boolean Algebra
Introduction to Boolean AlgebraIntroduction to Boolean Algebra
Introduction to Boolean Algebrablaircomp2003
 
Boolean algebra and logic gates
Boolean algebra and logic gatesBoolean algebra and logic gates
Boolean algebra and logic gatesZareenRauf1
 

Was ist angesagt? (20)

Subject seminar boolean algebra by :-shivanshu
Subject seminar  boolean algebra  by :-shivanshuSubject seminar  boolean algebra  by :-shivanshu
Subject seminar boolean algebra by :-shivanshu
 
Boolean functions
Boolean functionsBoolean functions
Boolean functions
 
Boolean Algebra
Boolean AlgebraBoolean Algebra
Boolean Algebra
 
Chapter 03 Boolean Algebra and Combinational Logic
Chapter 03 Boolean Algebra and Combinational LogicChapter 03 Boolean Algebra and Combinational Logic
Chapter 03 Boolean Algebra and Combinational Logic
 
Chapter 4 logic design
Chapter 4   logic designChapter 4   logic design
Chapter 4 logic design
 
BOOLEAN ALGEBRA & LOGIC GATE
BOOLEAN ALGEBRA & LOGIC GATEBOOLEAN ALGEBRA & LOGIC GATE
BOOLEAN ALGEBRA & LOGIC GATE
 
Boolean Algebra
Boolean AlgebraBoolean Algebra
Boolean Algebra
 
Boolean expression org.
Boolean expression org.Boolean expression org.
Boolean expression org.
 
SOP POS, Minterm and Maxterm
SOP POS, Minterm and MaxtermSOP POS, Minterm and Maxterm
SOP POS, Minterm and Maxterm
 
Boolean
BooleanBoolean
Boolean
 
Boolean algebra and Logic gates
Boolean algebra and Logic gatesBoolean algebra and Logic gates
Boolean algebra and Logic gates
 
Chapter 2: Boolean Algebra and Logic Gates
Chapter 2: Boolean Algebra and Logic GatesChapter 2: Boolean Algebra and Logic Gates
Chapter 2: Boolean Algebra and Logic Gates
 
Boolean algebra & logic gates
Boolean algebra & logic gatesBoolean algebra & logic gates
Boolean algebra & logic gates
 
2nd PUC computer science chapter 2 boolean algebra
2nd PUC computer science chapter 2  boolean algebra 2nd PUC computer science chapter 2  boolean algebra
2nd PUC computer science chapter 2 boolean algebra
 
Boolean algebra
Boolean algebraBoolean algebra
Boolean algebra
 
Boolean Logic
Boolean LogicBoolean Logic
Boolean Logic
 
Chapter 5 boolean algebra
Chapter 5 boolean algebraChapter 5 boolean algebra
Chapter 5 boolean algebra
 
Digital systems logicgates-booleanalgebra
Digital systems logicgates-booleanalgebraDigital systems logicgates-booleanalgebra
Digital systems logicgates-booleanalgebra
 
Introduction to Boolean Algebra
Introduction to Boolean AlgebraIntroduction to Boolean Algebra
Introduction to Boolean Algebra
 
Boolean algebra and logic gates
Boolean algebra and logic gatesBoolean algebra and logic gates
Boolean algebra and logic gates
 

Andere mochten auch

Boolean logic
Boolean logicBoolean logic
Boolean logicnandolea
 
Boolean Logic: how to talk to search engines in their own language
Boolean Logic: how to talk to search engines in their own languageBoolean Logic: how to talk to search engines in their own language
Boolean Logic: how to talk to search engines in their own languageBoxford Library
 
Boolean Logic Searching: A Primer
Boolean Logic Searching: A PrimerBoolean Logic Searching: A Primer
Boolean Logic Searching: A Primercswetzel
 
Boolean Logic
Boolean LogicBoolean Logic
Boolean Logicnandolea
 
MLA International Bibliography: Finding Full Text
MLA International Bibliography: Finding Full TextMLA International Bibliography: Finding Full Text
MLA International Bibliography: Finding Full TextForsyth Library
 
Boolean Search Fundamentals For Recruiters - Guide
Boolean Search Fundamentals For Recruiters - GuideBoolean Search Fundamentals For Recruiters - Guide
Boolean Search Fundamentals For Recruiters - GuideProminence
 
Binary Operation Boolean Logic
Binary Operation Boolean LogicBinary Operation Boolean Logic
Binary Operation Boolean LogicGaditek
 
Boolean Search.. A Basic Level for internal KT/Reference material
Boolean Search.. A Basic Level for internal KT/Reference materialBoolean Search.. A Basic Level for internal KT/Reference material
Boolean Search.. A Basic Level for internal KT/Reference materialDurga Palakurthy
 
Boolean- Search Basics
Boolean- Search BasicsBoolean- Search Basics
Boolean- Search BasicsRithesh Nair
 
Boolean Searching
Boolean SearchingBoolean Searching
Boolean Searchinghisled
 
Sourcing using boolean search and other tips 2014
Sourcing using boolean search and other tips 2014Sourcing using boolean search and other tips 2014
Sourcing using boolean search and other tips 2014Claudine Halcomb
 
Introduction to boolean search
Introduction to boolean searchIntroduction to boolean search
Introduction to boolean searchKey Resourcing
 
Boolean Logic Example
Boolean Logic ExampleBoolean Logic Example
Boolean Logic Exampleml4ml4
 
Successful search strategies
Successful search strategiesSuccessful search strategies
Successful search strategiesbobilin
 

Andere mochten auch (20)

Boolean Logic
Boolean LogicBoolean Logic
Boolean Logic
 
Boolean logic
Boolean logicBoolean logic
Boolean logic
 
Boolean Logic: how to talk to search engines in their own language
Boolean Logic: how to talk to search engines in their own languageBoolean Logic: how to talk to search engines in their own language
Boolean Logic: how to talk to search engines in their own language
 
Boolean Logic Searching: A Primer
Boolean Logic Searching: A PrimerBoolean Logic Searching: A Primer
Boolean Logic Searching: A Primer
 
Boolean Logic
Boolean LogicBoolean Logic
Boolean Logic
 
MLA International Bibliography: Finding Full Text
MLA International Bibliography: Finding Full TextMLA International Bibliography: Finding Full Text
MLA International Bibliography: Finding Full Text
 
Boolean logic presentation
Boolean logic presentationBoolean logic presentation
Boolean logic presentation
 
Boolean Search Fundamentals For Recruiters - Guide
Boolean Search Fundamentals For Recruiters - GuideBoolean Search Fundamentals For Recruiters - Guide
Boolean Search Fundamentals For Recruiters - Guide
 
Boolean Operators
Boolean OperatorsBoolean Operators
Boolean Operators
 
Online Search Techniques-Boolean Searching
Online Search Techniques-Boolean SearchingOnline Search Techniques-Boolean Searching
Online Search Techniques-Boolean Searching
 
Binary Operation Boolean Logic
Binary Operation Boolean LogicBinary Operation Boolean Logic
Binary Operation Boolean Logic
 
Boolean Search.. A Basic Level for internal KT/Reference material
Boolean Search.. A Basic Level for internal KT/Reference materialBoolean Search.. A Basic Level for internal KT/Reference material
Boolean Search.. A Basic Level for internal KT/Reference material
 
Boolean- Search Basics
Boolean- Search BasicsBoolean- Search Basics
Boolean- Search Basics
 
Bibliographies
Bibliographies Bibliographies
Bibliographies
 
Boolean Searching
Boolean SearchingBoolean Searching
Boolean Searching
 
Sourcing using boolean search and other tips 2014
Sourcing using boolean search and other tips 2014Sourcing using boolean search and other tips 2014
Sourcing using boolean search and other tips 2014
 
Introduction to boolean search
Introduction to boolean searchIntroduction to boolean search
Introduction to boolean search
 
Boolean Logic Example
Boolean Logic ExampleBoolean Logic Example
Boolean Logic Example
 
Boolean Logic
Boolean LogicBoolean Logic
Boolean Logic
 
Successful search strategies
Successful search strategiesSuccessful search strategies
Successful search strategies
 

Ähnlich wie Ch 5 boolean logic

Ch 5 boolean logical in alice
Ch 5  boolean logical in aliceCh 5  boolean logical in alice
Ch 5 boolean logical in aliceChaffey College
 
Ch 5 boolean logical in alice
Ch 5  boolean logical in aliceCh 5  boolean logical in alice
Ch 5 boolean logical in aliceChaffey College
 
Computer and Network Technology (CNT) - Lecture 04
Computer and Network Technology (CNT) - Lecture 04Computer and Network Technology (CNT) - Lecture 04
Computer and Network Technology (CNT) - Lecture 04Susantha Herath
 
Boolean Algebra - R.D.Sivakumar
Boolean Algebra - R.D.SivakumarBoolean Algebra - R.D.Sivakumar
Boolean Algebra - R.D.SivakumarSivakumar R D .
 
Rthch2nts 160709112024
Rthch2nts 160709112024Rthch2nts 160709112024
Rthch2nts 160709112024marangburu42
 
chap 2 : Operators and Assignments (scjp/ocjp)
chap 2 : Operators and Assignments (scjp/ocjp)chap 2 : Operators and Assignments (scjp/ocjp)
chap 2 : Operators and Assignments (scjp/ocjp)It Academy
 
BOOLEAN ALGEBRA AND LOGIC GATE
BOOLEAN ALGEBRA AND LOGIC GATE BOOLEAN ALGEBRA AND LOGIC GATE
BOOLEAN ALGEBRA AND LOGIC GATE Tamim Tanvir
 
Chapter 3:Programming with Java Operators and Strings
Chapter 3:Programming with Java Operators and  StringsChapter 3:Programming with Java Operators and  Strings
Chapter 3:Programming with Java Operators and StringsIt Academy
 
Chapter 3 : Programming with Java Operators and Strings
Chapter 3 : Programming with Java Operators and  StringsChapter 3 : Programming with Java Operators and  Strings
Chapter 3 : Programming with Java Operators and StringsIt Academy
 
OCR GCSE Computing - Binary logic and Truth Tables
OCR GCSE Computing - Binary logic and Truth TablesOCR GCSE Computing - Binary logic and Truth Tables
OCR GCSE Computing - Binary logic and Truth Tablesnorthernkiwi
 
mechanizing logic
mechanizing logicmechanizing logic
mechanizing logicRajendran
 
Boolean Algebra.pdf
Boolean Algebra.pdfBoolean Algebra.pdf
Boolean Algebra.pdfssusere02873
 
Week4_BooleanAlgebra.pptx
Week4_BooleanAlgebra.pptxWeek4_BooleanAlgebra.pptx
Week4_BooleanAlgebra.pptxAbubakrZahid1
 
Logic gates ,flip flop ,registers and
Logic gates ,flip flop ,registers andLogic gates ,flip flop ,registers and
Logic gates ,flip flop ,registers andMuruganandhanD
 
Ref Lec 4- Conditional Statement (1).pptx
Ref Lec 4- Conditional Statement (1).pptxRef Lec 4- Conditional Statement (1).pptx
Ref Lec 4- Conditional Statement (1).pptxBilalAhmad735613
 
An Introduction to Computer Science with Java, Python an.docx
An Introduction to  Computer Science  with Java, Python an.docxAn Introduction to  Computer Science  with Java, Python an.docx
An Introduction to Computer Science with Java, Python an.docxdaniahendric
 

Ähnlich wie Ch 5 boolean logic (20)

Lecture 07.pptx
Lecture 07.pptxLecture 07.pptx
Lecture 07.pptx
 
Ch 5 boolean logical in alice
Ch 5  boolean logical in aliceCh 5  boolean logical in alice
Ch 5 boolean logical in alice
 
Ch 5 boolean logical in alice
Ch 5  boolean logical in aliceCh 5  boolean logical in alice
Ch 5 boolean logical in alice
 
Computer and Network Technology (CNT) - Lecture 04
Computer and Network Technology (CNT) - Lecture 04Computer and Network Technology (CNT) - Lecture 04
Computer and Network Technology (CNT) - Lecture 04
 
Boolean Algebra - R.D.Sivakumar
Boolean Algebra - R.D.SivakumarBoolean Algebra - R.D.Sivakumar
Boolean Algebra - R.D.Sivakumar
 
Rthch2nts 160709112024
Rthch2nts 160709112024Rthch2nts 160709112024
Rthch2nts 160709112024
 
chap 2 : Operators and Assignments (scjp/ocjp)
chap 2 : Operators and Assignments (scjp/ocjp)chap 2 : Operators and Assignments (scjp/ocjp)
chap 2 : Operators and Assignments (scjp/ocjp)
 
BOOLEAN ALGEBRA AND LOGIC GATE
BOOLEAN ALGEBRA AND LOGIC GATE BOOLEAN ALGEBRA AND LOGIC GATE
BOOLEAN ALGEBRA AND LOGIC GATE
 
Chapter 3:Programming with Java Operators and Strings
Chapter 3:Programming with Java Operators and  StringsChapter 3:Programming with Java Operators and  Strings
Chapter 3:Programming with Java Operators and Strings
 
Chapter 3 : Programming with Java Operators and Strings
Chapter 3 : Programming with Java Operators and  StringsChapter 3 : Programming with Java Operators and  Strings
Chapter 3 : Programming with Java Operators and Strings
 
Chapter 3
Chapter 3Chapter 3
Chapter 3
 
OCR GCSE Computing - Binary logic and Truth Tables
OCR GCSE Computing - Binary logic and Truth TablesOCR GCSE Computing - Binary logic and Truth Tables
OCR GCSE Computing - Binary logic and Truth Tables
 
mechanizing logic
mechanizing logicmechanizing logic
mechanizing logic
 
Boolean Algebra.pdf
Boolean Algebra.pdfBoolean Algebra.pdf
Boolean Algebra.pdf
 
Week4_BooleanAlgebra.pptx
Week4_BooleanAlgebra.pptxWeek4_BooleanAlgebra.pptx
Week4_BooleanAlgebra.pptx
 
Chap 4 c++
Chap 4 c++Chap 4 c++
Chap 4 c++
 
Logic gates ,flip flop ,registers and
Logic gates ,flip flop ,registers andLogic gates ,flip flop ,registers and
Logic gates ,flip flop ,registers and
 
Ref Lec 4- Conditional Statement (1).pptx
Ref Lec 4- Conditional Statement (1).pptxRef Lec 4- Conditional Statement (1).pptx
Ref Lec 4- Conditional Statement (1).pptx
 
DE notes
DE notesDE notes
DE notes
 
An Introduction to Computer Science with Java, Python an.docx
An Introduction to  Computer Science  with Java, Python an.docxAn Introduction to  Computer Science  with Java, Python an.docx
An Introduction to Computer Science with Java, Python an.docx
 

Mehr von Chaffey College (20)

Strings Objects Variables
Strings Objects VariablesStrings Objects Variables
Strings Objects Variables
 
Ruby Chapter 2
Ruby Chapter 2Ruby Chapter 2
Ruby Chapter 2
 
Social networks and games
Social networks and gamesSocial networks and games
Social networks and games
 
Serious games
Serious gamesSerious games
Serious games
 
Chapter 05
Chapter 05Chapter 05
Chapter 05
 
Chapter 04
Chapter 04Chapter 04
Chapter 04
 
Chapter 03
Chapter 03Chapter 03
Chapter 03
 
The games factory 2 alien wars
The games factory 2 alien warsThe games factory 2 alien wars
The games factory 2 alien wars
 
Target markets
Target marketsTarget markets
Target markets
 
Ch 8 introduction to data structures
Ch 8 introduction to data structuresCh 8 introduction to data structures
Ch 8 introduction to data structures
 
Ch 8 data structures in alice
Ch 8  data structures in aliceCh 8  data structures in alice
Ch 8 data structures in alice
 
Ch 7 recursion
Ch 7 recursionCh 7 recursion
Ch 7 recursion
 
Intro to gml
Intro to gmlIntro to gml
Intro to gml
 
Power point unit d
Power point unit dPower point unit d
Power point unit d
 
Power point unit c
Power point unit cPower point unit c
Power point unit c
 
Power point unit b
Power point unit bPower point unit b
Power point unit b
 
Power point unit a
Power point unit aPower point unit a
Power point unit a
 
Gamegraphics
GamegraphicsGamegraphics
Gamegraphics
 
Gamesound
GamesoundGamesound
Gamesound
 
Ch 6 text and sound in alice
Ch 6 text and sound in aliceCh 6 text and sound in alice
Ch 6 text and sound in alice
 

Ch 5 boolean logic

  • 2.
  • 3.
  • 4.
  • 5.
  • 6.
  • 7.
  • 8.
  • 9.
  • 10. Boolean Logic in Alice
  • 11. Boolean Functions Functions in Alice that return true or false values are called Boolean functions. Alice has many such built-in functions, such as these two groups of basic Boolean logic functions and comparison functions.
  • 12. They can be found on the world’s functions tab
  • 13. They are used inside branching and looping instruction tiles
  • 14. Boolean Functions The Boolean comparison functions can be used to create simple true or false conditions.
  • 15. Boolean Functions The Boolean logic functions can be used to create compound conditions.
  • 16. Boolean Functions Alice has many other world-level and object-level fuctions that return true or false values, such as the Boolean proximity functions shown here on aliceLiddel’s functions tab in the details area.
  • 17. Boolean Functions They can be used anywhere that a Boolean value is needed, such as in this If/Else command.

Hinweis der Redaktion

  1. The Redo button will reverse the last use of the Undo button, restoring the previous action. The Ctrl-Y keyboard shortcut also can be used in place of the Redo button.
  2. The Redo button will reverse the last use of the Undo button, restoring the previous action. The Ctrl-Y keyboard shortcut also can be used in place of the Redo button.
  3. The Redo button will reverse the last use of the Undo button, restoring the previous action. The Ctrl-Y keyboard shortcut also can be used in place of the Redo button.
  4. The Redo button will reverse the last use of the Undo button, restoring the previous action. The Ctrl-Y keyboard shortcut also can be used in place of the Redo button.
  5. The Redo button will reverse the last use of the Undo button, restoring the previous action. The Ctrl-Y keyboard shortcut also can be used in place of the Redo button.
  6. The Redo button will reverse the last use of the Undo button, restoring the previous action. The Ctrl-Y keyboard shortcut also can be used in place of the Redo button.
  7. The Redo button will reverse the last use of the Undo button, restoring the previous action. The Ctrl-Y keyboard shortcut also can be used in place of the Redo button.