Department of Computer Science and Engineering
Course Name: Data Structures
Course Code: CSE207
Section 3
Project: Food Delivery system
Submitted by:
Name: Inteser Islam Khan
ID: 2019-1-60-043
Name: Jannatul Ferdous
ID: 2019-2-60-010
Name: Inteser Islam Khan
ID: 2019-1-60-043
Name: Jannatul Ferdous
ID: 2019-2-60-010
Introduction:
There is a food delivery organization that offers many kinds of foods for home delivery and each client gives an order to buy food. Its employees will search for the required food upon customers' request on a First Come First Served basis. The food delivery organization has the following requirements:
- There are many kinds of foods in the food delivery organization’s inventory. They may have more than one food item from each kind and they want to store each of the food.
- The customers have to organize as FCFS basis
In this project, we had to do the followings:
- Reserve different kinds of foods detail in linked list
- Store the information of customer’s order in queue
- Store the information of ordered food per customer in stack
- Build a report that will show the daily and monthly selling reports of foods
Topics:
To solve this problem, we used some terms such as Linked list, Stack, Queue etc.- Linked List: A linked list is a sequence of data structures, which are connected together via links. Linked List is a sequence of links that contain items. Each link contains a connection to another link. Linked list is the second most-used data structure after array.
In our project, we had to use linked list to store/reserve food details.
- Stack: A stack is a linear data structure that follows the Last in, First out principle (i.e. the last added elements are removed first). This abstract data type can be implemented in C in multiple ways.
In our project, we had to Store the information of ordered food per customer in stack
- Queue: A queue is a useful data structure in programming. It is similar to the ticket queue outside a cinema hall, where the first person entering the queue is the first person who gets the ticket. Queue follows the First in First Out (FIFO) rule - the item that goes in first is the item that comes out first.
In our project, we had to store customer info in Queue.
Main menu:
The main menu contains Food Menu/Food List, Take Order, Sell Report- Food List: In food delivery service there should be a food menu from which the buyer can choose which food they want to order.
- Sell Report: This contains the total sales of the food delivery service in daily and monthly. It also contains customer information such as name and amount.
Source Code:
Limitation:
- The Food menu is short only added 8 types of food but it can be modified later.
- In the sell Report, the customer information is kept as customer name and their total spend.
- Per day this system can take 10 orders and monthly 300 orders.
0 Comments