CS403- Database Management System
Scenario:
A university cafeteria needs an online system to handle food orders, manage inventory, and process payments. This
system will allow students to place orders, make payments, and view order statuses. The kitchen staff receives the
orders and updates the status when the order is prepared. The system also helps with inventory management for
ingredients. The system will facilitate the following processes:
1. Order Placement: Students can place food orders through the system.
2. Payment Processing: Students can make payments for their orders.
3. Order Status Tracking: Students can view the status of their orders.
4. Order Management: Kitchen staff receive and process orders, updating their status when prepared.
5. Inventory Management: The system manages the inventory of ingredients used for food preparation.
Q1: Identify the external entities and key processes present within the above scenario and draw Context Level Data
Flow Diagram (DFD) to represent these components.
Solution:
Make
Payment
Online Food
Order
Student Details Ordering Order Status Update Kitchen Staff
System
Order
Status
Payment
Information
Payment
Information
Payment
Gateway
Q2: Draw a Level 0 Data Flow Diagram (DFD). Include all identified processes, external entities, data
stores, and data flows.
Solution:
Payent Payment
Confirmation Information
Payment
Payment Processing Payment
Confirmation
Information
(2.0)
Order
Order
Student Confirmation Placement Payment
Payment
Confirmation
(1.0) Gateway
Save
Order
Orders Data Store Retrieve
Orders
Order
Order Details
Status
Order
Status
Update
Order
Status Order
Order Status Retrive Management
Tracking Order
Status (4.0)
(3.0)
Order Status
Update
Kitchen
Inventory
Staff
Management
(5.0)
Update
Inventory Data Store Inventory
Ingredient
Availability
______________________
THANK YOU
waheed Speaks Academy