0% found this document useful (0 votes)
32 views20 pages

Oddp

The document describes a hotel management system project built using C++. It includes modules for tracking available and sold inventory of rooms, food items and calculating total sales. The modules include a menu to select items to book/order and view sales report. Diagrams like use case, class, sequence are included to represent the design.

Uploaded by

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

Oddp

The document describes a hotel management system project built using C++. It includes modules for tracking available and sold inventory of rooms, food items and calculating total sales. The modules include a menu to select items to book/order and view sales report. Diagrams like use case, class, sequence are included to represent the design.

Uploaded by

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

PROJECT REPORT

HOTEL MANAGEMENT SYSTEM

Submitted by

Ansh Maheshwari RA2211003010377


Aarush Kaushik RA2211003010378
Yashwanth NV RA2211003010382
Ishita Banerjee RA2211003010391

Under the Guidance of

Dr. Sathyapriya Loganathan

Course Faculty, OODP

In partial satisfaction of the requirements for the degree of

BACHELOR OF TECHNOLOGY
in
COMPUTER SCIENCE ENGINEERING

SCHOOL OF COMPUTING

COLLEGE OF ENGINEERING AND TECHNOLOGY


SRM INSTITUTE OF SCIENCE AND TECHNOLOGY
KATTANKULATHUR - 603203
MAY 2023

1
SRM INSTITUTION OF SCIENCE AND TECHNOLOGY
KATTANKULATHUR-603203

BONAFIDE CERTIFICATE

Certified that this Project Report titled “Hotel Management System” is the bonafide work done by

Ansh Maheshwari RA2211003010377, Aarush RA2211003010378, Yashwanth

RA2211003010382, Ishita Banerjee RA2211003010391, who completed the project under my

supervision. Certified further, that to the best of my knowledge the work reported herein does not

form part of any other work.

SIGNATURE SIGNATURE
Dr. Sathyapriya Loganathan Dr. M Pushpalatha
OODP – Course Faculty Head of the Department
Department of OODP Department of OODP
SRMIST SRMIST

2
TABLE OF CONTENTS

S.No CONTENTS PAGE NO

4
1. Problem Statement

5
2. Modules of Project

3. Diagrams

9
a. Use case Diagram

9
b. Class Diagram

10
c. Sequence Diagram

10
d. Collaboration Diagram

11
e. State Chart Diagram

12
f. Activity Diagram

12
g. Package Diagram

13
h. Component Diagram

13
i. Deployment Diagram

14
4. Code/Output Screenshots

19
5. Conclusion and Results

20
6. References

3
Problem Statement

The records of Hotel ABC are all recorded via writing. This method has proven to be inefficient and
extremely time-consuming. Write a program that keeps track of all of the available stock the hotel
has, how much of the stock is used up, and how much the hotel has earned. Make sure that the
program is easy to understand and run by the hotel staff. Also, use C++ as the coding language of
this program.

4
Modules of Project

#include<iostream>
using namespace std;

int main()
{
int Qrooms=0,Qpasta=0,Qburger=0,Qnoodles=0,Qshake=0,Qchicken=0;

int Srooms=0,Spasta=0,Sburger=0,Snoodles=0,Sshake=0,Schicken=0;

int Total_rooms=0, Total_pasta=0, Total_burger=0, Total_noodles=0, Total_shake=0,


Total_chicken=0;

int choice,q;

cout<<"\n\t\tQuantity of items we have";


cout<<"\n Rooms avaliable : ";
cin>>Qrooms;
cout<<"\n Quantity of Pasta : ";
cin>>Qpasta;
cout<<"\n Quantity of Burger : ";
cin>>Qburger;
cout<<"\n Quantity of Noodles : ";
cin>>Qnoodles;
cout<<"\n Quantity of Shake : ";
cin>>Qshake;
cout<<"\n Quantity of Chicken-roll : ";
cin>>Qchicken;
p:

// system("cls");
cout<<"\n\t\t\tPlease select from the given menu options";
cout<<"\n\n 1) Rooms";
cout<<"\n 2) Pasta";
cout<<"\n 3) Burger";
cout<<"\n 4) Noodles";
cout<<"\n 5) Shake";
cout<<"\n 6) Chicken-roll";
cout<<"\n 7) Information regarding sales and collection";
cout<<"\n 8) Exit";
cout<<"\n\n Please enter Your Choice : ";
cin>>choice;
5
switch(choice)
{
case 1:
cout<<"\n\n Enter Number of rooms you want : ";
cin>>q;
if(Qrooms-Srooms >= q)
{
Srooms = Srooms + q;
Total_rooms =Total_rooms + (q*1200);
cout<<"\n\n\t\t"<<q<<" room/rooms have been alotted! ";
}
else

cout<<"\n\tOnly "<<Qrooms-Srooms<<" Rooms Remaining in hotel";


break;

case 2:
cout<<"\n\n Enter Pasta Quantity : ";
cin>>q;
if(Qpasta-Spasta >= q)
{
Spasta =Spasta + q;
Total_pasta =Total_pasta + (q*250);
cout<<"\n\t"<<q<<" Pasta is the order";
}
else
cout<<"\n\n\t\tOnly "<<Qpasta-Spasta<<" Pastas Remaining in stock";
break;

case 3:
cout<<"\n\n Enter Burger Quantity : ";
cin>>q;
if(Qburger-Sburger >= q)
{
Sburger =Sburger + q;
Total_burger =Total_burger + q*50;
cout<<"\n\n\t\t"<<q<<" Burger is the order";
}
else
cout<<"\n\tOnly "<<Qburger-Sburger<<" Burgers Remaining in stock";
break;
case 4:
cout<<"\n\n Enter Noodles Quantity : ";
6
cin>>q;
if(Qnoodles-Snoodles >= q)
{
Snoodles =Snoodles + q;
Total_noodles =Total_noodles + (q*200);
cout<<"\n\n\t\t"<<q<<" Noodles is the order";
}
else
cout<<"\n\tOnly "<<Qnoodles-Snoodles<<" Noodles Remaining in stock";
break;

case 5:
cout<<"\n\n Enter Shakes Quantity : ";
cin>>q;
if(Qshake-Sshake >= q)
{
Sshake =Sshake + q;
Total_shake =Total_shake + q*170;
cout<<"\n\n\t\t"<<q<<" shakes is the order";
}
else
cout<<"\n\tOnly "<<Qshake-Sshake<<" shakes Remaining in stock";
break;

case 6:
cout<<"\n\n Enter Chicken-roll Quantity : ";
cin>>q;
if(Qchicken-Schicken >= q)
{
Schicken =Schicken + q;
Total_chicken =Total_chicken + q*160;
cout<<"\n\n\t\t"<<q<<" Chicken-rolls is the order";
}
else
cout<<"\n\tOnly "<<Qchicken-Schicken<<" Chicken-roll Remaining in
stock";
break;

case 7:

cout<<"\n\t\tDetails of sales and collection ";


cout<<"\n\n Number of Rooms we had : "<<Qrooms;
cout<<"\n Number of Rooms we gave for rent : "<<Srooms;
cout<<"\n Remaining Rooms : "<<Qrooms-Srooms;
7
cout<<"\n\n Total Rooms collection for the Day : "<<Total_rooms;

cout<<"\n\n Number of Pastas we had : "<<Qpasta;


cout<<"\n Number of Pastas we sold : "<<Spasta;
cout<<"\n Remaining Pastas : "<<Qpasta-Spasta;
cout<<"\n\n Total Pasta collection for the Day : "<<Total_pasta;

cout<<"\n\n Number of burgers we had : "<<Qburger;


cout<<"\n Number of burgers we sold : "<<Sburger;
cout<<"\n Remaining Burgers : "<<Qburger-Sburger;
cout<<"\n\n Total Burger collection for the Day : "<<Total_burger;

cout<<"\n\n Number of Noodles we had : "<<Qnoodles;


cout<<"\n Number of Noodles we sold : "<<Snoodles;
cout<<"\n Remaining Noodles : "<<Qnoodles-Snoodles;
cout<<"\n\n Total Noodles collection for the Day : "<<Total_noodles;

cout<<"\n\n Number of shakes we had : "<<Qshake;


cout<<"\n Number of Shakes we sold : "<<Sshake;
cout<<"\n Remaining Shakes : "<<Qshake-Sshake;
cout<<"\n\n Total Shakes collection for the Day : "<<Total_shake;

cout<<"\n\n Number of Chicken-roll we had : "<<Qchicken;


cout<<"\n Number of Chicken-roll we sold : "<<Schicken;
cout<<"\n Remaining Chicken-roll : "<<Qchicken-Schicken;
cout<<"\n\n Total Chicken-roll collection for the Day:"<<Total_chicken;

cout<<"\n\n\n Total Collection for the day:


"<<Total_rooms+Total_pasta+Total_burger+Total_noodles+Total_shake+To
tal_chicken;
break;
case 8:
exit(0);
default:
cout<<"\n Please select from the numbers mentioned above!";
}

goto p;
}

8
Diagrams

Use Case Diagram

Class Diagram

9
Sequence Diagram

Collaboration Diagram

10
State Chart Diagram

11
Activity Diagram

Package Diagram

12
Component Diagram

Deployment Diagram

13
Code Screenshots

14
15
16
Output Screenshots

17
18
Conclusion and Results

Hence, a successfully running and simple program was constructed for Hotel ABC by using C++ as
the platform. The program is able to keep track of available rooms and stock of foods and
beverages. It can also calculate how much the hotel has earned and when the hotel runs out of any
stock. The program is very simple and easy to use and understand by any of the hotel staff.

19
References

1. GeekforGeeks
2. Programiz
3. Object oriented Programming in C++ by Robert Lafore

20

You might also like