PROGRAM-2
2.1 OBJECTIVE: Draw DFD and ER Diagram for the Digital Queue Management
System (DQMS)
2.2 THEORY:
A Data Flow Diagram (DFD) is a graphical representation of the flow of data within a
system. It shows how data enters the system, how it is processed, and how it leaves the
system. DFDs are widely used in system analysis and design to model the functional aspects
of a system in a clear and understandable way.
DFDs help in understanding the logical flow of information without focusing on technical
details like programming languages or hardware.
Purpose of DFD
The main purposes of a Data Flow Diagram are:
To represent the flow of data in a system.
To show the processes involved in transforming data.
To provide a logical model of the system.
To simplify system analysis and design.
To help users and developers understand system functionality.
Components of DFD
A DFD consists of the following basic elements:
1. Process
A process represents a function or activity that transforms input data into output data. It is
shown as a circle or rounded rectangle in the diagram.
Example: Issue Book, Add Member, Generate Report
2. Data Flow
Data flow represents the movement of data from one part of the system to another. It is
shown using an arrow that indicates the direction of data movement.
Example: Book Details, Student Information, Transaction Data
3. External Entity
An external entity represents a source or destination of data outside the system. It can be
a user, organization, or another system.
Example: Student, Librarian, Administrator
4. Data Store
A data store represents a place where data is stored for later use. It may represent
database, file, or register.
Example: Book Database, Member Records, Transaction File
Levels of DFD
DFDs are developed at different levels to show system details step by step.
1. Context Level DFD (Level 0)
It is the highest-level diagram.
Shows the entire system as a single process.
Only external entities and major data flows are shown.
Used to give a general overview of the system.
2. Level 1 DFD
Provides more detailed view of the system.
The single process of Level 0 is broken down into multiple sub-processes.
Shows data stores and internal data flows.
3. Level 2 DFD and Higher Levels
Each process in Level 1 can be further decomposed into Level 2 DFD
Used for complex systems requiring detailed modelling.
2.3 OUTPUT: