The picture below shows various symbols and the activity they represent.
They are other symbols also used in flowchart but rarely,these are the major ones.
Every programming language has its vocabulary and syntax used when writing in that programming language,the table below shows the keywords that are used when writing a Pseudocode .
Keywords | Usage |
//
| This represents a comment entry that is used to provide additional information about the steps in the pseudocode |
begin……end
| The first statement in a pseudocode is a ‘begin’ and the last an ‘end’.The steps of the pseudocode comes between the begin….end block. |
accept
| This simply accepts an input.for example to accept the number 10,the following statement can be used: accept 10 |
compute
| This is used to calculate the result of an expression,for example to calculate the product of two numbers: compute product as 5 * 5 |
display
| it is used to display an output,for example to display the number ‘25 ‘: display 25 |
if…..else
| This is used when,depending on on a condition,different actions may have to be taken. |
repeat…..until
| This is an iterative construct with a testing statement at the bottom of the iterative set of statements. |
while
| This is an iterative construct with a testing statement at the top of the iterative set of statements |
for( ; ; )
| This is an iterative construct in which a variable is initialized,incremented and an expression is tested in the same line |