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]
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
| Symbol | Shape | Represents |
|---|---|---|
| External Entity | Rectangle | Source or destination of data outside the system |
| Process | Circle / Rounded Rectangle | Transforms input data into output data |
| Data Store | Open Rectangle / Parallel lines | Repository where data is stored |
| Data Flow | Arrow | Movement of data between components |
Part 3: Assumptions Made
Since no specific details were provided, the following assumptions are made:
- The store sells clothes to walk-in customers.
- Customers can browse, select, and purchase items.
- The store maintains an inventory of clothes.
- The store generates bills/receipts for customers.
- The store places orders to suppliers when stock is low.
- A manager oversees sales reports.
- 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.0 | Manage Customer Sales |
| 2.0 | Manage Inventory |
| 3.0 | Generate Reports |
| 4.0 | Process Payment |
Data Stores Identified:
| Data Store | Contents |
|---|---|
| D1 | Customer Records |
| D2 | Inventory / Stock Records |
| D3 | Sales Records |
| D4 | Order 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.