Data Flow Diagram
Data Flow Diagram
A data flow diagram (DFD) illustrates how data is processed by a system in terms
of inputs and outputs. As its name indicates its focus is on the flow of
information, where data comes from, where it goes and how it gets stored.
DFD is a designing concept used to transform a textual problem into pictorial or
graphical form in a hierarchical order.
It describes how data and information are transformed in a system in a pictorial
manner.
DFD provides a complete description of: (a) What data are processed?
(b) How processing is done?
(c) What data are stored?
(d) Which stored data are used and
(e) Where the result flows?
There are essentially two different types of notations for data flow diagrams
(Yourdon & Coad or Gane & Sarson) defining different visual representations for
processes, data stores, data flow and external entities.
Yourdon and Coad type data flow diagrams are usually used for system analysis
and design, while Gane and Sarson type DFDs are more common for visualizing
information systems.
Visually, the biggest difference between the two ways of drawing data flow
diagrams is how processes look. In the Yourdon and Coad way, processes are
depicted as circles, while in the Gane and Sarson diagram the processes are
squares with rounded corners.
There are four meaningful objects that appear on data flow diagrams:
Context diagram
The Context Diagram is used to establish the context and boundaries of the
system to be modelled i.e. which things are inside and outside of the system
being modelled, and what is the relationship of the system with these external
entities.
A Context Diagram, sometimes called a Level 0 Data Flow Diagram, is drawn in
order to define and clarify the boundaries of the investigation. It identifies the
flows of information between the system and external entities. The entire system
of interest is shown as a single process.
Example of a context level diagram: Banking system
Practice questions:
Exercise#1
For the following situation, draw a context-level diagram
Kellogg State Bank provides car and home loans to its banking customers.
Initially, a potential loan customer meets with a Kellogg loan officer, requests a
loan for a certain amount and time frame, and completes a loan application.
Next, the loan officer determines the customers credit standing, the type of loan
required, and available interest rates. While the loan officer can authorize car
loans for credit worthy customers, a loan committee must approve all home
loans.
Exercise #2:
Video-Rental LTD case study
Video-Rental LTD is a small video rental store. The store lends videos to
customers for a fee, and purchases its videos from a local supplier.
A customer wishing to borrow a video provides the empty box of the video they
desire, their membership card, and payment payment is always with the credit
card used to open the customer account. The customer then returns the video to
the store after watching it.
If a loaned video is overdue by a day the customers credit card is charged, and a
reminder letter is sent to them. Each day after that a further chard is made, and
each week a reminder letter is sent. This continues until either the customer
returns the video, or the charges are equal to the cost of replacing the video.
New customers fill out a form with their personal details and credit card details,
and the counter staff give the new customer a membership card. Each new
customers form is added to the customer file.
The local video supplier sends a list of available titles to Video-Rental LTD, who
decide whether to send them an order and payment. If an order is sent then the
supplier sends the requested videos to the store. For each new video a new stock
form is completed and placed in the stock file.
What are the external entities in the following diagram Video-Rental LTD case
study.
What are the data flows between Supplier and Video-Rental LTD case study in the
above diagram?
What are the processes in the above diagram Video-Rental LTD case study?
Exercise#3:
Clients wishing to put their property on the market visit the estate agent, who
will take details of their house, flat or bungalow and enter them on a card which
is filed according to the area, price range and type of property .
Potential buyers complete a similar type of card which is filed by buyer name in
an A4 binder. Data Flow Diagrams 12 Weekly, the estate agent matches the
potential buyer requirements with the available properties and sends them the
details of selected properties.
When a sale is completed, the buyer confirms that the contracts have been
exchanged, client details are removed from the property file, and an invoice is
sent to the client. The client receives the top copy of a three part set, with the
other two copies being filed.
On receipt of the payment the invoice copies are stamped and archived. Invoices
are checked on a monthly basis and for those accounts not settled within two
months a reminder (the third copy of the invoice) is sent to the client.
Create a context diagram for this Estate Agency case study
Exercise#4