SAAD Lecture V - System Design
SAAD Lecture V - System Design
SAAD Lecture V - System Design
Input 1
Output 1
Context Diagram of an Order system
Customer - Makes an order,
gets notification of rejection or
an invoice, makes payment
Warehouse - Receives the
list and completes the order
Accounting – receives cash
receipts
Sales rep – receives
commission
Bank – receives deposit
DATA FLOW DIAGRAM (DFD)
DFDs are the most commonly used way of
documenting the process of current & required
systems. They are a pictorial way of showing the
flow of data into, around & out of a system.
It is a graphical representation of a system’s data
and how the processes transform the data.
They can describe processing at physical as well
as logical levels
Its shows flow of data and not flow of control
Data Flow Diagram (DFD)…
DFDs facilitate top-down development
They permit outlining of preferences and scope
Unlike flowcharts, DFDs do not give detailed
descriptions of modules but graphically describe a
system’s data and how the data interact with the
system.
FDD may be done before DFD or one may prepare
DFDs directly
It has more contents than FDDs
Components of DFD
DFDs are constructed using four major components;
external entities
data stores
processes and
data flows
Components of DFD…
External Entities: represent the source of data as
input to the system and also the destination of system
data. E.g. Student, patient, Doctor etc. External
entities can be called data stores outside the system.
Represented by squares.
Data Stores: represent stores of data within the
system. Examples, computer files or databases.
Represented by an open-ended box – data at rest or a
temporary repository of data.
Components of DFD…
Process: represents activities in which data are
manipulated by being stored or retrieved or
transferred in some way; transforms the input data
into output data. Represented by Circles/ovals.
Data Flows: represents the movement of data from
one component to the other. An arrow identifies
data flow/data in motion. Data flows are generally
shown as one-way only. Data Flows between
external entities are shown as dotted lines.
Steps in Building DFDs
Build the context diagram
Create DFD fragments for each scenario
Organize DFD fragments into level 0
Decompose level 0 DFDs as needed
Validate DFDs with user
DFD Fragment Tips
All process names must be verb phrases
Maintain organization’s viewpoint in naming
processes
Layouts often place
inputs from the left
processes in the center
outputs to the right
stores beneath the processes
Qualities of a good DFD
A good DFD should;
have no data flows that split up into a number of
other data flows
have no crossing lines
not include flowchart loops of control elements
not include data flows that act as signals to activate
processes.
A Patient System DFD
(Level 0)
Process
Input
Output
A Patient System DFD
(Level 1)
Storage
A Patient System DFD
Example 2: Book Supplier
Imagine books supplied to customers whereby no
stock is maintained and the books are sourced
directly from the publishers
Level 0 DFD/Context diagram
Book Supplier: Refinement 1
Book supplier: Exploding Process 2
FLOWCHARTS
It is a diagrammatic/picture representation of the
various steps involved in designing a system.
Flowcharts…
Flowcharts are of three types:
System flowcharts
Run flowcharts
Program flowcharts
(a) System Flowcharts
System flowchart describes the data flow for a data
processing system.
It provides a logical diagram of how the system
operates, represents the flow of documents, the
operations performed in data processing system and
also reflects the relationship between inputs,
processing and outputs.
(a) System Flowcharts…
The features of system flowcharts are:
the sources from which data is generated and device
used for this purpose
various processing steps involved
the intermediate and final output prepared
the devices used for their storage
System Flow Chart
The Figure is a sample of
system flowchart for the
following algorithm:
Prompt the student for the
Tuition Fees Paid (TFP).
Store the Amount paid
Set Tuition Balance to
Tuition Fees (TF) minus TFP
Print the Tuition Fees
Balance
Stop
(b) Run flowcharts
Run flowcharts are used to represent the logical
relationship of computer routines along with inputs,
master files, transaction files and outputs.
Run flowcharts…
(c) Program flowcharts
A program flowchart represents, in detail, the various
steps (logical/ arithmetic operations, algorithms etc)
to be performed within the system for transforming
the input into output.
System
Student
Registration
TITLE:
DATE:
Author :
System :
Comments :