Java Reference
In-Depth Information
a loop inside which some operations are executed repeatedly until specified conditions are satisfied.
This flowchart shows the input, process, and output pattern; it also uses a decision symbol that shows
where the decision is made to continue or stop the looping process.
Start
initialization
Initialize
Input
First
Record
wrap-up
Determine
Final
Results
Output
Final
Results
Yes
Terminate
Looping
End
No
Process
Record
process
Output
Input
Next
Record
FIGURE A-2
Figure A-2 contains three braces that show the initialization, process, and wrap-up operations. For
example, setting the program counters to 0 may represent an initialization operation and displaying
the values of counters may represent a wrap-up operation.
Like the straight-line flowchart, a flowchart with looping may not have all the symbols shown in
Figure A-2, or it may have many more symbols. For example, the process symbol within the loop in
Figure A-2, when applied to a particular problem, may expand to include branching forward to bypass
a process or backward to redo a process. It is also possible that, through the use of decision symbols,
the process symbol in Figure A-2 could be expanded to include several loops, some of which might be
independent from each other and some of which might be within other loops.
 
Search WWH ::




Custom Search