Structured English:
It is used to provide step by step specification
for any algorithm. It can be used at any desirable level of description &
procedures. It is modified form of English that is used to specify the contents
of the process box in data flow diagram (DFD). It uses English language instead
programming language.
It
uses there basic types of statements to describe a process –
i.
Sequence structure –
It
is a single step or action included in a process. It does not depend on the
existence of any condition.
For
Ex:
To
buy a computer science book we follow the steps –
a. Pick out a
desirable book.
b. Take it to
the sells counter.
c. Pay cash
for the book.
d. Collect
cash receipt.
e. Collect the
book and leave the store.
It is used when two or more actions
can be taken depending on the value of a specific condition. We can describe it
by using following example –
If
Book
found on the store
Then
Take
the book to sales counter
Pay
cash
Take
receipt & book
Leave
store
Else
Do
not take book
Leave
store.
ii.
Iterative structure –
In
various operating condition it is common to find that certain activities are
repeatedly executes while certain conditions exist. It permits analysts to
describe these conditions.
Until the category of student is SC
Do
give the discount to students on fee 50%
Take
next student
End Until
Thanx brooo
ReplyDelete