CS403-Assignment No 01
CS403-Assignment No 01
Q1: Identify the external entities and key processes present within the scenario
and draw a Context Level Data Flow Diagram (DFD)
External Entities:
1. Students: These are the users who will place orders, make payments, and track the status
of their orders.
2. Kitchen Staff: These are the individuals who will receive the orders, process them, and
update the status.
3. Payment Gateway: This external system handles payment transactions made by
students.
4. Inventory System (External): This system helps manage the inventory of ingredients. It
can be integrated into the system to update stock levels.
Key Processes:
In the context-level DFD, we have the system as a single process that interacts with the external
entities. The arrows represent data flows, which are typically input or output to and from the
system.
The University Food Order System is the main system and is represented as a single
process.
Students interact with the system to place orders, make payments, and track order
statuses.
Payment Gateway handles the transaction processing for the payments.
Kitchen Staff are responsible for receiving orders and updating the status once the food
is prepared.
Inventory System tracks the inventory used for food preparation and updates inventory
levels accordingly.
The Level 0 DFD (also known as a "High-Level DFD") breaks down the main system into its
primary processes and shows how they interact with each other and external entities. The goal is
to represent the system’s major components and the flow of data between them.
+------------------------+
| |
| Order Placement |
| |
+--------+---------------+
|
Order Details | Order Status
|
+-------------------------+ +-----v-----+ +------------------------+
| | | | | |
| University Food |---| Payment |----| Order Status |
| Order System | | Processing| | Tracking |
| | +-----+-----+ | |
+-----------+-------------+ | +------------------------+
| |
| Inventory Updates |
| |
v v
+------------------------+ +-------------------------+
| | | |
| Inventory Management |<----| Kitchen Staff |
| | | |
+------------------------+ +-------------------------+
1. Order Placement: This process involves students placing food orders through the system. It
receives input such as order details (food items, quantity, etc.) from the students.
2. Payment Processing: This process is responsible for handling payments. It receives payment
data from students and communicates with the Payment Gateway to process the payment.
3. Order Status Tracking: This process allows students to track the status of their orders. It
retrieves the order status from the kitchen staff.
4. Order Management (Kitchen Staff): Kitchen staff receive the orders and process them. Once the
order is prepared, the status is updated and sent to the Order Status Tracking process.
5. Inventory Management: The system tracks the ingredients in the inventory. When an order is
placed, the system checks if ingredients are available. After preparing the food, the inventory is
updated accordingly.
Data Flows:
Order Details: Flows from the Order Placement to the University Food Order System.
Order Status: Flows from Kitchen Staff to the Order Status Tracking process, so students can
track their orders.
Inventory Updates: Flows between Inventory Management and Kitchen Staff to update
ingredient levels after orders are processed.