




Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!





Flow chart is defined as graphical representation of the logic for problem solving. The purpose of flowchart is making the logic of the program clear in a visual representation.
It is easier to understand for the programmer or non programmer to understand the general working of the program, because it is not based on any programming language. It gives us the sketch of the program before actual coding. It is not a machine readable Pseudo code can’t be compiled and executed. There is no standard syntax for pseudo code.
Write one statement per line Capitalize initial keyword Indent to hierarchy End multiline structure Keep statements language independent
The following gives common keywords used in pseudocodes.
IF (condition)THEN statement ... ELSE statement ... ENDIF Example: Greates of two numbers BEGIN READ a,b IF (a>b) THEN DISPLAY a is greater ELSE DISPLAY b is greater END IF END
INITIALIZE i= WHILE(i<=n) DO PRINT i i=i+ ENDWHILE END
Pseudo is independent of any language; it can be used by most programmers. It is easy to translate pseudo code into a programming language. It can be easily modified as compared to flowchart. Converting a pseudo code to programming language is very easy as comparedwith converting a flowchart to programming language.
It does not provide visual representation of the program’s logic. There are no accepted standards for writing pseudo codes. It cannot be compiled nor executed. For a beginner, It is more difficult to follow the logic or write pseudo code ascompared to flowchart. Example:
Addition of two numbers: BEGIN GET a,b ADD c=a+b PRINT c END