0% found this document useful (0 votes)
152 views39 pages

Unit 2 Analysis Tools

The document describes different tools used in structured analysis including data flow diagrams, data dictionaries, decision trees and structured English. It provides details on each tool including their purpose, components, advantages and disadvantages.

Uploaded by

aaa
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
152 views39 pages

Unit 2 Analysis Tools

The document describes different tools used in structured analysis including data flow diagrams, data dictionaries, decision trees and structured English. It provides details on each tool including their purpose, components, advantages and disadvantages.

Uploaded by

aaa
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 39

Tools Of Structured Analysis

Data Flow Data Decision Decision Structured


Diagram Dictionary Table Tree English
(DFD)
1
There are five tools or technique of
structured analysis. These tools are:-
1. Data Flow Diagram (DFD)

2. Data Dictionary (DD)

3. Decision Tables

4. Decision Tree

5. Structured English
2
1. Data Flow Diagram (DFD):-
Data Flow Diagrams are widely used
graphic tools for describing the movement of
data within or outside the system.
DFD consist of a series of bubbles joined by
lines, it is also known as a ‘Bubble Chart’.
DFD was first developed by “Larry
Constantine” as a way of expressing system
requirements in a graphical form. This led to
modular design. There may be a single DFD
for entire system or it may be exploded into
various levels, namely Level’0, level 1, level 2,
3
level 3.
Context level contains a single process and
it shows an overall view of the system.
Further we can explore DFD accordingly.
DFD quickly convey to both the software
developer and the user, how the current
system is working and how the proposed
system will work. The main advantage of
DFD is that they are easily understood by
the users, and hence user can suggest
modifications in the proposed system.
4
Data modeling Notation

External Entity

Data Flow

Process

Data store
5
There are four symbols:-
1. Square- Square defines a source or
destination of system data.
2. Arrow- An arrow identifies data flow in
motion. It is as a pipeline through which
information flows.
3. Circle- Circle represents the process that
transforms incoming data flow into
outgoing data flow.
4. Open Rectangle- Open rectangle shows the
data temporarily to store. 6
There are two types of DFDs-
Physical and Logical DFD
• Physical DFD:- The Data Flow Diagram
which represent the model of the current
system, are known as physical DFD. These
DFDs are constructed for the existing system
• Logical DFD:- The Data Flow Diagrams
which represent the model of the proposed
system, are known as logical DFD, these
DFDs are constructed for the system which
user is going to construct. 7
Making a DFD
Several rules are used in making DFD:
1. Arrow should not cross each other.
2. Squares, circles, and files must bear names.
3. No two data flows, squares, or Circles can have
the same name.
4. Choose meaningful names for data flows,
processes, and data stores.
5. Control Information such as record counts,
passwords, and validations requirements are not
relevant to a data flow diagram.
6. The direction of flows should be from top to
bottom and from left to right. 8
Advantages of data flow diagram:
1. A simple graphical technique which is
easy to understand.
2. It helps in defining the boundaries of
the system.
3. It is useful for communicating current
system knowledge to the users.
4. It is used as the part of system
documentation file.
5. It explains the logic behind the data
flow within the system. 9
Disadvantages of data flow diagram:
1. Data flow diagram undergoes lot of alteration
before going to users, so makes the process
little slow.
2. Physical consideration are left out.
3. It make the programmers little confusing
towards the system.
4. DFDs for large systems can become
cumbersome, difficult to translate and read, and
be time consuming in their construction.
5. Data flow can become confusing to
programmers, but DFDs are useless without the
prerequisite detail
10
0’ Level DFD or context level DFD

Library
User Mgmt.
system

Person who gives


information

11
Q.1 Make a DFD for MCD software.

Employee MCD

0’ Level DFD or context level DFD

12
1’ Level DFD or context level DFD

User Modify MCD.dat

Add
Book.dat

13
Data Dictionary
Data dictionary is storehouse of data giving
information about data. It is a list of terms
and their definition for all data items and data
files of a system.
Data dictionary is a valuable reference in any
organization.

“A Data Dictionary contains descriptions and


definitions concerning the data structure,
data elements, their interrelationships and
other characteristics of a system’’
14
Data Items in Data dictionary:-
There are tree classes of data items:-
a. Data element- Data element is the smallest unit of data
which can not be meaningfully decomposed further. ex.:
employee no, name, quantity, price etc.

a. Data Structure- A group of data elements forms a data


structure. Ex: data structure for employee consist of
group of data elements such as Emp_code, Emp_name,
address, ph_no etc.
a. Data Flows and Data Stores- Data Flow are data
structures in motion whereas data stores are data
structures at rest. Data stores may be files, database etc.
15
Data element

Data Structure

Data Flow Data Stores

Hierarchy of Data
16
It is suggested that you include:-
• The name of the item.
• Description or purpose.
• Data type, (alphabetical, numeric, decimal).
• Data length (number of characters including
spaces, or decimal points).
• Mandatory characters.
• Display (0 or 2 decimal places).
• Examples and often statements about where
each data element appears within the data
modeling. 17
Advantages of Data Dictionary:-
• A data dictionary has many advantages. The
most obvious is documentation, it is a
valuables reference in any organization.
• It also control information maintained for
each data element is cross-referenced in the
data dictionary.
• It assists in communication meaning of
different elements, terms and procedures.
• It helps the analyst to record the details of
each element and data structure. 18
Example of Data Dictionary

Student
Attribute Data type Minimum Maximum Description
Length Length

Stores
Name Char 5 20 student’s name

Roll no Numeric 1 3 Stores roll no


Alpha
Address 5 30 Stores address
numeric

Phone no. Numeric 8 10 Stores ph. No.

19
Process Descriptions
This is after defining all the data elements
and data structures in the data dictionary, the
system analyst begins to describe the
processes. Process descriptions are the tools
for documenting the procedure and
describing the system logic.
The commonly used process description
tools are:
1. Structured English
2. Decision Tree
3. Decision Table 20
Decision Tree
Decision Trees are useful tools for helping
you to choose between several course of
action. they provide a highly effective
structure within which you can explore
options, and investigate the possible
outcomes of choosing those options.
In other words:

21
A decision tree is one of the most systematic
tools of decision-making theory and
practice. Such trees are particularly helpful
in situations of complex multistage decision
problems. For example, when you need to
plan and organize a sequence of decisions
and take into account how the choices made
at earlier stages and the outcomes of
possible external events determine the types
of decisions and events at later stages of that
sequence. 22
Advantage of Decision tree:-
a. Decision tree express the logic of IF-THEN-
ELSE in pictorial form, showing the conditions
and Actions.
b. Decision tree is useful when an action is
dependent on nested decision.
c. It describe conditions and actions and it forces
system analyst to identify the actual decision
that must be made.
d. Decision Trees are used to verify logic and
problems that involves a few complex decisions
and limited number of actions. 23
Disadvantages of Decision Trees:-
a. A decision tree for a very complex system
with many sequence of steps and
combinations of conditions will be
unmanageable.
b. A large number of branches with may paths
through them will confuse rather than help
in analysis. The analyst may not be able to
determine which business policies to adopt.
c. Lack of information provided in this format.
24
Q.1Draw a Decision tree for the policy followed by
a company in giving discounts to its customers as
described:
a. If the transaction is on credit, and the
customers credit record is good, then accept
his order but do not give any discount on
credit. If the customers credit record is not
good, then do not accept the order.
b. If the transaction is on cash, and the sale
amount is more than Rs.1000, then give a
discount of 20%.
25
c. If the transaction is on cash, and the
sale amount is more than Rs. 500 but
less than 1000, then give a discount of
10%.
d. No discount is to be given if the
transaction is cash and it is less than Rs.
500. but accept the order.

26
Conditions Actions

Bad credit
Reject order
record

On Credit

Good credit
Accept order
record
Nature of
Transaction 20%
Amount>1000 Discount

10%
Cash Amount>500 Discount

Amount<500 0% Discount
27
Structure English
Structured English uses narrative statements to
describe a procedure. It resembles a
programming language, so programmers find it
easy to understand. It uses three basic types of
statements:
(a) Sequential structures: They include a set of
instructions that are carried after another and do
not depend on any condition.
Ex: Accept Employee Code
Accept Employee Name
Accept Employee Age 28
2. Decision Structures: They include one or more
sets of instructions that are carried out depending
upon one or more conditions. They generally use
the phrase THEN ELSE to carry out different
actions.
Ex:
if(age>60)
print(“senior citizen”)
else if(“age<40”)
print(“matured”)

29
3. Iteration Structure: They include a set of
instructions that are repeated particular condition
occurs. They generally use the phase DO
WHILE…END DO to repeat a set of instructions
Ex:
int i=1
Do while(i<=10)
print(“i”)
i++
End Do 30
Sequential Decision Iteration
Structure Structure structure

Accept employee If Basic_Pay <=1000 Ans =“Y”


code HRA=500 Do while Ans =“Y”
Accept employee else Accept employee
name If code
Accept other details Basic_Pay<=3000 Accept employee
Store Data HRA=1000 name
else Accept other
HRA = 1500 details
endif Display “Continue
(Y/N)?”
Endif
Accept Ans enddo
31
Compute-discount using structured english
IF order is from bookstore
and-IF order is for 6 copies or more
THEN: Discount is 25%
ELSE: order is for fewer than 6 copies
no discount is allowed
ELSE:IF order is from libraries or individual customers
and-IF order is for 50 copies or more books
discount is 15%
ELSE IF order is for 20 to 49 books
discount is 10%
ELSE IF order is for 6 to 19 books
discount is 5%
ELSE order is less than 6 books
so: no discount is allowed
32
Decision Table
A major drawback of a Decision Tree is the lack of
information in its format to tell us what other
combinations of condition to test. This is where the
decision table is useful.
A decision table is a table that represents
relationship between condition and actions. It
consist of four part-
• Condition stub
• Condition entry
• Action stub
• Action entry. 33
1 2 3 4 5 6

Customer is bookstore? Y Y N N N N
Order size 6 books or more Y N N N N N
Customer librarian/Individual Y Y Y Y
Order size 50 books or more Y N N N
Order size 20-49 books? Y N N
Order size 6-19 books? Y N
Allow 25% discount X
Allow 15% discount X
Allow 10% discount X
Allow 5% discount X
No discount allowed X X
34
Advantages of Decision Tables:
1. They are easier to draw.
2. They provide a compact representation of the
decision making process. A small table can
replace several pages of flowcharts.
3. Decision tables are best suited for calculating
discounts and commission.
4. Decision table in concerned with the logic of
decision rules and is problem oriented.
5. The structure of decision table promotes a
logically complete and consistent problem
definition. 35
The different steps to make a Decision Table are:

1. Write different ‘IF’ conditions stub part and


different ‘THEN’ actions in action stub part.
2. Divide the condition entry and action entry part
into as many columns as there are actions and
number these columns.
3. Put ‘Y’ or ‘N’ in each column of condition entry
part, depending upon the action taken on validity
of one or more condition.
4. Put ‘X’ in the appropriate column of action entry
part, depending upon the action taken on validity
of one or more condition.
36
Pros and Cons of each Tool
There are benefits and limitations of each tool, we come
to the following conclusion:

• The primary strength of the DFD is its ability to


represent data flows. It may be used at high or low
levels of analysis, provide good system
documentation.
• The data dictionary helps the analyst simplify the
structure for meeting the requirements of the
system. It may be used at high or low level but it
does not provide functional details.
37
3. Structured English is the best used
when the problem that involve a few
complex decisions resulting in a
limited number of action.
4. Decision Tree and Decision Tables are
best suited for dealing with complex
branching routines such as calculating
discounts or sales commissions.

38
39

You might also like