Data Flow Diagrams: A Picture Is Worth A Thousand Words
Data Flow Diagrams: A Picture Is Worth A Thousand Words
Data Flow Diagrams: A Picture Is Worth A Thousand Words
During the early stages of a project the systems analysis and design process gathers a
great deal of unstructured data and references to processing requirements. It is
important that all this should be summarised. The summary should serve to
A data flow diagram is a logical model of a system. The model does not depend on
hardware, software, data structure, or file organisation: there are no physical
implications in a data flow diagram.
A data flow diagram uses four basic symbols to form a picture of a logical system.
Symbols
A Process
Calculate A process is an
Square
of
automated action or
Given manual activity
Number
which takes some
1 input and produces
some output.
A Data Store
Permanent or semi-
1 File Of Integers permanent store for
data/information – a
file of something or
a variable
A Data Flow
Destination Source
Identifier Identifier
Destination Source
Identifier Identifier
1
Mohammed Aburoqiah
The System
Sources supply items to the system and destinations receive items from the system.
The sources and destinations are outside the system.
Context Diagram
This diagram treats the system as a black box. It focuses on the inputs and outputs
to the system and the sources and destinations of these.
Water Gas
Supplier
Water
Soup Diners
THE
SYSTEM
Waste Water
Peelings
2
Mohammed Aburoqiah
Level One DFD
Gas
Gas
Water Supplier
3 Cooking Pot
Cook
Soup
Add Place
Required in 5
Water
Water Amount Cooking
of Water Pot
Supplier
4 3
4 Soup
2 Prepared
Ingredients
Prepare Serve Soup
Ingredients Soup Diners
2 6
Peelings
Dirty water Obtain
Packaging Ingredients
Super-
Goods market
Waste
Disposal 1
Company
1 Ingredients
Water
THE
SYSTEM
Water
Supplier
3
Mohammed Aburoqiah
Sources
Source
Identifier
Supermarket
Water Supplier/Company
Gas Supplier/Company
Destinations Destination
Identifier
Waste Disposal Company collects the waste products from the cooking
process:
Dirty water
Vegetable peelings
Packaging
4
Mohammed Aburoqiah
Do Not Draw a Data Flow Diagram
Source
Identifier
1 Data Store
Data Store
Destination
Identifier
1 Data Store 1
2 Data Store 2
Permissible but Ask Yourself The Question: “Is there a data store that I could
place between the two processes”
Display
Find the Largest Number the
Largest Destination
Largest
Number Identifier
Number
1 2
1 File of Integers
5
Mohammed Aburoqiah
Example
A system is required which allows a user to input an unordered list of integer numbers
into a computer. The system will store these numbers in the main store of the
computer where they are to be sorted by the system into ascending numeric order and
re-stored. Finally the system is to print out the list for the user.
Printed
Unordered List of Numbers Ordered List of Numbers
User System User
(b) Level 0
1 3
Sort
Numbers
into
Ascending
Order
2
6
Mohammed Aburoqiah
7
Mohammed Aburoqiah
Exercises
2. A computer system is required which reads a file of real numbers from a user. The
system is to find the largest of the real numbers which are entered and it is to
display the largest for the user to view once all the numbers have been entered.
[Hint: In both cases the user is both the source and the destination]
8
Mohammed Aburoqiah
Applications & Effects
Sales Receipt,
information( Transaction
vi) records(vii)
Customer Printer
Sales
Display
information(
v)
Operator
Display Product
FileDatab
ase
Magnetic
Disk(ii)
(i) Customer
Database
Checkout System
Barcode EFT/EPOS
Reader
Stock
(iiv) FileData
baseMagnetic
Disk(ii)
Keyboard
Banking
(iiii) System
Product
Weight
Magnetic Figure 1. Checkout
Weighing EFT/EPOS
Stripe
Machine
Reader
9
Mohammed Aburoqiah
10
Mohammed Aburoqiah