Java Games: Flashcards, matching, concentration, and word search.

5.05 Apply Looping Statements

AB
input boxa dialog box that pops up and prompts the user for input.
countervariable to determine the number of times a loop executes.
accumulatorSimilar to a counter, except the value that updates
loopProgrammers can code repeated actions into their programs
iterationEach time the loop runs
PretestTest the condition BEFORE the loop runs. If the condition is false the loop will not execute.
PosttestRun the loop one time then test the condition- if the condition is false the loop will then terminate
DoThe looping structure that evaluates a condition after executing a loop once
The ForA looping structure that executes a set of statements a fixed number of times.
Flag/SentinelA condition used to signify that a loop should stop executing
endless/infinite loopoccurs when the programmer forgets to increment the counter variable.


Director of Computer Science
Effingham College & Career Academy
Rincon, GA

This activity was created by a Quia Web subscriber.
Learn more about Quia
Create your own activities