0% found this document useful (0 votes)
8 views11 pages

Food Order Project Presentation

Foodie's Stop is a C++ food ordering system that simulates user login, menu display, order processing, and rider assignment using OOP concepts like polymorphism and inheritance. The application features file handling for saving orders and assigns a random rider for delivery. It can be enhanced with additional features such as a cancel option and real-time delivery status.

Uploaded by

kumares22061997
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
8 views11 pages

Food Order Project Presentation

Foodie's Stop is a C++ food ordering system that simulates user login, menu display, order processing, and rider assignment using OOP concepts like polymorphism and inheritance. The application features file handling for saving orders and assigns a random rider for delivery. It can be enhanced with additional features such as a cancel option and real-time delivery status.

Uploaded by

kumares22061997
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
You are on page 1/ 11

Foodie's Stop

• Food Ordering System in C++


• Created using:
• - Polymorphism
• - Inheritance
• - File Handling
• Developed in Code::Blocks
Introduction
• A food ordering app simulation.
• User login → Menu display → Order → Bill →
Rider assignment.
• Built using C++ with 431 lines of code.
• Uses multiple and multilevel inheritance.
Working Principle
• User logs in using credentials.
• Menu items displayed with numbers.
• Order by entering item numbers.
• Orders saved using file handling.
• Final bill generated with cashier info.
• A random rider is assigned for delivery.
Menu Sample
• Items Available:
• 1. Veggie Supreme (Rs.480)
• 2. Exotica Pizza (Rs.440)
• 3. Chicken Sizzler (Rs.580)
• ...
• 15. Hot Dog (Rs.360)
Key Features in Code
• Inheritance: Class `three` inherits from `one`
and `two`.
• Polymorphism: Dynamic user inputs handled
with conditional logic.
• File Handling: Uses `ofstream` to save order
details to a file.
• Randomization: Riders assigned using `rand()`.
Sample Order Flow
• 1. User logs in (ID: 1353, Password: pass).
• 2. Selects food items and quantities.
• 3. Order saved and billed.
• 4. System assigns a random rider.
• 5. Order complete.
Code Snippet – Menu Function
• void one::menu1() {
• cout << "WELCOME TO FOODIE'S STOP
PIZZAZ";
• cout << "[1] Veggie Supreme (Rs.480) ... [15]
Hot Dog (Rs.360)";
• }
Code Snippet – Order Processing
• case 1:
• cin >> pizza;
• s = s + 480 * pizza;
• write << "Veggie Supreme ordered";
• break;
Code Snippet – Rider Assignment
• int s = rand() % 7;
• switch(s) {
• case 0: cout << "Rider 1 assigned"; break;
• ...
• }
Output & Simulation
• Menu displayed in console.
• Orders stored in `order.text`.
• Bill printed with total.
• Console displays assigned rider.
Conclusion
• Simulates a basic food ordering system.
• Demonstrates OOP concepts in C++:
• - Polymorphism
• - Inheritance
• - File Handling
• Can be improved with:
• - Cancel option
• - Real-time delivery status

You might also like

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy