Food Ordering System Project in C++ with Source Code
The Food Ordering System Project in C++ is a consoled based application and created using C++ programming language. This system is a simple mini project and compiled in Code::Blocks IDE using GCC compiler. This Food Ordering System Project is based on the fundamental idea of fast food ordering and creating complete food cost. There’s no login framework in this system. At that point the client can make a request by choosing from the menu.
This simple mini project for Food Ordering System Project in C++ is complete and totally error free and also includes a downloadable Source Code for free, just find the downloadable source code below and click to start downloading. Before you start to click the download now first you must click the Run Quick Scan for secure Download.
Discussing the highlights of the Food Ordering System Project framework, the client needs to choose any of the things from the main menu. At that point he/she needs to choose its sorts and afterward enter food amount. After this, the framework shows the complete bill of the client.
Anyway if you want level up your knowledge in programming especially C/C++ Programming Language, try this new article I’ve made for you Best C Projects with Source Code for Beginners Free Download 2022.
To start creating a Food Ordering System Project in C++, make sure that you have a Code Blocks or any platform of C++ installed in your computer.
Steps on how to create a Food Ordering System Project in C++ with Source Code
Time needed: 5 minutes.
Food Ordering System Project in C++ with Source Code
- Step 1: Create a new project.
First open the code blocks IDE and click “create a new project“.
- Step 2: Choose console application.
Second click the “console application” and after that click “next“.
- Step 3: Choose C++ language.
Third choose “C++ language” and click “next“.
- Step 4: Name Your Project.
Fourth name the project you’ve created and click “next” after that click “finish“.
- Step 5: The actual code.
You are free to copy the given source code below or download the downloadable source code given.
This function is for the main menu
In the code given below, which is for the function for the main menu. Which is you have five choices to choose in the fast food menu such as choice 1 Pizzas, choice 2 burgers, choice 3 sandwich, choice 4 rolls and choice 5 fried.(Food Ordering System Project in C++)
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 |
int main() { char fullname[30], piz1[]="Chicken Fazita" ,piz2[]="Chicken Bar BQ" ,piz3[]="Peri Peri" ,piz4[]="Creamy Max", roll_pizza1[]="Chicken Chatni Roll", roll_pizza2[]="Chicken Mayo Roll", roll_pizza3[]="Veg Roll With Fries",burger_1[]="Zinger Burger",burger_2[]="Chicken Burger",burger_3[]="Beef Burger"; char sandwich_1[]="Club Sandwich", sandwich_2[]="Chicken Crispy Sandwich", sandwich_3[]="Extream Veg Sandwich"; char fried1[]="Chicken Fried", fried2[]="Prawn Fried", fried3[]="Beef Fried",gotobeginning ; int option=0,pizzaoption,pizzaoption1, qty;// time=40; starting: system("cls"); cout<<"\t\t\t|-------------------------------------------------------|\n"; cout<<"\t\t\t| Adones Fast Food Ordering System |\n"; cout<<"\t\t\t|-------------------------------------------------------|\n\n"; cout<<"Please Enter Your Name: "; cin.getline(fullname, 20); cout<<"Hello "<<fullname<<"\n\nWhat would you like to order?\n\n"; cout<<"\t\t\t|-------------------------------------------------------|\n"; cout<<"\t\t\t| Fast Food Menu |\n"; cout<<"\t\t\t|-------------------------------------------------------|\n\n"; cout<<"[Choice 1] Pizzas\n"; cout<<"[Choice 2] Burgers\n"; cout<<"[Choice 3] Sandwich\n"; cout<<"[Choice 4] Rolls\n"; cout<<"[Choice 5] Fried\n\n"; cout<<"\nPlease Enter your Choice: "; cin>>option; |
This function is for the option/choice for pizza
In the code given below, which is for the function for choosing the pizza. In this code you will choose what kind of pizza you want to order and the calculation of total cost of your order.(Food Ordering System Project in C++)
1 2 3 4 5 6 7 8 9 10 |
if(option==1) { cout<<"\n1) "<>pizzaoption; if(pizzaoption>=1 && pizzaoption<=5) { cout<<"\n1) Small P250.00\n"<<"2) Regular P500.00\n"<<"3) Large P900.00\n"; cout<<"\nChoose Size Please:"; cin>>pizzaoption1; if(pizzaoption1>=1 && pizzaoption1<=3) cout<<"\nPlease Enter Quantity: "; cin>>qty; switch(pizzaoption1) { case 1: option = 250.00*qty; break; case 2: option = 500.00*qty; break; case 3: option = 900.00*qty; break; } system("cls"); switch (pizzaoption1) { case 1: cout<<"\t\t\t--------Your Order---------\n"; cout<<""<<qty<<" "<<piz1; cout<<"\nYour Total Bill is \nP"<<option<<"\nYour Order Will be delivered in 40 Minutes"; cout<<"\n\nThank you For Ordering From Adones Fast Food\n"; break; case 2: cout<<"\t\t--------Your Order---------\n"; cout<<""<<qty<<" "<<piz2; cout<<"\nYour Total Bill is \nP"<<option<<"\nYour Order Will be delivered in 40 Minutes"; cout<<"\nThank you For Ordering From Adones Fast Food\n"; break; case 3: cout<<"\t\t--------Your Order---------\n"; cout<<""<<qty<<" "<<piz3; cout<<"\nYour Total Bill is \nP"<<option<<"\nYour Order Will be delivered in 40 Minutes"; cout<<"\nThank you For Ordering From Adones Fast Food\n"; break; case 4: cout<<"\t\t--------Your Order---------\n"; cout<<""<<qty<<" "<<piz4; cout<<"\nYour Total Bill is \nP"<<option<<"\nYour Order Will be delivered in 40 Minutes"; cout<<"\nThank you For Ordering From Adones Fast Food\n"; break; } cout<<"Would you like to order anything else? Y / N:"; cin>>gotobeginning; if(gotobeginning=='Y' || gotobeginning=='y') { goto starting; //return 0; } } } |
This function is for the option/choice for burger
In the code given below, which is for the function for choosing the burger. In this code you will choose what kind of burger you want to order and also the calculation of total cost of your order.(Food Ordering System Project in C++)
1 2 3 4 5 6 7 8 9 10 11 |
else if(option==2) { cout<<"\n1 "<>pizzaoption1; if(pizzaoption1>=1 && pizzaoption1<=3) { cout<<"\nPlease Enter Quantity: "; cin>>qty; switch(pizzaoption1) { case 1: option = 180.00*qty; break; case 2: option = 150.00*qty; break; case 3: option = 160.00*qty; break; } system("cls"); switch (pizzaoption1) { case 1: cout<<"\t\t--------Your Order---------\n"; cout<<""<<qty<<" "<<burger_1; cout<<"\nYour Total Bill is \nP"<<option<<"\nYour Order Will be delivered in 40 Minutes"; cout<<"\nThank you For Ordering From Adones Fast Food \n"; break; case 2: cout<<"\t\t--------Your Order---------\n"; cout<<""<<qty<<" "<<burger_2; cout<<"\nYour Total Bill is \nP"<<option<<"\nYour Order Will be delivered in 40 Minutes"; cout<<"\nThank you For Ordering From Adones Pizza\n"; break; case 3: cout<<"\t\t--------Your Order---------\n"; cout<<""<<qty<<" "<<burger_3; cout<<"\nYour Total Bill is \nP"<<option<<"\nYour Order Will be delivered in 40 Minutes"; cout<<"\nThank you For Ordering From Adones Fast Food\n"; break; } cout<<"\nWould you like to order anything else? Y / N:"; cin>>gotobeginning; if(gotobeginning=='Y' || gotobeginning=='y') { goto starting; //return 0; } } } |
This function is for the option/choice for sandwich
In the code given below, which is for the function for choosing the sandwich. In this code you will choose what kind of sandwich you want to order and also the calculation of total cost of your order for sandwich.(Food Ordering System Project in C++)
1 2 3 4 5 6 7 8 9 |
else if(option==3) { cout<<"\n1 "<>pizzaoption1; if(pizzaoption1>=1 && pizzaoption1<=3) { cout<<"\nPlease Enter Quantity: "; cin>>qty; switch(pizzaoption1) { case 1: option = 240.00*qty; break; case 2: option = 160.00*qty; break; case 3: option = 100.00*qty; break; } system("cls"); switch (pizzaoption1) { case 1: cout<<"\t\t--------Your Order---------\n"; cout<<""<<qty<<" "<<sandwich_1; cout<<"\nYour Total Bill is \nP"<<option<<"\nYour Order Will be delivered in 40 Minutes"; cout<<"\nThank you For Ordering From Adones Fast Food\n"; break; case 2: cout<<"\t\t--------Your Order---------\n"; cout<<""<<qty<<" "<<sandwich_2; cout<<"\nYour Total Bill is \nP"<<option<<"\nYour Order Will be delivered in 40 Minutes"; cout<<"\nThank you For Ordering From Adones Fast Food\n"; break; case 3: cout<<"\t\t--------Your Order---------\n"; cout<<""<<qty<<" "<<sandwich_2; cout<<"\nYour Total Bill is \nP"<<option<<"\nYour Order Will be delivered in 40 Minutes"; cout<<"\nThank you For Ordering From Adones Fast Food\n"; break; } cout<<"Would you like to order anything else? Y / N:"; cin>>gotobeginning; if(gotobeginning=='Y' || gotobeginning=='y') { goto starting; //return 0; } } } |
This function is for the option/choice for drinks
In the code given below, which is for the function for choosing the drinks. In this code you will choose what kind of drinks you want to order and also the calculation of total cost of your order for drinks.(Food Ordering System Project in C++)
1 2 3 4 5 6 7 8 9 10 11 |
else if(option==4) { cout<<"\n1 "<>pizzaoption1; if(pizzaoption1>=1 && pizzaoption1<=3) { cout<<"\nHow Much Drinks Do you want: "; cin>>qty; switch(pizzaoption1) { case 1: option = 150.00*qty; break; case 2: option = 100.00*qty; break; case 3: option = 120.00*qty; break; } system("cls"); switch (pizzaoption1) { case 1: cout<<"\t\t--------Your Order---------\n"; cout<<""<<qty<<" "<<drinks1; cout<<"\nYour Total Bill is \nP"<<option<<"\nYour Order Will be delivered in 1 Minutes"; cout<<"\nThank you For Ordering From Adones Fast Food\n"; break; case 2: cout<<"\t\t--------Your Order---------\n"; cout<<""<<qty<<" "<<drinks2; cout<<"\nYour Total Bill is \nP"<<option<<"\nYour Order Will be delivered in 1 Minutes"; cout<<"\nThank you For Ordering From Adones Fast Food\n"; break; case 3: cout<<"\t\t--------Your Order---------\n"; cout<<""<<qty<<" "<<drinks3; cout<<"\nYour Total Bill is \nP"<<option<<"\nYour Order Will be delivered in 1 Minutes"; cout<<"\nThank you For Ordering From Adones Fast Food\n"; break; } } } |
This function is for the option/choice for fried
In the code given below, which is for the function for choosing the fried. In this code you will choose what kind of fried you want to order and also the calculation of total cost of your order for fried.(Food Ordering System Project in C++)
1 2 3 4 5 6 7 8 9 |
else if(option==5) { cout<<"\n1 "<>pizzaoption1; if(pizzaoption1>=1 && pizzaoption1<=3) { cout<<"\nPlease Enter Quantity: "; cin>>qty; switch(pizzaoption1) { case 1: option = 160.00*qty; break; case 2: option = 220.00*qty; break; case 3: option = 140.00*qty; break; } system("cls"); switch (pizzaoption1) { case 1: cout<<"\t\t--------Your Order---------\n"; cout<<""<<qty<<" "<<fried1; cout<<"\nYour Total Bill is \nP"<<option<<"\nYour Order Will be delivered in 40 Minutes"; cout<<"\nThank you For Ordering From Adones Fast Food \n"; break; case 2: cout<<"\t\t--------Your Order---------\n"; cout<<""<<qty<<" "<<fried2; cout<<"\nYour Total Bill is \nP"<<option<<"\nYour Order Will be delivered in 40 Minutes"; cout<<"\nThank you For Ordering From Adones Fast Food\n"; break; case 3: cout<<"\t\t--------Your Order---------\n"; cout<<""<<qty<<" "<<fried3; cout<<"\nYour Total Bill is \nP"<<option<<"\nYour Order Will be delivered in 40 Minutes"; cout<<"\nThank you For Ordering From Adones Fast Food\n"; break; } cout<<"Would you like to order anything else? Y / N:"; cin>>gotobeginning; if(gotobeginning=='Y' || gotobeginning=='y') { goto starting; //return 0; } } } else { system("cls"); cout<<"Please Select Right Choice: \n"; cout<<"Would You like to Start the program again? Y / N: " ; cin>>gotobeginning; if(gotobeginning=='Y' || gotobeginning=='y') { goto starting; //return 0; } } |
ABOUT PROJECT | PROJECT DETAILS |
---|---|
Project Name : | Food Ordering System |
Project Platform : | C/C++ |
Programming Language Used: | C++ Programming Language |
Developer Name : | itsourcecode.com |
IDE Tool (Recommended): | Dev-C++/Codeblocks |
Project Type : | Desktop Application |
Database: | Stores data in .DAT file |
Upload Date and Time: | October 1, 2020 – 7:15 am |
Downloadable Source Code
Summary
In summary, this 2022 Food Ordering System Project in C++ project can be useful to students or professional who wants to learn C++ programming language. This project can also be modified to fit your personal requirements. Hope this project will help you to improve your skills.
That’s how you create Food Ordering System Project in C++ with Source Code in your projects. You can always expand and try different ways in implementing the Food Ordering System Project in C++ in your C++ projects. In this Mini Project for Food Ordering System Project in C++ with Source Code is free to download and It is easy to understand and manipulate this project and use for education purpose only.
Related Articles
- Student Record System in C with Source Code
- Calendar In C Programming With Source Code
- Mini Project for Phonebook in C with Source Code
- Employee Management System In C With Source Code
- School Billing System in C with Source Code
- Library Management System In C++ With Source Code
- School Management System In C++ With Source Code
- Bus Reservation System in C++ with Source Code
- Bank Management System in C++ with Source Code
- Student Management System In C++ With Source Code
- Hostel Booking System Project in C++ with Source Code
Inquiries
If you have any questions or suggestions about Food Ordering System Project in C++ with Source Code, please feel free to leave a comment below.