Investigate how control structures affect program flow.
| (a) |
Discuss the necessity of control structures in programming. |
| (b) |
Utilize decistion-making structures (e.g., IF, IF-ELSE and SWITCH) to control the order in which instructions execute. |
| (c) |
Utilize WHILE and FOR loops to control program flow and to solve problems with an indefinite or definite number of iterations. |
| (d) |
Determine which type of looping structure allows for the most elegant solution to a problem. |
| (e) |
Solve problems utilizing nested loops. |
| (f) |
Investigate the role of logical operators (e.g., AND (&&), OR (||) and NOT(!)) in compound conditional statements. |
| (g) |
Discuss operator precedence and how to use parentheses to control the evaluation of Boolean expressions. |
| (h) |
Explain how to simplify code using control structures and operators. |
