1620_lecture_6 - ITEC3620 Object-Based Programming Lecture 6 Boolean Algebra Review Branching selects from two paths Two paths two states true

Info iconThis preview shows pages 1–9. Sign up to view the full content.

View Full Document Right Arrow Icon
ITEC3620 Object-Based Programming Lecture 6 Boolean Algebra
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
2 Review Branching selects from two paths Two paths two states true (yes) false (no) Diamond contains a condition A condition is a true - false question
Background image of page 2
3 Relational Operators How to turn integers into true / false ? Greater than > Less than < Equal to == Not equal to != Greater than or equal to >= Less than or equal to <=
Background image of page 3

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
4 Relational Operators II “missing” operators a !> b a not greater than b a <= b a less than or equal to b a !< b a not less than b a >= b a greater or equal to b
Background image of page 4
5 Relational Operators III equivalent operators a > b a greater than b b < a b less than a a >= b a greater or equal to b b <= a b less than or equal to a
Background image of page 5

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
6 Compound Conditions Allow us to put two (or more) sub- conditions into a condition AND OR
Background image of page 6
7 The expression is TRUE if and only if both input variables are TRUE TRUE 1 FALSE 0 TRUE 1 TRUE 1 FALSE 0 FALSE 0 FALSE 0 FALSE 0
Background image of page 7

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
8 OR – || The expression is TRUE if either input variable is TRUE TRUE 1 FALSE 0 TRUE 1 TRUE 1 TRUE 1 FALSE 0 TRUE 1 FALSE 0
Background image of page 8
Image of page 9
This is the end of the preview. Sign up to access the rest of the document.

This note was uploaded on 04/06/2010 for the course INFORMATIO ITEC 1620 taught by Professor Stephenchen during the Winter '10 term at York University.

Page1 / 27

1620_lecture_6 - ITEC3620 Object-Based Programming Lecture 6 Boolean Algebra Review Branching selects from two paths Two paths two states true

This preview shows document pages 1 - 9. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online