Baney chakraborty

Followers

Structure of Pseudocodes

 Structure of Pseudocodes
Pseudocode uses some logic patterns as the basic control structures of
structured programming.
These are: Sequence structure
The sequence structure is single steps or actions that follow one another
without interruption. The series of actions does not depend on the
existence of any condition. The pseudocode for the sentence structure is:
Do action1
Do action2.
For example:
Read customer bill
Print customer bill.
Decision structure
The decision structure, where two or more actions can be taken
depending on which satisfies a stated condition. The pseudocode format
for decision structure is :
An advantage of pseudocode is
that system builders can
concentrate on processing logic
independent of syntax
guidelines of any programming
language.
Programming Tools
25
In C language
if (expression)
statement 1
else
statement 2




For example :
if (Income >Tk. 1,000)
income_tax=4*Income;
else
income_tax=0;
Printf(“%f”, income_tax);
In Pascal
IF (condition 1 in true)
Do X
ELSE
DO Y
ENDIF
For example :
IF (Income >Tk. 10,000)
income_tax=4*Income
ELSE
income_tax=0
ENDIF
Share:

No comments:

Post a Comment

Popular Posts

Recent Posts

Sample Text

Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.

Contact me

Software Directory USGeo Web Directory