Part 0: Preparation
- Conditions vs actions
- Use of Flowcharts
Part 1: Relational and logical operators, conditional expressions
- Understand relational operators and logical/conditional operators
- Construct conditional/boolean expressions using relational operators and logical/conditional operators
- Evaluate the outcome of conditional expressions
Part 2: Decision-making statements
- Two types: If/else statement and switch statement
- if/else statements
- Understand if/else statements
- if, if/else, if/else if/else...
- From code to result: Evaluate the result of if/else statements
- From result to code: Translate a decision-making problem into flowcharts and then into if/else statements
- Differentiate between the need for binary branching (if-else) and/or multiple branching (if-else if-else) in programming problem solving scenarios
- Understand switch statements
- Data type supported: char, int, String
- Why break?
- From code to result: Evaluate the result of switch statements
- From result to code: Translate a decision-making problem into switch statements
- If/else vs switch, when to use what?
Past topics: Define methods and call methods with arguments
Last modified: Tuesday, 25 October 2016, 9:23 PM