Eng101 Lesson20
Eng101 Lesson20
LESSON 20
Steps in Problem Solving
Can a computer solve problems? Definitely not. It is a machine that carries out the
procedures which the programmer gives it. It is the programmer then who solves the
problems. There are a few steps that one has to follow in problem solving:
Step 1. The programmer must define the problem clearly. This means that he or she ha
to determine, in a general way, how to solve the problem. Some problems are easy,
while others take months of study. The programmer should always start by asking: ‘Do I
understand the problem’.
Step 2. The programmer must formulate on algorithm, which is a straightforward
sequence of steps of instructions used to solve the problem. Constructing an algorithm is
the most important part of problem solving and is usually time-consuming. An algorithm
can be described by a flowchart, which may be stated in terms of a sequence of precise
sentences, or a block diagram. The latter is a diagrammatic representation of the
sequence of events to be followed in solving the problem. The relationship between the
events is shown by means of a connecting arrow. A block diagram can show if a process
has to be repeated or if there are alternative routes to be taken.
Step 3. The programmer must translate the algorithm or flowchart into a computer
program. To do so, he or she writes detailed instructions for the computer, using one of
the many computer languages available following the exact sequence of the flowchart
algorithm. The program is usually written on coding sheets which have a specific format
drawn on them.
Step 4. The programmer must then keypunch the program, or give the coding sheets to
the keypunch Operator to do it. The program is either punched on cards or entered into
the computer at a terminal with a visual display unit.
Step 5. The program must then be tested. To do so, the computer operator puts the
deck of cards in the card reader and presses the ‘read’ button. This transfers the
information to the memory of the computer. Next, a printout shows if the program works
or if it has errors (called bugs). If the programmer is using a terminal instead of cards to
enter the instructions it is possible, with the aid of a few commands, to store the program
in the memory of the computer and get a printout.
Step 6. The last step is to add the data to the program and run the job completely. The
computer will then perform the calculations necessary to solve the problem. It will follow
the instructions in the program to the minutest details. Therefore, one can say that the
computer is a robot. It doesn’t think, but simply does what it is told.
Exercises
1. Main idea
Which statement best express the main idea of the text? Why did you eliminate the other
choices?
1. Constructing an algorithm is the basic step in solving a problem.
Primary Processor
Memory
CPU
Control
Input Output
Secondary
memory
A computer has four basic Components: input, processor, memory, and output. The
CPU consists of two parts: the _____________which directs and controls the signals
and commands inside the processor, and the________ unit which does the arithmetic
operations and the decision making operations. While the _____is made up of a _____
a_________, a ________, and a ____________,the__________ is composed of
__________, a _______and________, which compares information and makes
decisions based on the results of the comparisons.
In a Computer internal memory or _______ refers to the storage locations inside the
computer, whereas ______refers to the storage embodied in the peripherals
__________ can be divided into three types: ____________ , ______________
and_______________ .
_______ on the other hand may be grouped as _____________ ( _______) or
_______ ( ________ ).
The __________ devices can be either a _________, a ______, a _______ or a
______________.
These Devices enter in information into the computer. After the processor has operated
on it, the ______ devices display the results of the computations on either a ______ or a
__________, or store them on tape or disk for future use.