DFD Final
DFD Final
Structural Analysis
⚫ Based on
⚫ Top Down decomposition approach
⚫ Divide and conquer principle
⚫ Each function is considered individually’
⚫ Decompose functions totally
⚫ Graphical representation using DFD
⚫ It shows different functions
⚫ Data interchange amongst proesses
Content
⚫ Developing Data Flow Diagrams(DFD)
⚫ a) What are DFDs?
⚫ b) Symbols used in DFD
⚫ c) Rules of data flow
⚫ d) Good style in drawing DFD
⚫ Describing systems with DFD & Levelling DFDs
⚫ Logical & Physical DFDs
WHY DFD ?
Provides an overview of
-What data a system processes
-What transformations are performed
-What data are stored
-What results are produced and where they flow
WHY DFD ?
PROCESS
Employee
Details 1.Pay
roll Payslip
Work
▪
days
A circle represents a process
EXTERNAL ENTITIES
Place
Customer Employee
order Pay
slip
DATA STORES
3 Label
A Process
Store
Issue Name
Label
GOOD STYLE IN DRAWING DFD
▪ Use meaningful names for data flows, processes and data stores.
▪ Use top down development starting from context diagram and successively
levelling DFD
▪ A process can only transfer input to output .It cannot create new data
order
Students Requisitions Vendors
Payments
Supplies
Payments
Canteen
Bills Manageme
nt Canteen
Daily rate
System secretary
Menu
Perishable
Items
Item needed
Each day
Overdue Bills
▪ If a DFD is too detailed it will have too many data flows and will
be large and difficult to understand
Canteen
Students Secretary Chief Warden
Order
Student billing
Expenses Information + bills
No of meals Canteen
manager
EXPANDED DFD FOR HOSTEL MESS MANAGEMENT
•Continued
Low stock (today+2)
2 Items to be issued
Vendor supplies Stores
Vendors issue
canteen
Order Vegetables and Items used Manager
Control today
system
Menu
Vendor data
Stores
inventor
Order data canteen
y
Secretary
Vegetables order 3
Vegetab Vegetables
les
Orders orderin
(vegetables) g Vendor data
(vegetables)
EXPANDED DFD-BILLING SYSTEM
Payments
Itemized
1.2
bills 1.3 Unpaid
Calculate Bills Chief
Student’s Reconcil bills
Canteen warden
bills e
Secretary
paymen Students data
Students ts
Extras/
data
Rebates Daily rate
1.4 1.1 average
Find no Calculat (upto date)
Of meals e
No of meals to cook Daily
rate
Expenses
Canteen data
Students Manager
data Items rate
data
LEVELLING RULES
▪ All data flow entering or leaving p must also enter or leave its
expanded version.
▪ Expanded DFD may have data stores
▪ No external entity can appear in expanded DFD
▪ Keep the number of processes at each level less than 7.
ILLEGAL CONSTRUCTS IN DFD
Get
Record
students Calculate
extra/ Bill
rebates Ask for next
record record
Extra/rebate
store • Not correct as loop is formed
LEVELLING EXAMPLES
Items issued
Order
2.1
Inventory 2.2
update Create
Canteen manager And order
Items used low stock Low stock for vendor
today warning item
Items needed
From 2.3
Vendor Stores inventory Order Vendor data
supplies
Vendor
Order to vendor
2.3
2.4
Calculate
Check Item
Items
availability
Canteen secretary needed
Items needed Low stock items
Menu
today today
No of meals to Stores
today inventory
LEVELLING EXAMPLES
Top
Ext A Level Ext B
process
Ext A 1 2 4 Ext B
F F
1 4
3
Process Process
1 1 1 1 2 2 2 2
Ext A . . . . . .
1 2 4 1 2 3
F
1 1
.
3
3 3 3 4 4 4
. . . Ext B . . .
1 2 4 3 1 2
F
3 4
.
3
LOGICAL AND PHYSICAL DFD
▪ Physical DFDs can be drawn during fact gathering phase of a life cycle
PHYSICAL DFD FOR ENCASHING CHEQUE
Cash
Token
Clerk Cashier
Verify A/C Verify
Signature Token
Customer Cheque Update Cheque with Take
Token Balance Token number Signature
Retrie Store
Check
ve Token
Balanc Cheque with
Custo Cheque Token no
e,
mer &
Issue
Recor chequ
token
d es
Token Slip Cheque store
Or cheque With token no.
Cheque Customer
accounts Updat
Search
e
&
Customer Daily
match
Cheque with cash
token
token book
Token Slip Day
Cash book
Example 2
Course Registration System
Example 3
Produce Product
Store Product
Payment Approval
Order Raw Materials
4.3
Pay for Raw Materials Pay
Employe
e PAYMENTS
Pay for Labor 4.0
Payroll
Payment
Process Decomposition
1.2
1.1
1.0 Receive
Record
Sale Payme
Order
nt
2.2
2.0 2.1 2.3
Produc
Product Serve Store
e
ion Product Product
Product
0.0
Lemona
de 3.1
System Produc
3.0 3.2 3.3
e
Procure- Receive Pay
Purcha
ment Items Vendor
se
Order
Mechanical Fixed
problem mechanical
to be repaired problems
Repair Supervisor
Helper Labo Bus summary
r Repair
Process List of
System parts used Inventory
Labo Management
r Labor, System
parts cost
details
Mechanic
Accounting
Example 3
56
Context Diagram for
Customer Support System
57
Content
58
Example: LMS
⚫When the new member option is
selected,
⚫The software asks details about the
member:
⚫Name,
⚫Address,
⚫Phone number, etc.
59
Decision Tree
- Get details
- Create record
- Print bills
New member
- Get Details
User Renewal - Update record
input - Print bills
Cancel
- Get Details
- Print Cheque
- Delete record
Invalid option
60
Exercise
⚫ Draw DFD for your project