Pseudocode,
also called Program Design Language (PDL) is most widely used to develop
algorithms that represent a logic of a computer program. Pseudocode allows a program
to represent the logic of a program in an English-like manner.
There are
rules to be followed when using Pseudocode. However many versions of Pseudocode
exist and there is no industry standard. The rules described below are adhered
to by most organizations that use Pseudocode.
- The Pseudocode must be language independent. Try to avoid the use of words peculiar to any programming language.
- Indent lines to make the Pseudocode easy to read and understand.
- Punctuation is optional.
- Every IF must be with an ENDIF.
- Every DO WHILE must end with END DO.
- Show keyword
in CAPITAL LETTERS.
e.g. IF marks >= THENDISPLAY "Pass"ELSEDISPLAY "Fail"ENDIF
No comments:
Post a Comment