Week 3 Assigned Reading

Week 3 Assigned Reading - The structure is represented by...

Info iconThis preview shows page 1. Sign up to view the full content.

View Full Document Right Arrow Icon
Chapter 4 Selections Control Structures Objectives To elaborate on the uses of simple selection, multiple selection, and nested selection in algorithms To introduce the case construction in pseudo code To develop algorithms using variations of the selection control structure 4.1 The selection control structure Represents the decision-making abilities of a computer between two or more actions depending on whether a condition is true or false The condition of an IF statement is based on the comparison of two items and expressed with mathical symbols: < less than. > greater than, = equal to, >= greater than or equal to, <= less than or equal to, <> not equal to 1. SIMPLE SELECTION (simple IF Statement) occurs when a choice between two alternates paths depending on whether the condition is true or false
Background image of page 1
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: The structure is represented by IF, THEN, ELSE, and ENDIF 2. SIMPLE SELECTION WILL NULL FALSE BRANCH (null false statement) is the null ELSE structure variation of the simple IF structure which is used when a task is performed only when a particular condition is true. If the process is false, then no processing will take place and the IF statement will be bypassed 3. COMBINED SELECTION (combined IF statement) is a statement which contains multiple conditions, each connected with the logical operators AND or OR. If AND is used, to combine conditions, both conditions must be true for the combined statement to be true. If the connector OR is used to combine any two connector...
View Full Document

This note was uploaded on 11/26/2010 for the course IFS Randel taught by Professor Prg210 during the Spring '10 term at University of Phoenix.

Ask a homework question - tutors are online