0% found this document useful (0 votes)
7 views

CS403-Assignment No 01

Uploaded by

UMMAD MANSOOR
Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
7 views

CS403-Assignment No 01

Uploaded by

UMMAD MANSOOR
Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 3

Assignment No.

01 (Graded) Total Marks: 20


Fall 2024
Due Date: 08-11-2024
CS403- Database Management System

Student Name: Ummad Mansoor


Student ID: BC190203170

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:

1. Order Placement: Students place food orders via the system.


2. Payment Processing: Payment for orders is processed through the system.
3. Order Status Tracking: Students track the status of their orders.
4. Order Management: Kitchen staff receive orders, update status, and confirm when the
food is ready.
5. Inventory Management: The system keeps track of ingredients and inventory usage to
manage stock levels.

Context-Level DFD (0-Level DFD):

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.

Here is the Context-Level DFD:

Explanation of the Context-Level DFD:

 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.

Q2: Draw a Level 0 Data Flow Diagram (DFD)

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.

Here is the Level 0 DFD:

+------------------------+
| |
| Order Placement |
| |
+--------+---------------+
|
Order Details | Order Status
|
+-------------------------+ +-----v-----+ +------------------------+
| | | | | |
| University Food |---| Payment |----| Order Status |
| Order System | | Processing| | Tracking |
| | +-----+-----+ | |
+-----------+-------------+ | +------------------------+
| |
| Inventory Updates |
| |
v v
+------------------------+ +-------------------------+
| | | |
| Inventory Management |<----| Kitchen Staff |
| | | |
+------------------------+ +-------------------------+

Explanation of the Level 0 DFD:

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.

You might also like