
Chapter 5
Algorithms and Programs
5.1 Introduction
The purpose of computer problem solving is to design a solution to a problem;
an algorithm is designed and implemented in a computer program. This program is
executed or run with the appropriate input data to get the desired results.
This chapter presents concepts and explanations of design structures, which are
used in designing an algorithm. A complete case study is developed.
5.2 Problem Solving
The design of the solution to a problem is described by an algorithm, which is
a sequence of steps that need to be carried out to achieve the solution to a problem.
The implementation of an algorithm and the ...