Loops / Iteration for - Learning Objectives & Essential Knowledge

LEARNING OBJECTIVE		
Represent iterative processes using a for loop.		
Compute statement execution counts and informal run-time comparison of iterative statements.		

ESSENTIAL KNOWLEDGE		
Iteration statements change the flow of control by repeating a set of statements zero or more times until a condition is met.		
If the boolean expression evaluates to false initially, the loop body is not executed at all.		
There are three parts in a for  loop header: the initialization, the boolean  expression, and the increment. The increment statement can also be a decrement statement.		
In a for  loop, the initialization statement is only executed once before the first boolean  expression evaluation. The variable being initialized is referred to as a loop control variable.	 	
In each iteration of a for loop, the increment statement is executed after the entire loop body is executed and before the Boolean expression is evaluated again.		
“Off by one” errors occur when the iteration statement loops one time too many or one time too few.		
The increment operator (++) and decrement operator (−−) are used to add 1 or subtract 1 from the stored value of a variable or an array element. The new value is assigned to the variable or array element.		
A statement execution count indicates the number of times a statement is executed by the program.		
A loop is an infinite loop when the boolean expression always evaluates to true.		
Integer values in Java are represented by values of type int, which are stored using a finite amount (4 bytes) of memory.		
If an expression would evaluate to an int value outside of the allowed range, an integer overflow occurs. This could result in an incorrect value within the allowed range.		
There are standard algorithms to:
•	Identify if an integer is or is not evenly divisible by another integer
•	Identify the individual digits in an integer
•	Determine the frequency with which a specific criterion is met		
There are standard algorithms to:
•	Determine a minimum or maximum value
•	Compute a sum, average, or mode