SE Practical3
SE Practical3
SE Practical3
AIM: Prepare the following components of Data Flow Model: Data Dictionary, Data Flow Diagram
and Structure Chart
Objectives:
• Process: Processes are represented by circle. The name of the process is written into the circle.
The name of the process is usually given in such a way that represents the functionality of the
process. More detailed functionalities can be shown in the next Level if it is required. Usually
it is better to keep the number of processes less than 7. If we see that the number of processes
becomes more than 7 then we should combine some the processes to a single one to reduce the
number of processes and further decompose it to the next level .
• External entity: External entities are only appear in context diagram. External entities are
represented by a rectangle and the name of the external entity is written into the shape. These
send data to be processed and again receive the processed data.
• Data store: Data stares are represented by a left-right open rectangle. Name of the data store
is written in between two horizontal lines of the open rectangle. Data stores are used as
repositories from which data can be flown in or flown out to or from a process.
• Data flow: Data flows are shown as a directed edge between two components of a Data Flow
Diagram. Data can flow from external entity to process, data store to process, in between two
processes and vice-versa.
.
• Background / Preparation:
Levels in Data Flow Diagrams (DFD)
The DFD may be used to perform a system or software at any level of abstraction.
Infact, DFDs may be partitioned into levels that represent increasing information flow
and functional detail. Levels in DFD are numbered 0, 1, 2 or beyond. Here, we will see
primarily three levels in the data flow diagram, which are: 0-level DFD, 1-level DFD,
and 2-level DFD.
0-level DFDM
It is also known as fundamental system model, or context diagram represents the entire
software requirement as a single bubble with input and output data denoted by incoming
and outgoing arrows. Then the system is decomposed and described as a DFD with
multiple bubbles. Parts of the system represented by each of these bubbles are then
decomposed and documented as more and more detailed DFDs. This process may be
repeated at as many levels as necessary until the program at hand is well understood. It
is essential to preserve the number of inputs and outputs between levels, this concept is
called leveling by DeMacro. Thus, if bubble "A" has two inputs x1 and x2 and one
output y, then the expanded DFD, that represents "A" should have exactly two external
inputs and one external output as shown in fig:
The Level-0 DFD, also called context diagram of the result management system is
shown in fig. As the bubbles are decomposed into less and less abstract bubbles, the
corresponding data flow may also be needed to be decomposed.
1-level DFD
2-Level DFD
2-level DFD goes one process deeper into parts of 1-level DFD. It can be used to project or
record the specific/necessary detail about the system's functioning.
• Procedure / Steps:
Context DFD
The figure below depicts a context DFD for the "Collabe Hub" which is designed to manage
events. It provides a simplified overview of the system's interactions with external entities.
Level 1 DFD
The figure below shows the level 1 DFD, which is the decomposition (i.e. break down) of the Collabe Hub
process that is shown in the context DFD. Read through the diagram and then we will introduce some of the
key concepts based on this diagram.
Quiz:
ANS:
2) What is DFD? Give advantage and disadvantages of DFD.
ANS: DFD stands for "Data Flow Diagram." It is a visual representation and modeling
technique used in software engineering and systems analysis to depict the flow of data within
a system.
Advantages Disadvantages
Communication: Effective tool for conveying Lack of Timing Information: Does not
system processes to stakeholders. represent timing or sequence of activities.
Focus on Data: Emphasizes data handling, Limited to Data Flow: Focuses solely on data
aiding in efficient data management. flow, omitting other system aspects.
• Level 1 DFD
• Processes
• Data Flows
• Data Stores
• External Entities
Rubrics 1 2 3 4 5 Total
Correct answer to
all questions
Signature of Faculty: