Tino APCS

Control Structures

Lesson Overview: Any sort of complex program must have some ability to control flow. Without this control, programs become limited to one basic job each time the program is run. The most basic of these control structures is the if statement, followed by the if-else, and then the switch statement.

Lesson Vocab
ALGORITHM

A systematic method for solving a problem.

BOOLEAN IDENTIFIER

A variable name of type boolean.

COMPOUND STATEMENT

Using multiple single line statements within one structure block.

CONDITIONAL OPERATOR

An alternate way of coding an if-else statement using three operands.

CONTROL STRUCTURE

A way to control how many times sections of code are executed.

IF-ELSE

A two way selection structure.

ITERATION

A control structure where code is repeated until a certain condition is met.

LOGICAL OPERATOR

Operators that determine if certain conditions are true or false.

PSEUDOCODE

A watered-down representation of actual code, written by programmers to design and visualize classes and programs.

RELATIONAL OPERATOR

Operators which compare two values.

STEPWISE REFINEMENT

The process of breaking a problem down into progressively smaller pieces.

STRUCTURED PROGRAMMING

A method of programming which follows rules about selection, sequence, and iteration control structures.