PSEUDOCODE

 

Pseudocode-Is an artificial and informal language that helps programmers develop algorithms. Pseudocode is “text-based”. It is used as a detailed yet understandable step-by-step plan or blueprint from which a program can be written. It is like a rough draft of a program or an algorithm before it is implemented in a programming language. It can also be referred to as 'false code' or 'representation of code'.

Pseudocode uses the key word "Begin" to indicate the start of an algorithm and "End" to indicate the finish of an algorithm

Advantages of Pseudocode

There are several advantages inherent to pseudocode and its use. Some of these include:

  • Pseudocode is a simple way to represent an algorithm or program.
  • It is written easily in a word processing application and easily modified.
  • Pseudocode is easy to understand and can be written by anyone.
  • Pseudocode can be used with various structured programming languages.

Disadvantages of Pseudocode

The pseudocode also has some disadvantages that should be considered. Some of these disadvantages include:

  • Pseudocode is not a programming language, so it cannot be executed by a computer.
  • Pseudocode can be ambiguous and sometimes open to interpretation.
  • Pseudocode can be difficult to read if not written in a clear and consistent manner.

Sample program using Pseudocode

  • Begin
  • Set number to 1
  • Enter secrete number
  • If number equals 1
  • Print “Bravo”
  • Else
  • Enter number again
  • End

Comments

Popular posts from this blog

ALGORITHM