lecturenotes9_13 - Click to edit Master subtitle style...

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

View Full Document Right Arrow Icon

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

View Full DocumentRight Arrow Icon

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

View Full DocumentRight Arrow Icon

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

View Full DocumentRight Arrow Icon
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: Click to edit Master subtitle style 10/5/09 Logical and Relational Operators Monday September 15, 2008 10/5/09 Todays Topics Relational operators Logical operators Operator precedence 10/5/09 Criteria Evaluation in Programming All but simplest programs require criteria evaluation (decision making) Four main types of conditional execution structures are 1. IF/ELSE 2. SWITCH/CASE 3. FOR Loop 4. WHILE Loop 10/5/09 IF/ELSE Structures Inner commands are only executed if the particular criteria is met. Setting up the criteria requires the use of relational and logical operators Relational operators: how items relate Logical operators: and, or, true, false 10/5/09 Relational Operators The statement A is equal to B is the comparison of arguments A and B, with the relational operator is equal to A and B do not have to be simple scalars, and can be relational expressions on their own Result of a relational operations are true or false 10/5/09...
View Full Document

This note was uploaded on 02/25/2009 for the course BEE 1510 taught by Professor Staff during the Fall '05 term at Cornell University (Engineering School).

Page1 / 14

lecturenotes9_13 - Click to edit Master subtitle style...

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

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