WEEK5 - Week5 ClicktoeditMastersubtitlestyle DesignMaking...

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

View Full Document Right Arrow Icon
Click to edit Master subtitle style Week 5 Design Making Flow Control
Background image of page 1

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

View Full DocumentRight Arrow Icon
Choice and decision-making If criterion 1 then action 1 but if criterion 2 then action 2 but if criterion 3 then action 3 otherwise action 4
Background image of page 2
IF CONSTRUCT if ( criterion_1 ) then action_1 else if ( criterion_2 ) then action_2 else if ( criterion_3 ) then action_3 else action_4 end if
Background image of page 3

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

View Full DocumentRight Arrow Icon
Logical values o True and false Logical expressions Is b>c  true or false? Is a==b  true or false?
Background image of page 4
Logical expressions o Logical variables + logical constants +  logical operators
Background image of page 5

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

View Full DocumentRight Arrow Icon
logical   variables o logical :: var_1, var_2, … o Logical valued functions function name(arg1, …) result logical_variable logical :: logical_variable
Background image of page 6
Logical operators L1 L2 L1 .or. L2 L1 .and. L2 true true true true true false true false false true true false false false false false L1 .not. L1 true false false true
Background image of page 7

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

View Full DocumentRight Arrow Icon
Logical operators L1 L2 L1 .eqv. L2 L1 .neqv. L2 true true true false true false false true false true false true false false true false
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 document was uploaded on 03/13/2011.

Page1 / 18

WEEK5 - Week5 ClicktoeditMastersubtitlestyle DesignMaking...

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