Professional Documents
Culture Documents
Using their algorithmic thinking skills, the software designers or programmers analyse the problem
and identify the logical steps that need to be followed to reach a solution. Once the steps are identified,
the need is to write down these steps along with the required input and desired output. There are two
common methods of representing an algorithm —flowchart and pseudocode.
FLOW CHART:
A Flow chart is a Graphical representation of an Algorithm. Flow charts are drawn using
certain special purpose symbols such as Rectangles, Diamonds, Ovals and small circles. These
symbols are connected by arrows called flow lines.
(or)
The diagrammatic representation of way to solve the given problem is called flow chart.
Uses of flow charts: The following are the basic uses of flow charts.
.
Pseudocode
A pseudocode (pronounced Soo-doh-kohd) is another way of representing an algorithm. It is
considered as a non-formal language that helps programmers to write algorithm. It is a detailed
description of instructions that a computer must follow in a particular order. It is intended for human
reading and cannot be executed directly by the computer. No specific standard for writing a
pseudocode exists. The word “pseudo” means “not real,” so “pseudocode” means “not real code”.
Following are some of the frequently used keywords while writing pseudocode:
• INPUT
• COMPUTE
• INCREMENT
• DECREMENT
• IF/ELSE
• WHILE
• TRUE/FALSE
Write an algorithm to display the sum of two numbers entered by user, using both pseudocode and
flowchart.
input num1
input num2
PRINT Result
Program development steps:
In this step, the program can be written into a file through text editor. The file is saved on the disk with
and extension. Corrections to the program at later stages are done to these editors. Once the program
has written, it requires to be translated into machine language.
The code in a source file must be translated into machine language. This is the job of the
compiler. The c compiler is two separate programs-preprocessor and the translator.
The preprocessor reads the source code by scanning preprocessor commands and replacing
with special code libraries by finally preparing it for the translator.
After the preprocessor has prepared the code for compilation, the translator does the actual
work of converting the program into machine language.
iii) Linking the program:
The linker links all the files and functions with the object code under execution.
Ex: printf-the linker links the user programs object with the object of the printf
The execution object code is loaded into the memory and the program execution begins. It encounters
error to till the execution phase, Even though compilation phase is successful. These errors may be
logical errors.
We can use flowchart or pseudo code to complete the design of your program.