assignment 2
assignment 2
Objective:
To develop a DFD on Electric cash counter system
Introduction:
Data Flow Diagrams (DFDs) serve as potent visual tools in systems analysis and
design, portraying the flow of data within a system. The process of developing
DFD levels for an Electric cash counter system involves constructing a
hierarchical representation of the system's functions and interactions.
Level 0 DFD (Context Diagram)
The Level 0 DFD provides a high-level overview of the Electric Cash Counter
System. It identifies external entities interacting with the system and shows
how data flows between them.
Diagram:
+------------------+ +-----------------------------+
| Customer | ---> | Electric Cash Counter | ---> Receipt
+------------------+ +-----------------------------+
^ | ^ |
| | | |
| v v v
+------------------+ +-----------------------------+
| Inventory System | ---> | Bank System (Card Payment) |
+------------------+ +-----------------------------+
Explanation:
• Customer: Provides payment (cash or card) and receives a receipt.
• Inventory System: Supplies item details like price and stock availability.
• Bank System: Processes card payments.
• Electric Cash Counter: Facilitates scanning items, calculating totals,
processing payments, and generating receipts.
Level 1 DFD
• This level breaks down the Electric Cash Counter into its main processes.
DIAGRAM:
+------------------+ +--------------------------+
| Customer | -----> | Scan Items |
+------------------+ +--------------------------+
|
v
+--------------------------+
| Calculate Total |
+--------------------------+
|
v
+--------------------------+
| Process Payment |
+--------------------------+
|
v
+--------------------------+
| Generate Receipt |
+--------------------------+
Explanation:
1. Scan Items: Inputs item barcodes and retrieves details from the
Inventory System.
2. Calculate Total: Computes the total payable amount based on scanned
items.
3. Process Payment: Handles payment via cash or card (communicating
with the Bank System for card payments).
4. Generate Receipt: Outputs a receipt with transaction details.
Level 2 DFD
This level provides more detail for one of the processes, such as "Process Payment."
Diagram:
+------------------+ +--------------------------+
| Customer | -----> | Validate Payment |
+------------------+ +--------------------------+
|
v
+--------------------------+
| Authorize Payment |
+--------------------------+
|
v
+--------------------------+
| Record Transaction |
+--------------------------+
Explanation:
• Validate Payment: Verifies payment method (cash or card).
• Authorize Payment: Communicates with the Bank System to authorize
card payments.
• Record Transaction: Logs transaction details in the system.