Oops Restro
Oops Restro
Micro project
On
Guided By
Mrs. P .V. Javkar
Sinhgad Institutes
Certificate
This is to certify that Ms. Dhruvil Rupareliya with Roll No. 57 of Semester III
of Diploma in Computer Technology of Institute Sou. Venutai Chavan
Polytechnic (Code: 0040) has successfully completed the Micro-Project in
Object Oriented Programming Using C++ (22316) for the academic year 2023-
2024 as prescribed in the curriculum.
Certificate
This is to certify that Mr. Rushikesh Chikorde with Roll No. 62of Semester III
of Diploma in Computer Technology of Institute Sou. Venutai Chavan
Polytechnic (Code: 0040) has successfully completed the Micro-Project in
Object Oriented Programming Using C++ (22316) for the academic year 2023-
2024 as prescribed in the curriculum.
Certificate
This is to certify that Mr. omkar devkatte with Roll No. 70 of Semester IIIof
Diploma in Computer Technology of Institute Sou. Venutai Chavan
Polytechnic (Code: 0040) has successfully completed the Micro-Project in
Object Oriented Programming Using C++ (22316) for the academic year 2023-
2024 as prescribed in the curriculum.
SR NO CONTENTS PAGE NO
2 Rationale 4
4 Literature Review 5
7 Skills Developed 34
8 Conclusion 34
Annexure - I
Micro-Project Proposal
Team members
1 Identify the requirements of the
project. /2023 /2023 Rushikesh
chikorde
2 Rushikesh
Design the structure of the project. /2023 /2023 chikorde
and
omkar devkatte
3 Develop a program using C++ Dhruvil
language. /2023 /2023 Rupareliya
5 Rushikesh
chikorde
Test the project. /2023 /2023
and
omkar devkatte
6 Dhruvil
Prepare the final report. /2023 /2023
Rupareliya
1.0 Rationale:
A managerial overview option is available to get an overview of the whole
restaurant. With this we can see which all tables are free, allocated and
their orders and complete information about the waiting queues present.
number of customers and enhances customer relationships. Also, web stores
are a means forsmall-scale companies to launch their products at the global
level. The main objective of thisproject is to develop a web- oriented
application that can provide an online shopping feature to users.
A typical online store enables the customer to browse the firm's range of
products and services, view photos or images of the products, along with
information about the productspecifications, features and prices. Online stores
usually enable shoppers to use "search" features to find specific models, brands
or items.
.
To create such systems programming languages like C++ can perform
crucial role.
• A class is an extension of the idea of structure used in C, which provide a method for
packing together data of different types. The data items are logically related. Class is a
new way of creating and implementing a user defined data type.
• The only difference between a structure and class in C++ is that, by default, the
members of a class are private while, by default, the members of a structure are
public.
Syntax:
class class_name
{
// Any variable declaration
// Any function declaration
};
E.g.:
class Book
{
string name; // variable declaration
library(); // function declaration
};
• In C++, inheritance is a process in which one object acquires all the properties and
behaviors of its parent object automatically. In such way, you can reuse, extend or
modify the attributes and behaviors which are defined in other class.
• In C++, the class which inherits the members of another class is called derived class
and the class whose members are inherited is called base class. The derived class is
the specialized class for the base class.
• Types Of Inheritance
C++ supports five types of inheritance:
1). Single inheritance
2). Multiple inheritance
3). Hierarchical inheritance
4). Multilevel inheritance
5). Hybrid inheritance
• A Derived class is defined as the class derived from the base class.
The Syntax of Derived class:
class derived_class_name :: visibility-mode base_class_name
{
// body of the derived class.
}
Syntax:
if (condition)
} else {
INHERITANCE DIAGRAM :
RESTAURANT
DISH
USER
BILLING
Department of Computer Technology Academic Year 2023-24
7.0 Source code of program:
#include<iostream>
#include<string.h>
#include<stdlib.h>
class Restaurant {
protected:
string name;
public:
Restaurant(string n) : name(n) {}
public:
Dish(string n, string dish, float p) : Restaurant(n), dishName(dish), price(p) {}
class User {
private:
string userName;
public:
User(string user) : userName(user) {}
int main() {
Dish pasta("Sample Restaurant", "Pasta", 10.99);
Dish pizza("Sample Restaurant", "Pizza", 12.99);
Dish burger("Sample Restaurant", "Burger", 8.99);
switch (choice) {
case 1:
user.placeOrder(pasta);
cout << "Total bill: $" << Billing::calculateTotal(pasta) << endl;
break;
case 2:
user.placeOrder(pizza);
cout << "Total bill: $" << Billing::calculateTotal(pizza) << endl;
break;
case 3:
user.placeOrder(burger);
cout << "Total bill: $" << Billing::calculateTotal(burger) << endl;
break;
default:
cout << "Invalid choice." << endl;
}
return 0;
}
12.0 Conclusion:
We learn to design restaurantsManagement System using C++, also we understood
basic fundamentals of online systems in of shopping as well as managing it.