PROGRAMMING FUNDAMENTALS 1.8
TYPES OF DESIGN TOOLS
Design tools are the tools used to develop a program. Three types of design tools are algorithm, pseudocode and flowchart.
1.8.1 Algorithm
A specific set of instructions for carrying out a procedure or solving a problem.
Usually with the requirement that the procedure terminate at some point.
Specific algorithms sometimes also go by the name method, procedure, or technique.
Step by step procedure designed to perform an operation, and which (like a map or flowchart) will lead to the sought result if followed correctly.
Algorithms have a definite beginning and a definite end, and a finite number of steps.
Below is an example of an algorithm and based on the problem statement.
PROBLEM STATEMENT
Step 1 Step 2 Step 3 Step 4
Write an algorithm to add two numbers entered by user.
: Start : Declare variables NUM1, NUM2 and TOTAL : Read values NUM1 and NUM2 : Add num1 and num2 and assign the result to sum TOTAL = NUM1 + NUM2
Step 5 : Display TOTAL Step 6 : Stop
“Algorithm is not the computer code. Algorithm are just the instructions which gives clear idea to write the computer code”
13 | P a g e