The purpose of this chapter is to develop solution algorithms to eight
programming problems of increasing complexity. All the algorithms
will use a combination of sequence, selection and repetition constructs.
Reading these algorithms should consolidate the groundwork which
has been developed in the previous five chapters.
Each programming problem will be defined, the control structures
required will be determined and a solution algorithm will be devised.
a Defining the problem
It is extremely important that the problem is divided into its three
components ...
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.