You are on page 1of 38

Food Ordering System

ABSTRACT

Our proposed system is an online food ordering system that enables ease for the
customers. It overcomes the disadvantages of the traditional queueing system. Our
proposed system is a medium to order online food hassle free from restaurants as well
as mess service. This system improves the method of taking the order from customer.
The online food ordering system sets up a food menu online and customers can easily
place the order as per their wish. Also with a food menu, customers can easily track the
orders. This system also provides a feedback system in which user can rate the food
items. Also, the proposed system can recommend hotels, food, based on the ratings
given by the user, the hotel staff will be informed for the improvements along with the
quality. The payment can be made online or pay-on-delivery system. For more secured
ordering separate accounts are maintained for each user by providing them an ID and a
password.
General Terms Cloud Computing,
Wi-Fi Keywords Automated Food Ordering System, Dynamic Database Management, Internet of
Things, Smart Phone
INTRODUCTION
the online food ordering system sets up a food menu online and customers can
easily place the order as per they like. Also with a food menu, online customers
can easily track the orders. The management maintains customers database, and
improve food delivery service. The Restaurant management systems motivates us
to develop the system. There are various facilities provided so that the users of
the system will get service effectively. Also, the system considers Restaurants as
well as Mess facility to the customers. Again, the idea comes that mostly mess
users are person who are shifted for various reason in new cities. So, they are
interrelated. Increasing use of smart phones is also considered as a motivation, so
that any users of this system get all service on single click. Another motivation can
be considered as the system will be designed to avoid users doing fatal errors,
users can change their own profile, users can track their food items through GPS,
users can provide feedback and recommendations and can give
ratings, it will give appropriate feedbacks to Restaurants / Mess service providers.
Due to lack of a full fledge application that can fulfill the customer requirements
by providing him food from restaurants as well as from mess service, there is a
need for the system. This proposed system will be used by the people who keep
shifting from cities to cites. As well as, it will be useful for the students studying in
different cities. The proposed system will provide the flexibility to the
Customers/Users to order from either Restaurants or Mess. It will also provide
Recommendations to the customers from the restaurants/mess owners uploaded
on a daily basis. In the proposed system, there will be no limitation on the
amount of order the customer wants. Also, same application can be used as a
Startup Business for the developers. It will provide real time customers feedback
and ratings along with the comments to the restaurants/mess owner. It gives
appropriate feedbacks to users, so if there is any error happened, then there will
be a feedback dialog toward users. The proposed system is designed to avoid
users doing fatal errors and inappropriate action. Scope of proposed system is
justifiable because in large amount peoples are shifting to diff erent cities so wide
range of people can make a use of proposed system. The system/interface will
take input from the user. The major attributes that will give input to the dataset
are: name, address, email-Id, mobile no, other personal related values, etc. The
output will include user/customer’s Order, Bill, Feedback and Payment options.
Initially there will be 10 to 12 restaurants and mess services considered inside 2 to
3 areas. The reason why to choose this project is the idea behind project that is to
solve problem of people which they are facing when they shift to different city.
The system is not only for user but also for provider who provides food service.
This system is for making efficient communication between consumer and
producer of the food system which will then leads to the ideal and effective
system.
PROBLEM STATEMENT
The online food ordering system sets up a food menu online and customers can
easily place the order as per they like. Also, the online customers can easily track
their orders. The management maintains customer’s database, and improve food
delivery service. This system also provides a feedback system in which user can
rate the food items. Also, the proposed system can recommend hotels, food,
based on the ratings given by the user, the hotel staff will be informed for the
improvements along with the quality. The payment can be made online or cash or
pay-on-delivery system. For more secured ordering separate accounts are
maintained for each user by providing them an ID and a password
LITERATURE REVIEW I
[1] an automated food ordering system is proposed which will keep track of user
orders smartly. Basically, they implemented a food ordering system for diff erent
type of restaurants in which user will make order or make custom food by one
click only. By means of android application for Tablet PCs this system was
implemented. The front end was developed using JAVA, Android and at the
backend MySQL database was used. In
[2] Customer using a Smartphone is considered as a basic assumption for the
system. When the customer approach to the restaurant, the saved order can be
confirmed by touching the Smartphone. The list of selected preordered items
shall be shown on the kitchen screen, and when confirmed, order slip shall be
printed for further order processing. The solution provides easy and convenient
way to select pre-order transaction form customers. In [3] there was an attempt
to design and implementation of digital dining in restaurants using android
technology. This system was a basic dynamic database utility system which
fetches all information from a centralized database. Efficiency and accuracy of
restaurants as well as human errors were improved by this user-friendly
application. Earlier drawbacks of automated food ordering systems were
overcome by this system and it requires a onetime investment for gadgets. In
[4] an application of integration of hotel management systems by web services
technology is presented. Ordering System Kitchen Order Ticket (KOT), Billing
System, Customer Relationship Management system (CRM) are held together by
the Digital Hotel Management. Add or expand of hotel software system in any size
of hotel chains environment was possible with this solution. In
[5] research work aims to design and develop a wireless food ordering system in
the restaurant. Technical operations of Wireless Ordering System (WOS) including
systems architecture, function, limitations and recommendations were presented
in this system. It was believed that with the increasing use of handheld device
such as PDAs in restaurants, pervasive application will become an important tool
for restaurants to improve the management aspect by minimizing human errors
and by providing higher quality customer service. In
[6] along with customer feedback for a restaurant a design and execution of
wireless food ordering system was carried out. It enables restaurant owners to
setup the system in wireless environment and update menu presentations easily.
Smart phone has been integrated in the customizable wireless food ordering
system with real-time customer feedback implementation to facilitate real-time
communication between restaurant owners and customers.
In Paper
[7], the purpose of this study was to investigate the factors that influence the
attitude of internet users towards online food ordering in Turkey among
university students. A Technology Acceptance Model (TAM) developed by Davis in
1986 was used to study adoption of Web environment for food ordering. Trust,
Innovativeness and External Influences are added to the model as main factors
along with TAM. In Paper
[8], the research work aims to automate the food ordering process in restaurant
and also improve the dining experience of customers. Design implementation of
food ordering system for restaurants were discuss in this paper. This system,
implements wireless data access to servers. The android application on user’s
mobile will have all the menu details. Kitchen and cashier receives the order
details from the customer mobile wirelessly. These order details are updated in
the central database. The restaurant owner can manage the menu modifications
easily. In Paper
[9], this research works on eff orts taken by restaurants owners also to adopt
information and communication technologies such as PDA, wireless LAN, costly
multi-touch screens etc. to enhance dining experience. This paper highlights some
of the limitations of the conventional paper based and PDA-based food ordering
system and proposed the low-cost touch screen based Restaurant Management
System using an android Smartphone or tablet as a solution.

PROPOSED SYSTEM
To overcome the limitations of above system, an Online Food Ordering System
based on Internet of Things is proposed. It is a wireless food ordering system
using android devices. Android devices have gained immense popularity and have
revolutionized the use of mobile technology in the automation of routine task in
wireless environment. Android is a Linux based operating system for mobile
devices such as smartphones and tablets. To develop a reliable, convenient and
accurate Food Ordering System is considered as a general Objective of the study.
To develop a system that will surely satisfied the customer service will be
considered as an objective. One of the Objective is to design a system that is able
to accommodate huge amount of orders at a time and automatically compute the
bill. To evaluate its performance and acceptability in terms of security, user-
friendliness, accuracy and reliability is an important objective. To improve the
communication between the client and customers is one of the objective. The
figure.1 represents the simple system architecture of the proposed system:
for hygienic and quality food, so he/she will search and select restaurant or
home-based food service based on his category and as well as service that is veg
or non-veg. Here the main function is, in what pattern user will search the service
so for that purpose a part of Geo-Hashing Algorithm is used, and GPS system
should be on. Person can have the facility to search service by location that is
home location of the person is detected with GPS and according to selected
option location of nearby service get searched. Another way for searching is by
cost. Here user must give input in terms of rupees that in what range he/she need
service per plate if there are any service provider within that area than the list will
display. User can also search by rating. The service that has rating is checked by
user given rating and if matched it will give the list of service. Search can be done
by accepting distance from user in which user need to search and displaying
service provider within that distance. User can communicate to service provider
with the help of message box and get notification from provider end if any. On
the other end provider has facility to add or reject request from person who want
to join the service.
Coding
// C program to implement the Food

// Ordering System

#include <stdio.h>

#include <string.h>

// Structure to store the

// user details (Signup details)

struct details {

char uname[100];

int age;

char password[100];

char email[100];

char mobile[10];

};

// Structure to store the

// hotels and their food details

struct hotels {

char hotel[100];

char first_food[20];

char second_food[20];

char third_food[20];

char fourth_food[25];

int first, second, third, fourth;

};

struct hotels m[5];

struct details s[100];


// Function to get the

// input for new account.

void signup();

// Function to check whether

// the account is already

// existed or not

void account_check();

// Function to validate

// all the input fields.

int validate();

void login();

void cart();

void search_by_hotels();

void search_by_food();

void food_order(int food);

// Function to initialize the

// hotels and food

// structure dynamically

void hotel_initialize();

void hotels(int hotel_choice);

int flag = 1, i, j = 0, count = 0, caps = 0;

int small = 0, special = 0, numbers = 0;

int success = 0, x, choice;

char temp_name[100], temp_password1[100];

char temp_password2[100], temp_email[100];

char temp_mobile[100];

int temp_age, total = 0, food_choice, n;

int hotel_choice, search_choice, confirm;


int ch, food, hotel_id;

// Boilerplate Code for the

// Food Ordering System

int main()

while (1) {

printf("\n\n********************Welcome to Food Ordering System**************** ");

printf("\n\n1)SIGNUP\n");

printf("2)LOGIN\n3)EXIT\n\n");

printf("Enter your choice:");

scanf("%d", &choice);

switch (choice) {

case 1: {

signup();

break;

case 2: {

login();

break;

case 3: {

printf("\n**********************Thank you visit again*******************\n");

exit(0);

return 0;

default: {

printf("\nPlease Enter the valid choice\n");

break;

}
}

// Function to create a new

// user for the Food ordering

// system

void signup()

printf("\n\n************Welcome to signup page*************\n");

printf("\tEnter Your name: ");

scanf("%s", temp_name);

printf("\tEnter Your Age: ");

scanf("%d", &temp_age);

printf("\tEnter Your Email: ");

scanf("%s", temp_email);

printf("\tEnter Password: ");

scanf("%s", temp_password1);

printf("\tConfirm Password:");

scanf("%s", temp_password2);

printf("\nEnter Your Mobile Number: ");

scanf("%s", temp_mobile);

// Function Call to validate

// the user creation

x = validate();

if (x == 1){

account_check();

login();
}

// Function to validate the user

// for signup process

int validate()

// Validate the name

for (i = 0; temp_name[i] != '\0'; i++) {

if (!((temp_name[i] >= 'a' && temp_name[i] <= 'z')

|| (temp_name[i] >= 'A'

&& temp_name[i] <= 'Z'))) {

printf("\nPlease Enter the valid Name\n");

flag = 0;

break;

if (flag == 1) {

count = 0;

// Validate the Email ID

for (i = 0;temp_email[i] != '\0'; i++) {

if (temp_email[i] == '@'|| temp_email[i] == '.')

count++;

if (count >= 2&& strlen(temp_email) >= 5) {

// Validating the Password and

// Check whether it matches

// with Conform Password

if (!strcmp(temp_password1,

temp_password2)) {

if (strlen(temp_password1) >= 8
&& strlen(temp_password1) <= 12) {

caps = 0;

small = 0;

numbers = 0;

special = 0;

for (i = 0; temp_password1[i] != '\0';

i++) {

if (temp_password1[i] >= 'A'

&& temp_password1[i] <= 'Z')

caps++;

else if (temp_password1[i] >= 'a'

&& temp_password1[i]

<= 'z')

small++;

else if (temp_password1[i] >= '0'

&& temp_password1[i]

<= '9')

numbers++;

else if (temp_password1[i] == '@'

|| temp_password1[i] == '&'

|| temp_password1[i] == '#'

|| temp_password1[i]

== '*')

special++;

if (caps >= 1 && small >= 1

&& numbers >= 1 && special >= 1) {

// Validating the Input age

if (temp_age != 0 && temp_age > 0) {

// Validating the Input mobile

// number

if (strlen(temp_mobile) == 10) {
for (i = 0; i < 10; i++) {

if (temp_mobile[i]

>= '0'

&& temp_mobile[i]

<= '9') {

success = 1;

else {

printf("\n\nPlease Enter Valid


mobile Number\n\n");

return 0;

break;

// Success is assigned with

// value 1, Once every

// inputs are correct.

if (success == 1)

return 1;

else {

printf("\n\nPlease Enter the 10 digit mobile


number\n");

return 0;

else {

printf("\n\nPlease Enter the valid age\n\n");

return 0;

else {
printf("\n\nPlease Enter the");

printf("strong password, Your ");

printf("password must contain ");

printf("atleast one uppercase, ");

printf("Lowercase, Number and ");

printf("special character\n\n");

return 0;

else {

printf("\nYour Password is very short\nLength must between 8 to 12\n\


n");

return 0;

else {

printf("\nPassword Mismatch\n\n");

return 0;

else {

printf("\nPlease Enter Valid E-Mail\n\n");

return 0;

// Function to check if the account

// already exists or not

void account_check()

{
for (i = 0; i < 100; i++) {

// Check whether the email

// and password are already

// matched with existed account

if (!(strcmp(temp_email, s[i].email)

&& strcmp(temp_password1,

s[i].password))) {

printf("\n\nAccount Already Existed. Please Login !!\n\n");

main();

break;

// if account does not already

// existed, it creates a new

// one with new inputs

if (i == 100) {

strcpy(s[j].uname, temp_name);

s[j].age = temp_age;

strcpy(s[j].password, temp_password1);

strcpy(s[j].email, temp_email);

strcpy(s[j].mobile, temp_mobile);

j++;

printf("\n\n\nAccount Successfully Created!!\n\n");

// Function to Login the users

void login()

printf("\n\n**************Welcome to Login page ****************\n\n");

printf("\tEnter Your Email: ");


scanf("%s", temp_email);

printf("\tEnter Your Password: ");

scanf("%s", temp_password1);

for (i = 0; i < 100; i++) {

// Check whether the input

// email is already existed or not

if (!strcmp(s[i].email, temp_email)) {

// Check whether the password

// is matched with the email or not

if (!strcmp(s[i].password, temp_password1)) {

printf("\n\nWelcome %s, ", s[i].uname);

printf("Your are successfully ");

printf("logged in\n\n ");

printf("We Provide two ways of search\n ");

printf("1) Search By Hotels\n ");

printf("2) Search by Food\n ");

printf("3)Exit\n\n");

printf("Please Enteyour choice:");

scanf("%d", &search_choice);

// Getting the input whether

// the user are going to search

// /Order by hotels or search/

// order by food.

switch (search_choice) {

case 1: {

search_by_hotels();

break;

case 2: {

search_by_food();

break;
}

case 3: {

// exit(1);

main();

return;

default: {

printf("Please Enter the valid choice\n\n ");

break;

break;

else {

printf("\n\nInvalid Password! ");

printf("Please Enter the correct password\n\n");

main();

break;

else {

printf("\n\nAccount doesn't exist,Please signup!!\n\n ");

main();

break;

// Function to implement the Hotel

// initializer

void hotel_initialize()

{
// Initializing the structure

// with Aarya_bhavan hotel and

// some foods name and

// their respective costs.

strcpy(m[1].hotel, "Aarya_Bhavan");

strcpy(m[1].first_food, "Sandwich");

strcpy(m[1].second_food, "Pizza");

strcpy(m[1].third_food, "Fried_Rice");

strcpy(m[1].fourth_food,"Ice_Cream");

m[1].first = 70;

m[1].second = 100;

m[1].third = 95;

m[1].fourth=50;

// Initializing the structure with

// Banu_Hotel and some foods name

// and their respective costs.

strcpy(m[2].hotel, "Banu_Hotel");

strcpy(m[2].first_food, "Parotta");

strcpy(m[2].second_food, "Noodles");

strcpy(m[2].third_food, "Chicken_Rice");

strcpy(m[2].fourth_food,"Dosa");

m[2].first = 15;

m[2].second = 75;

m[2].third = 80;

m[2].fourth=50;

// Initializing the structure with

// SR_Bhavan hotel and some foods

// name and their respective costs.

strcpy(m[3].hotel, "SR_Bhavan");

strcpy(m[3].first_food, "Chicken_Biriyani");
strcpy(m[3].second_food, "Prawn");

strcpy(m[3].third_food, "Faloda");

strcpy(m[3].fourth_food,"burger");

m[3].first = 90;

m[3].second = 120;

m[3].third = 35;

m[4].fourth=50;

// Function to implement the search

// by hotels

void search_by_hotels()

hotel_initialize();

printf(""

"\n\nPlease Choose the");

printf("hotels\n\n1) %s\n2) %s\n3) %s",

m[1].hotel,

m[2].hotel, m[3].hotel);

printf("\n4) Exit\n\nPlease ");

printf("select the hotel\t");

scanf("%d", &hotel_choice);

if (hotel_choice > 4) {

printf("Please Enter the");

printf("valid choice\n\n");

search_by_hotels();

else if (hotel_choice == 4)

// exit(1);

return;

else

hotels(hotel_choice);
}

// Function to implement the hotel

void hotels(int hotel_choice)

total = 0;

while (1) {

// Displays the list of

// foods available in

// selected hotel

printf("\n\nList of foods available");

printf("in %s\n\n1) %s\tRs: %d\n2)",

m[hotel_choice].hotel,

m[hotel_choice].first_food,

m[hotel_choice].first);

printf("%s\tRs: %d\n3) %s\tRs: %d\n4)",

m[hotel_choice].second_food,

m[hotel_choice].second,

m[hotel_choice].third_food,

m[hotel_choice].third);

printf("Cart\n5) Exit\n\nPlease Enter");

printf("Your Choice\t");

scanf("%d", &food_choice);

// Get the input for no

// of foods to calculate

// the total amount

if (food_choice == 1) {

printf("Please Enter the ");


printf("Count of %s\t",

m[hotel_choice].first_food);

scanf("%d", &n);

total = total

+ (n * m[hotel_choice].first);

else if (food_choice == 2) {

printf("Please Enter the Count");

printf("of %s\t",

m[hotel_choice].second_food);

scanf("%d", &n);

total = total

+ (n * m[hotel_choice].second);

else if (food_choice == 3) {

printf("Please Enter the Count");

printf("of %s\t",

m[hotel_choice].third_food);

scanf("%d", &n);

total = total

+ (n * m[hotel_choice].third);

// Once the user, completed their

// order, they can go to cart

// by giving choice as 4.

else if (food_choice == 4) {

cart();

else if (food_choice == 5) {

search_by_hotels();

}
else {

printf("Please Enter the");

printf("valid Choice\n\n");

void search_by_food()

total = 0;

// Initialize all the

// hotels and their foods

hotel_initialize();

while (1) {

printf("\n\nPlease choose the ");

printf("food\n\n1) %s\t%d\n2) %s\t%d",

m[1].first_food, m[1].first,

m[1].second_food, m[1].second);

printf("\n3) %s\t%d\n4) %s\t%d\n",

m[1].third_food, m[1].third,

m[2].first_food, m[2].first);

printf("5) %s\t%d\n6) %s\t%d\n",

m[2].second_food, m[2].second,

m[2].third_food, m[2].third);

printf("7) %s\t%d\n8) %s\t%d\n",

m[3].first_food, m[3].first,

m[3].second_food, m[3].second);

printf("9) %s\t%d\n10) Cart\n",


m[3].third_food,

m[3].third);

printf("11) Exit");

printf("\nPlease Enter Your Choice\t");

scanf("%d", &food);

if (food > 10) {

printf("Please Enter the ");

printf("valid choice\n\n");

search_by_food();

// Moves to the cart

// functionality

else if (food == 10)

cart();

else if (food == 11)

// exit(1);

return;

// Call food_order functionality

// to get the no of foods and

// to calculate the total

// amount of the order.

else

food_order(food);

// Function to implement the food

// order functionality

void food_order(int food)

if (food >= 1 && food <= 3)

hotel_id = 1;
else if (food >= 4 && food <= 6)

hotel_id = 2;

else

hotel_id = 3;

if ((food % 3) == 1) {

printf("Please Enter the");

printf(" Count of %s\t",

m[hotel_id].first_food);

scanf("%d", &n);

total = total + (n * m[hotel_id].first);

else if ((food % 3) == 2) {

printf("Please Enter the ");

printf("Count of %s\t",

m[hotel_id].second_food);

scanf("%d", &n);

total = total + (n * m[hotel_id].second);

else if ((food % 3) == 0) {

printf("Please Enter the ");

printf("Count of %s\t",

m[hotel_id].third_food);

scanf("%d", &n);

total = total + (n * m[hotel_id].third);

// Function to implement the cart

void cart()

printf("\n\n\n\n*************Cart***************");

printf("\nYour Total Order");


printf("Amount is: %d\n", total);

printf("\n\nDo You wish to");

printf("order (y=1/n=0): ");

scanf("%d", &ch);

if (ch == 1) {

printf("\n\nThank You for your");

printf("order!! Your Food is on ");

printf("the way. Welcome again!!\n\n");

// exit(1);

return;

else if (ch == 0) {

printf("Do You want to exit =-1");

printf("or Go back =0");

scanf("%d", &confirm);

if (confirm == 1) {

printf("\n\nOops! Your order is");

printf("cancelled!! Exiting..");

printf("Thank You visit again!\n");

// exit(1);

return;

else {

printf("\n\nThank You\n\n");

login();

else {

printf("\n\nPlease Enter the ");

printf("correct choice\n\n");

cart();

}
}
Output:
RESULTS
The result of our system application includes an Android Application as well as a
Web-based application. Once a customer place an order for a restaurant / mess,
he/she will get the order Id on the screen dynamically. The customer can check
the status of the order through the Order Status interface provided in the GUI of
the application. We have developed the system application in such a way that the
customer can order the food first and then enter the required credentials while
checkout. Once the order is delivered to the customer, a feedback mail is send to
the customer regarding his experience with the entire application. The feedback
mail consists of the star rating as well as comments of the customer. The
customer can track his order through the Tracking Interface provided in the GUI
of the application. The restaurant / mess owner as well as customer can track the
order in our system application. The preview of this tracking system is shown
below:

HARDWARE REQUIREMENTS

PROCESSOR : Intel Pentium 4 or more


RAM : 1 GB or more
MONITOR : 15” COLOR
HARD DISK : 40 GB hard disk recommended
KEYBOARD : STANDARD 102 KEYS

SOFTWARE REQUIREMENTS

OPERATING SYSTEM : Windows 7 Ultimate


FRONT-END : C++
LANGUAGE : C++
BACKEND : SQL Server 2008
CONCLUSION
Therefore, conclusion of the proposed system is based on user’s need and is user
centered. The system is developed in considering all issues related to all user
which are included in this system. Wide range of people can use this if they know
how to operate android smart phone. Various issues related to Mess/Tiffin
Service will be solved by providing them a fullfledged system. Thus,
implementation of Online Food Ordering system is done to help and solve one of
the important problems of people. Based on the result of this research, it can be
concluded: It helps customer in making order easily; It gives information needed
in making order to customer. The Food website application made for restaurant
and mess can help restaurant and mess in receiving orders and modifying its data
and it is also made for admin so that it helps admin in controlling all the Food
system. With online food ordering system, a restaurant and mess menu online
can be set up and the customers can easily place order. Also with a food menu
online, tracking the orders is done easily, it maintain customer’s database and
improve the food delivery service. The restaurants and mess can even customize
online restaurant menu and upload images easily. Having a restaurant menu on
internet, potential customers can easily access it and place order at their
convenience. Thus, an automated food ordering system is presented with
features of feedback and wireless communication. The proposed system would
attract customers and adds to the efficiency of maintaining the restaurant and
mess ordering and billing sections. Scope of the proposed system is justifiable
because in large amount peoples are shifting to different cities so wide range of
people can make a use of proposed system.
REFERENCES

[1]. Kirti Bhandge, Tejas Shinde, Dheeraj Ingale, Neeraj Solanki, Reshma Totare,dzA
Proposed System for Touchpad Based Food Ordering System Using Android
Applicationdz, International Journal of Advanced Research in Computer Science
Technology (IJARCST 2015). [2]. Varsha Chavan, Priya Jadhav,Snehal Korade,Priyanka
Teli, dzImplementing Customizable Online Food Ordering System Using Web Based
Applicationdz, International Journal of Innovative Science, Engineering
Technology(IJISET) 2015. [3]. Resham Shinde, Priyanka Thakare, Neha Dhomne,
Sushmita Sarkar, dzDesign and Implementation of Digital dining in Restaurants using
Androiddz, International Journal

You might also like