click below
click below
Normal Size Small Size show me how
2.1.4
| Question | Answer |
|---|---|
| Thinking Logically | Lots of decisions are made when developing a program, and they are often represented by Boolean expressions with a true or false answer that may decide which way the code will branch (selection statements), or may cause code to exit a loop (iteration) |
| Steps of thinking logically | 1. Go through/write out program to spot decision points a. Decide what decision (if/else, loop) 2. See if it is a logical condition 3. Walk through code to see how decision result effects it |
| Logical conditions | often are boolean expressions based on a condition (e.g. weather, amount of iterations) The logical decision made will affect the result of the program |