How To Write Pseudocode
For pseudocode but some of the most widely recognised are.
How to write pseudocode. Begun and ended explicity as in given pseudocode examples. Write what you mean not how to program it. Convention to write pseudocode. When writing pseudocode we assume that the order of execution of the statements is from top to bottom. A statement is defined as an instruction that directs the computer to perform a specific action.
Arrange the sequence of tasks and write the pseudocode accordingly. There is no strict set of standard notations. Indent when you are enclosing. This is an unfinished list of remarks on how to write good pseudocode. Pseudocode is a loosely defined way of transmitting the concept of an algorithm from a writer to a reader.
Writing good pseudocode 1 use a plain text editor. Start with the algorithm you are using and phrase it using words that are easily transcribed into computer instructions. Write only one statement per line. Conditions and loops must be specified well ie. Pseudocode is not an actual programming language.
Write a pseudocode to find the largest of two numbers. 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. Start with the statement. Writing pseudocode is pretty easy actually.
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. The main goal of a pseudo code is to explain what exactly each line of a program should do hence making the code construction phase easier for the programmer. Following are the basic rules before writing 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. So it cannot be compiled into an executable program.