2080 2

BIT253 ยท 2080 ยท 10 marks

Why do systems analysts use DFDs? Draw context diagram and data flow diagram up to level 1 for a retail clothing store in a mall that sells different clothes to its customers. Make necessary assumptions.

Why do systems analysts use DFDs? Draw context diagram and data flow diagram up to level 1 for a retail clothing store in a mall that sells different clothes to its customers. Make necessary assumptions.[10]

Systems Analysis and DesignChapter 5: Requirements Determination and ModelingData flow diagram components and benefits

Quick answer

A Data Flow Diagram (DFD) is a graphical tool that depicts the flow of data through a system, showing how data is input, processed, stored, and output.

Data Flow Diagrams (DFDs) for a Retail Clothing Store


Part 1: Why Systems Analysts Use DFDs (4 marks)

A Data Flow Diagram (DFD) is a graphical tool that depicts the flow of data through a system, showing how data is input, processed, stored, and output. Systems analysts use DFDs for the following reasons:

1. Visual Communication

DFDs provide a clear, graphical representation of a system that can be easily understood by both technical developers and non-technical stakeholders (managers, clients). They bridge the communication gap between users and developers.

2. System Understanding and Documentation

DFDs help analysts understand how an existing system works by mapping all data flows, processes, data stores, and external entities. They serve as formal documentation of the system.

3. Logical System Modeling

DFDs focus on what the system does (logical view) rather than how it is implemented (physical view). This helps analysts design systems independent of technology constraints.

4. Identifying System Boundaries

Through the context diagram (Level 0), analysts can clearly define the scope of the system, identifying what is inside and outside the system boundary.

5. Decomposition and Complexity Management

DFDs support leveled decomposition (Level 0, Level 1, Level 2...), allowing analysts to break a complex system into manageable sub-processes without losing the overall picture.

6. Error and Inconsistency Detection

By tracing data flows, analysts can identify missing data, redundant processes, or logical errors early in the development lifecycle, reducing costly corrections later.

7. Basis for Further Design

DFDs serve as input for designing databases (data stores become tables), programs (processes become modules), and system interfaces.


Part 2: DFD Symbols Used

SymbolShapeRepresents
External EntityRectangleSource or destination of data outside the system
ProcessCircle / Rounded RectangleTransforms input data into output data
Data StoreOpen Rectangle / Parallel linesRepository where data is stored
Data FlowArrowMovement of data between components

Part 3: Assumptions Made

Since no specific details were provided, the following assumptions are made:

  1. The store sells clothes to walk-in customers.
  2. Customers can browse, select, and purchase items.
  3. The store maintains an inventory of clothes.
  4. The store generates bills/receipts for customers.
  5. The store places orders to suppliers when stock is low.
  6. A manager oversees sales reports.
  7. Payment is made by cash or card.

Part 4: Context Diagram (Level 0 DFD)

The context diagram shows the entire retail clothing store system as a single process with all external entities.

                    Item Inquiry / Purchase Request
                 โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ–บ
                 โ”‚                                      โ”‚
   CUSTOMER โ”€โ”€โ”€โ”€โ”€โ”ค                                      โ”‚
                 โ”‚โ—„โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ค
                 โ”‚    Receipt / Bill / Selected Items    โ”‚
                 โ”‚                                      โ”‚
                 โ”‚                              โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”
                 โ”‚   Stock Order Request        โ”‚                   โ”‚
   SUPPLIER โ”€โ”€โ”€โ”€โ”€โ”ผโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ–บ  RETAIL CLOTHING  โ”‚
                 โ”‚โ—„โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ค   STORE SYSTEM    โ”‚
                 โ”‚   Stock / Inventory Delivery  โ”‚   (Process 0)    โ”‚
                 โ”‚                              โ”‚                   โ”‚
                 โ”‚   Sales Report / Summary      โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜
   MANAGER  โ”€โ”€โ”€โ”€โ”€โ”ผโ—„โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ค
                 โ”‚   Management Queries / Requests        โ”‚
                 โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ–บ

Cleaner Representation:

โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”   Purchase Request / Item Query    โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”
โ”‚          โ”œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ–บโ”‚                     โ”‚
โ”‚ CUSTOMER โ”‚                                    โ”‚   RETAIL CLOTHING   โ”‚
โ”‚          โ”‚โ—„โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ค   STORE SYSTEM      โ”‚
โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜   Receipt / Bill                   โ”‚     (Process 0)     โ”‚
                                                โ”‚                     โ”‚
โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”   Stock Delivery                   โ”‚                     โ”‚
โ”‚          โ”œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ–บโ”‚                     โ”‚
โ”‚ SUPPLIER โ”‚                                    โ”‚                     โ”‚
โ”‚          โ”‚โ—„โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ค                     โ”‚
โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜   Purchase Order / Reorder Request โ”‚                     โ”‚
                                                โ”‚                     โ”‚
โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”   Management Queries               โ”‚                     โ”‚
โ”‚          โ”œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ–บโ”‚                     โ”‚
โ”‚ MANAGER  โ”‚                                    โ”‚                     โ”‚
โ”‚          โ”‚โ—„โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ค                     โ”‚
โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜   Sales Reports / Stock Summary    โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜

Part 5: Level 1 DFD

The Level 1 DFD explodes Process 0 into its major sub-processes.

Major Processes Identified:

Process No.Process Name
1.0Manage Customer Sales
2.0Manage Inventory
3.0Generate Reports
4.0Process Payment

Data Stores Identified:

Data StoreContents
D1Customer Records
D2Inventory / Stock Records
D3Sales Records
D4Order Records

Level 1 DFD Diagram:

                      Item Query / Order
   +----------+  ------------------------>  +---------------------+
   | CUSTOMER |                             |         1.0         |
   +----------+  <------------------------  |  Manage Customer    |
        |            Bill / Receipt         |       Sales         |
        |                                   +----+-----------+----+
        | Payment                                |           |
        |                   Customer Details     |           | Sale Details
        v                                        v           v
   +---------------------+              +--------------+  +--------------+
   |         4.0         |              | D1 Customer  |  | D3 Sales     |
   |   Process Payment   |              |   Records    |  |   Records    |
   +----------+----------+              +--------------+  +------+-------+
              | Payment Record                                   | Sales Data
              v                                                  v
     +--------------+                                +---------------------+
     | D4 Order     |                                |         3.0         |
     |   Records    |                                |  Generate Reports   |
     +--------------+                                +----------+----------+
                                                                | Sales and
   +----------+   Purchase Order   +---------------------+      | Stock Report
   | SUPPLIER | <----------------- |         2.0         |      v
   +----------+ -----------------> |  Manage Inventory   |  +-----------+
                   Stock Supply    +----------+----------+  |  MANAGER  |
                                              | Stock       +-----------+
                                              | Update
                                              v
                                     +--------------+
                                     | D2 Inventory |
                                     |   Records    |
                                     +--------------+

Balancing check: the flows crossing the boundary of this diagram (Item Query, Order, Payment, Bill, Stock Supply, Purchase Order, Sales Report, Management Queries) are exactly the flows shown on the context diagram, which is the consistency rule every level of a DFD must satisfy.


Conclusion

Systems analysts use DFDs because a diagram of processes, flows, stores and boundaries is understood by the client as well as the developer, it captures what the system does without committing to how it will be built, and it can be decomposed level by level so that complexity is revealed gradually. For the retail clothing store the context diagram states the boundary and the three external entities, and the Level 1 diagram opens Process 0 into customer sales, inventory, reporting and payment, each writing to its own data store while every external flow stays identical to the level above it.

Short on time? The 1, 5 and 10 mark versions of this answer, flashcards and practice sets come with a program pass.