Lecture Notes IT Unit1 - Mod3 Obj 06
Lecture Notes IT Unit1 - Mod3 Obj 06
Information Technology –
UNIT 1
Module 3: Objectives 06
• Describe data flow diagrams (DFD);
Introducing DFDs
• A Data flow diagram (DFD) is graphical representation of the flow of
data in an information system.
• Data flow diagrams (DFDs) reveal relationships among and between
the various components in a program or system. They are capable of
depicting incoming data flow, outgoing data flow and stored data.
• DFDs are an important technique for modelling a system’s high-level
detail. It does not show any program logic or processing steps.
• Data Flows - A data flow is the movement of data between the entity,
the process, and the data store.
Data flow portrays the interface between the components of the DFD.
Symbols for
DFD
Components
Patient Customer
DFD Symbols – Entity
• The symbol for an entity can be a rectangle or an oval.
• The name of the entity appears inside the symbol.
• An external entity must be connected by a data flow to a process, and not
directly to a data store or to another external entity.
• Systems analysts call an entity that supplies data to the system a source, and an
entity that receives data from the system a sink.
• DFD entities are also called agents or terminators, because they are data origins or
final destinations.
• The process name identifies a specific function and consists of a verb (and an
adjective, if necessary) followed by a singular noun.
• Examples: Apply Rent Payment, Calculate Commission, Assign Final Grade, Verify Order,
Fill Order.
• It should be named using words that are understood within the organisation or
department describing the data.
• The data that leaves one process is exactly what arrives at the next process.
• Branching data flows can exist when a particular process carries out some work
and produces a data output which is copied to two or more processes.
• This could be shown by a single data flow leaving one symbol, and splitting to
arrive at two other symbols. In such a case, both lines after the split must be
identified by appropriate labelling (e.g. original; copy).
DFD Symbols – Data Store M1 Purchase Orders
• Data stores are represented as a flat rectangle that is closed on the left side
and open on the right side.
• The name of the data store appears between the lines and identifies the data
it contains.
• A data store name is a plural name consisting of a noun and adjectives, if
needed.
• Examples: Students, Accounts Receivable, Products, Daily Payments, Purchas
Orders, Outstanding Checks, Insurance Policies, Employees.
Context Level 0
1st
Level 1
Decomposition
2nd
Level 2 Level 2 Level 2
Decomposition
Level 0 DFD – Context Diagram
• Details of each book (i.e. title, author, cover price, rate of royalty as a
percentage of the cover price, etc.) are held on file. Each time a book
is sold, the sale is recorded on a file in the Sales Department.
• At the end of each month a summary of the total sales of each book is
procedure, and this is used to calculate the royalty earned by each
author that month.
• This data is stored on the Royalties file.
• At the end of each 6-month period the total royalty is calculated and a
statement and cheque sent to each author.
The context diagram for Case Study #1
• Remember, the Level 0 DFD will show the system as a single process
box with the relevant inputs and outputs.
• In this case, the input to the Royalties system comes from the Sales
Department, and the royalty goes to the author. These are the external
entities.
• And of course, no data stores are shown in a Level 0 DFD.
Case Study #2 – Part A
• A customer places an order with the JanSport Co. for some backpacks. The
order is accepted by the Sales Order Processing Department. The stock file
is checked and if there is sufficient stock, an invoice is printed and sent to
the customer. A picking list is sent to the warehouse (this is a list giving the
total of each item to be despatched to aid the warehouse staff in picking
stock off the shelves and assembling the order). If there is insufficient stock
to fill the whole order, the customer is invoiced for any part of the order that
can be filled, and the rest of the order is held in the system until stock is
replenished. If any part of the order cannot be filled, an 'out of stock' notice is
sent to the customer.
• Instead of an invoice, a customer may receive an order-rejection notice.
Rejection may be for a number of reasons such as a bad credit rating,
customer on 'stop' because of an unpaid overdue invoice, or a product
ordered that is no longer available. This system doe not handle backorders
separately - they are simply helf on the system until they can be processed
when the required stock is received in the warehouse.
Brain Challenge:
1. What would you name the main process of the context
diagram for the Sales Order Processing (SOP) system
described in Case Study #2 – Part A?
3. What main data flows can you identify between the external
entities and the main process?
4. Draw what you feel the context diagram should look like.
The context diagram for Case Study #2
• The Level 0 DFD for this SOP system accepts customer orders and
produces invoices sent to customer.
• It also prints a picking list which is sent to the warehouse.
Case Study No. 2 – Part B
Suppose the analyst has established the following facts:
1. The customer order is received and the customer's credit rating is checked. New
customers or those on 'stop' are put in a suspense file and referred to the Credit
Control Manager. If the order is rejected, an order-rejection notice is printed and
sent to the customer.
2. For orders which are accepted, stock availability is checked. Stock is allocated
where possible and the stock file updated. The order is priced using the price held
on the stock file.
3. If the order cannot be filled (there is insufficient stock to allocate the order), it is
left on the Orders file as an unfilled order. An out-of-stock notice is sent to the
customer.
4. For completed orders, a picking list is produced and sent to the warehouse. This
shows the location (Bin number) and quantity of each product needed to fill the
batch of orders.
5. An invoice is produced and sent to the customer.
Creating the Level 1 DFD - Step 2:
Level 1 DFD, decomposes the overall system into main processes of the
system are outlined, and now we’ve now added in the data stores and more
detail of what happens, for example, when there is insufficient stock to fill the
order.
Case Study #3:
A customer places an order with KPHouse Publishing for some books.
The order is accepted by the Sales Order Processing Department. An
invoice is printed and sent to the customer. A despatch note is printed
and sent to the warehouse. The goods and the despatch note are sent to
the customer from the warehouse. A second copy of the invoice is sent
to the Accounts Department.
Brain Challenge:
Look at the Level 1 DFD that follows, which an inexperienced
trainee analyst has drawn to represent the system described.
1. What is wrong with it?
2. Redraw it correctly.
Case Study #5 (Cont’d):
MEGA BRAIN CHALLENGE!!
Case #4:
A student can register by mail for a college course by submitting a registration
form with their name, ID number and the numbers of the courses they wish to
take. The system verifies that the course is not full and enrols the student on
each course for which a place is still free. The course file and student master
files are updated and a confirmation letter is sent to the student to notify them
of their acceptance or rejection for each requested course.