How To Write Pseudocode
In writing pseudocode we will refer to singular instructions as statements.
How to write pseudocode. Conditions and loops must be specified well ie. Selection includes if then else and case and for next while endwhile comes under repetition. For pseudocode but some of the most widely recognised are. Start with the statement. How to write good pseudocode.
Pseudocode is not an actual programming language. Use capital words for reserved commands or keywords for example if you are writing if else statements then make sure if and else be in capital letters. So it cannot be compiled into an executable program. Convention to write pseudocode. Following are the basic rules before writing pseudocode.
In a sequential method of writing pseudocode steps are executed one after another top down approach. Writing good pseudocode 1 use a plain text editor. It uses short terms or simple english language syntaxes to write code for programs before it is actually converted into a specific programming language. 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. There is no strict set of standard notations.
Arrange the sequence of tasks and write the pseudocode accordingly. Give proper indentation to show hierarchy and make code understandable. When writing pseudocode we assume that the order of execution of the statements is from top to bottom. Write only one statement per line. Use indentation for block body.
This is an unfinished list of remarks on how to write good pseudocode. Make the program as simple as possible. Indent when you are enclosing. It is possible to write any computer program by using only three basic control structures. Start with the algorithm you are using and phrase it using words that are easily transcribed into computer instructions.