Writing Maintainable Programs - Key Definitions
Statements - A single instruction or step within a program.
Subroutine – A set of instructions that perform a specific task within a larger program.
Procedure - A subroutine that executes it's statements, then returns control back to the main program.
Function - A subroutine that executes it's statements and returns a single value.
Parameter - Item of data that is given to a procedure or function.
Sequence – A control structure where a set of instructions is executed once in order.
Selection – A control structure where an option of statements is provided and a condition is used to decide which should be executed.
Iteration – A control structure where a group of statements is executed repeatedly. Also called loop or repetition.