OOP Micro - Project
OOP Micro - Project
on
HOTEL MANAGEMENT
SYSTEM.
INTRODUCTION:- ➢ Project title “Hotel Management System” (A Project for
keeping customers record, room records and also
calculate customer bill slip)The name of project is
“Hotel Management System”.
➢ It reduce the extensive paper work in the present system.
It wills make the system more versatile and user
friendly.
➢ The main aim of the entire activity is to automate the
process of day to day activities of Hotel
➢ The following functions that are performed by the
system:
▪ Room Detail Functions
▪ Check-in and check-out Detail Functions
▪ Statement of Customer Details
▪ Billing
ER-
DIAGRAMS:-
Main menu
of the hotel
Enter the
choice :2
CUSTOMER
CHECK-IN
THE HOTEL
ENTER THE
ROOM NO :
400
GENERATE
THE BILL
ROOM NO OF THE CUSTOMER : 400
ENTER THE NUMBER OF DAYS : 5
BILL DETAILS OF THE CUSTOMER
EXIT FROM
THE MAIN
MENU …..
#include<iostream> class Room rooms[max];
#include<string.h>
int count=0;
#include<conio.h>
Room Room::addRoom(int rno)
#define max 100
{
using namespace std;
class Room room;
room.roomNumber=rno;
//Class Customer
cout<<"\nType AC/Non-AC (A/N) : ";
class Customer
cin>>room.ac;
{
cout<<"\nType Comfort (S/N) : ";
public:
float payment_advance;
room.status=0;
int booking_id;
};
cout<<"\n Room Added Successfully!";
class Room
getch();
{
return room;
public:
}
char type;
void Room::searchRoom(int rno)
char stype;
{
char ac;
int status; {
void searchRoom(int);
found=1;
void deleteRoom(int);
break;
void displayRoom(Room);
switch(opt)
if(rooms[i].status==0)
{
{
case 1:
displayRoom(rooms[i]);
cout<<"\nEnter Room Number: ";
cout<<"\n\nPress enter for next room";
cin>>rno;
found=1;
i=0;
getch();
for(i=0;i<count;i++)
}
{
}
if(rooms[i].roomNumber==rno)
if(found==0)
{
{
flag=1;
cout<<"\nAll rooms are reserved";
}
getch();
} }
} if(flag==1)
{ flag=0;
for(i=0;i<count;i++) }
{ else
if(rooms[i].status==1 && {
stricmp(rooms[i].cust.name,pname)==0)
rooms[count]=room.addRoom(rno);
{
count++;
cout<<"\nCustomer Name:
"<<rooms[i].cust.name;
}
cout<<"\nRoom Number:
"<<rooms[i].roomNumber; break;