Pages

Translate

Tuesday, 24 July 2012

KEYWORDS USED IN PSEUDOCODE AND SYMBOLS USED IN DRAWING A FLOWCHART

When drawing a flowchart,a set of symbols is used with each set of symbols representing an activity to be done.
The picture below shows various symbols and the activity they represent.capture-20120724-072322capture-20120724-072211capture-20120724-072040
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

4 comments:

  1. this site is amazing for describing the keywords.
    but you have to post the psuedo codes of the keywords.
    you are just posting the details of keyworfs.
    For example,
    Keyword Psuedo code
    input READ,OBTAIN,GET

    ReplyDelete
  2. Ui path training
    We at ikxbay are committed to provide industry ready and relevant skill set training to freshers and professionals. Attend 1st 2 live classes for FREE!!

    ReplyDelete
  3. This article gives the light in which we can observe the reality. Bonita Springs Tutoring I like this kind of blog. Thanks for sharing informative information with us

    ReplyDelete