Professional Documents
Culture Documents
SYSTEM DESIGN
Week-6
“Data Flow Diagram (DFD) & Unified
Modeling Language (UML)”
Inventory
Data Store D7
File
Entity Customer
DeMarco-Yourdon Gane-Sarson
Examples
Symbology Symbology
General Symbols
• Data flow diagrams can be used to provide a clear
representation of any business function.
• The technique starts with an overall picture of the business
and continues by analyzing each of the functional areas of
interest.
• This analysis can be carried out to precisely the level of detail
required.
DFD Example Peeling an Apple
Peel Apple
Unwashed Apple With Processed
Peeling Device Apple
System
3.0 4.0 7.0
Employee
0
Payroll Report
Employee
0
Payroll Report
Accounting
Department
Level-0 DFD
2.0
Employee Record Paycheck Data
Employee Compute Payroll
Employee S1 S2
Data File Weekly Data File
Paycheck
Payroll Record
Hours Worked
1.0 3.0
Employee Payroll Record
Time Sheet Create Prepare
Weekly Weekly
Payroll Employee Paycheck Payroll
Record Summary
Payroll Report
4.0
Prepare
Employee Tax Form Employee
Tax
Accounting
Form Department
Level-1 DFD
Employee Record
S1 Employee Data File S2 Payroll Data File
Employee
Payroll Record
2.1 2.2 2.3
Hours Worked Gross Pay Net Pay
Compute Compute Create 3.1
Data Data
Gross Net Payroll Sort
1.0
Pay Pay Check Payroll
Create Records by
Weekly Employee
Time Sheet Payroll
Record Sorted Records
Accounting
Department
Partial Level-n DFD
4.1.1
Employee
Payroll
Calculate Record
Payroll
Tax
Employee Tax Form
Deductions
Employee Data
4.1.1
Employee
Payroll
Calculate Record
Payroll
Tax
Employee Tax Form
Deductions
Employee Data
Produce Product
Store Product
INVENTORTY
Order Raw Materials Production Data
Pay for Raw Materials
2.3 Quantity Produced &
Store Location Stored
Pay for Labor Product
Creating Data Flow Diagrams
Example 4. Construct Level 1 (continued)
Create a level 1
decomposing the processes Level 1 DFD
in level 0 and identifying Order Decision
PURCHASE
data stores. 3.1 ORDER
Produce
Purchase
Customer Order Order Quantity On-Hand
Serve Product RAW
Quantity MATERIALS
Collect Payment Received Received
Goods
3.2
Produce Product Receive
Items
Store Product RECEIVED
ITEMS
Payment Approval
Order Raw Materials
VENDOR
Pay for Raw Materials 3.3
Pay
Vendor
Pay for Labor
Payment
Creating Data Flow Diagrams
Example 4. Construct Level 1 (continued)
Create a level 1
decomposing the processes Level 1 DFD
in level 0 and identifying Time Worked
Payment Approval
Order Raw Materials
4.3
Pay for Raw Materials Pay
Employe
e PAYMENTS
Pay for Labor
Payment
Process Decomposition
1.1 1.2
1.0
Record Receive
Sale
Order Payment
0.0
Lemonade
System 3.1
3.0 3.2 3.3
Produce
Procure- Receive Pay
Purchase
ment Items Vendor
Order
4.1 4.3
4.2
4.0 Record Pay
Calculate
Payroll Time Employe
Payroll
Worked e
Bus
Mechanical Fixed
problem mechanical
to be repaired problems
Repair Supervisor
Helper Labor
Bus Repair summary
Process
System List of
parts used Inventory
Labor Management
Labor, System
parts cost
details
Mechanic
Accounting
CSUB Burger’s Order Processing System
• External entities
• Kitchen
• Restaurant
• Customer
• Processes
• Customer order
• Receipt
• Food order
• Management report