How To Write Pseudocode
It can be tempting to use a word processor e g microsoft word or a similar program to create a rich text document but pseudocode needs as little formatting as possible to keep it simple.
How to write pseudocode. Arrange the sequence of tasks and write the pseudocode accordingly. Central is the efficiency of this communication not the interpretability of the code by an automated program e g a. Give proper indentation to show hierarchy and make code understandable. In a sequential method of writing pseudocode steps are executed one after another top down approach. Begun and ended explicity as in given pseudocode examples.
A statement is defined as an instruction that directs the computer to perform a specific action. It uses short terms or simple english language syntaxes to write code for programs before it is actually converted into a specific programming language. When writing pseudocode we assume that the order of execution of the statements is from top to bottom. Selection includes if then else and case and for next while endwhile comes under repetition. Use indentation for block body.
Convention to write pseudocode. This is an unfinished list of remarks on how to write good pseudocode. Conditions and loops must be specified well ie. It is possible to write any computer program by using only three basic control structures. Of a pseudo code which establishes the main goal or the aim.
In writing pseudocode we will refer to singular instructions as statements. Pseudocode is not an actual programming language. Pseudocode is a loosely defined way of transmitting the concept of an algorithm from a writer to a reader. Write what you mean not how to program it. So it cannot be compiled into an executable program.
Writing good pseudocode 1 use a plain text editor. Make the program as simple as possible. Input indicates a user will be inputting something. Start with the statement. For pseudocode but some of the most widely recognised are.