ChemistryWiki | Lecture 3 2 | RecentChanges | Preferences
- Sequence, selection, repetition (looping)
- If statement, cause me to do something if statement is true or not
- If ( )
- else if statement is false
- need { } so that everything in block is done if it is true
- If line after if statement will be done if statement is true
- Single "=" is , to make equal "==" so a==0
- Sequential if else statement, action will be take after each else
- Nested if statement, all statement must be correct to get to action
- Switch statement replaced nested if else statements
- HW
- Pg131 #1, 2 (just to dollar)call program C4PE2, 5(nested if else set-up), 7(work in class), 12, 13
- Read Chapter 5