2 some processing for each record within the loop; and
3 some final processing once the loop has been exited.
Expressed as a solution algorithm using the DOWHILE construct
this basic pattern was developed as a general solution:
Process-Sequential-File
Do Initial Processing
Read first record
DOWHILE more records exist
Process this record
Read next record
ENDDO
Do Final Processing
END
5.5 Programming problems
Construct a solution algorithm for the following programming
problems. Your solution should contain:
■ a defining diagram
■ a pseudocode algorithm or N-S diagram ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month, and much more.