The elements of arrays are often used as accumulators of data, to be
written to a report. Writing out the contents of an array can be
represented by
a
simple DOWHILE loop.
In the pseudocode algorithm, the name of the array is 'array
7
, and
the subscript is 'index'. The number of elements in the array is
represented by 'max-num-elements'.
Write-Values-of-Array
set index to 1
DOWHILE index < = max-num-elements
write array (index)
index = index + 1
ENDDO
END
9.7 Chapter
summary
The aim of this chapter was to develop general pseudocode algorithms
to five common business applications ...
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.