CSCI 111 Lessons
Course 2
Lessons 6, 7 and 8 to precede Labs 6, 7 & 8
-
Lesson 6: Decisions, Decisions, Decisions
- Control through decisions
- Syntax: if statements
- flowcharts
- the (optional) use of else
- Comparison Operators
- Lesson 7: Decisions: Logic
- AND, OR and NOT
- truth tables
- precedence
- syntax and compound conditions
- lazy operators
- Nested if
-
Lesson 8: Dangling and Switching
- Dangling Else's
- Object equivalence and = =
- instanceof operator
- switch statements