Professional Documents
Culture Documents
Techniques
Chapter 3
Deposit
Bank
Copyright © 2015 Pearson Education, Inc.
DATA FLOW DIAGRAMS
• Data flows
▫ Appear as arrows, named with nouns
▫ Represent the flow of data between sources and
destinations, processes, and data stores
▫ A data flow can be used to represent the creation,
reading, deletion, or updating of data in a file or
database (data store).
▫ At least one end of every data flow should either come
from or go to a process.
Deposit
Bank
Copyright © 2015 Pearson Education, Inc.
DATA FLOW DIAGRAMS
• Data stores
▫ Appear as two horizontal lines, named with a noun
▫ Represent a temporary or permanent data repository
▫ Flow out of a data store = retrieval
▫ Flow into a data store = inserting or updating
▫ Data stores on a DFD are related to entities on an ERD
Payroll
Disburse-
3.0 ment data 5.0
This diagram Prepare Employee/
Update
reports Payroll file
Gen.
shows the Ledger
next level of Payroll tax
disb. voucher
detail for the Payroll
report
context 4.0 General
Ledger
diagram in Pay
Tax report
Manage- taxes
Figure 3-5. ment
& payment
Govt.
Agencies
Copyright © 2015 Pearson Education, Inc.
DATA FLOW DIAGRAMS
Depart-
ments Employees
Employee
New employee Time paychecks
Human form cards
Resources
1.0
Update 2.0
Employee Pay Payroll
empl.
Change check
form
Payroll Employ- Bank
file ees
Suppose we Payroll
exploded Process 3.0
Disburse-
ment data 5.0
2.0 (pay Prepare Employee/
Update
employees) in the reports Payroll file
Gen.
next level. The Ledger
Payroll tax
sub-processes disb. voucher
Payroll
would be report
General
numbered 2.1, 2.2, 4.0
Pay Ledger
2.3, etc. Tax report
Manage- taxes
& payment
ment Govt.
Agencies
Copyright © 2015 Pearson Education, Inc.
DATA FLOW DIAGRAMS
• A Level 1 diagram is a projection of a Level 0
process.
• A Level 1 diagram shows all the processes that
comprise a single process on the level 0 diagram.
• It shows how information moves from and to
each of these processes.
• Level 1 diagrams may not be needed for all Level
0 processes.
• On Level 1 diagrams we do not repeat external
entities. Data stores may not be repeated either.
Copyright © 2015 Pearson Education, Inc.
CONTEXT
DIAGRAM
KITCHEN
CUSTOMER
0
Customer Order
Food Food Order
Receipt Ordering
System
Management
Report
RESTAURANT
MANAGER
KITCHEN
CUSTOMER
1.0
Customer Order
Transform Food Order
Receipt Customer
Food Order
3.0
2.0
Update
Update
Goods Inventory Inventory
Goods Sold
Sold Data Data
Formatted
Formatted Goods Inventory Data
Sold Data
INVENTORY
GOODS SOLD D2
D1
Daily Inventory
Daily Goods 4.0 Depletion Amounts
Sold Amounts
Produce
Management RESTAURANT
Report Management MANAGER
Copyright © 2015 Pearson Education, Inc. Report
DFD Balance
KITCHEN
CUSTOMER
1.1 1.3
Process Transform
Customer Order Customer Customer Order Order to Food Order
Order Kitchen
Format
Inventory
Customer Order 1.5 Data
Customer Generate
Order Customer Order Inventory
Decrements
1.4
1.2 Generate
Generate Good Sold
Increments Goods Sold Data
Customer
Receipt
Receipt
NOTE HOW WE HAVE THE SAME INPUTS
AND OUTPUTS AS THE ORIGINAL PROCESS
SHOWN IN THE LEVEL 0 DIAGRAM
Copyright © 2015 Pearson Education, Inc.
Another Level 1 Diagram
Daily Inventory
LEVEL 1 PROCESSES
Depletion Amounts
Payroll
Disburse-
3.0 ment data 5.0
Prepare Employee/
Update
reports Payroll file
Gen.
Ledger
Payroll tax
Payroll disb. voucher
report
4.0 General
Pay Ledger
taxes Tax report
Manage- & payment
ment Govt.
Agencies
Copyright © 2015 Pearson Education, Inc.
DATA FLOW DIAGRAMS
• The data flow diagram focuses on the logical
flow of data.
• Next, we will discuss flowcharts, which place
greater emphasis on physical details.