Coding Hotel Management
Transcript of Coding Hotel Management
-
7/28/2019 Coding Hotel Management
1/58
1
INTRODUCTION
My project deals with the Hotel Management System. It input information related with
Hotel Management.
My project has been divided into no of functions with understandable logic which makes
my program easy to read and understand. My project is fully indented which makes it more
readable.
I have made every possible effort to avoid errors.
Still I apologetic for the error if any, having crept in the project unnoticed.
-
7/28/2019 Coding Hotel Management
2/58
2
SCOPE OF PROJECT
1.1 IMPROVED SERVICES
An objective of the proposed system is to improve the existing system's services, in order to:
Increase employer and employee satisfaction
Provide the quality
Create a controlled information management environment
1.2 BETTER PERFORMANCE
It is an objective of our proposed system to provide better performance which is managed by
providing
Desired flexibility
Fast response
Ability to support changes.
Ability to maintain the quality of services.
1.3 EFFICIENT GUI
One of the objectives of the proposed system is to provide a user friendly GUI, that will enable
the user to work on clicks and make the information transfer possible with the most common I/O
devices.
1.4 MORE INFORMATION
An objective of our proposed system is to develop a system that will eliminate the problem of
insufficient and incomplete information.
-
7/28/2019 Coding Hotel Management
3/58
3
1.5 DECISION SUPPORT
By providing the facility of what-if analysis, we will make a decision support system.
1.6 STRONGER CONTROLS
The proposed system will have stronger controls. Controls like passwords, various levels of user
access and option will be added.
1.7 ELIMINATION OF RUNNING COST
We are going to develop the proposed system with an objective to eliminate the running cost by
overcoming the continuous stationery expenses, manual storage need, and extra staff in the
information resource department of the Organization .
USER REQUIREMENT
In the above proposed system single category of authenticated users are there that is the
Hospital staff.
After the product has been delivered the staff will be trained by our development team.
We also propose to provide a help document for the customer which will help them in
using the product efficiently.
THEORY ABOUT DATA CENTERED ARCHITECTURE:
A Data store resides at the center of this architecture and is accessed frequently by other
components that modify info, checks availability of room, allocate room, bill function,
create bill or otherwise get function info within the Hotel Management System. A data-
centered architecture promotes integrability.
OBJECT ORIENTED DATA CENTERED APPROACH
The components of a system encapsulate data and the operations that must be applied to
manipulate data. Communication and coordination between components is accomplished
via message passing.
-
7/28/2019 Coding Hotel Management
4/58
4
PRODUCT PRESPECTIVE
This project helps to define internal boundaries achieving the appropriate balance
between the general and the specific, Hospital management giving a positive and efficient
workflow to the staff of the Hospital, thereby helping the business model of the Hospital
to expand. In principle the product exposes a simple and general interface and hides the
specific and complex implementation based. In our example, we want our Hospital
design to hide detail that is too complex or unnecessary, thereby reducing paperwork and
increasing efficiency.
Also through this project we aim to reduce operating costs and increase throughput of the
staff.
-
7/28/2019 Coding Hotel Management
5/58
5
OBJECTIVE
The project reflects a sincere and dedicatedeffort done to improve the Hotel Management. The project deals with the computerization of the Hospital. The objective of this project is to get easy and efficient access of data regarding different existing
and new Patients
It also aims to get efficient and effective access of all the records of the Hotel. Its main aim is to provide the administrator a better way of handling the records of Hotel Staff
and customer.
-
7/28/2019 Coding Hotel Management
6/58
6
HEADER FILES
#include
#include
#include
#include
#include
#include
#include
#include
#include
-
7/28/2019 Coding Hotel Management
7/58
7
USER DEFINED FUNCTIONS
void box 1()
void outline()
void outline 1()
void main_menu()
void title ()
void carat_box ()
void end_title()
void calculate_box ()
void calculate ()
void del_box ()
void name_box ()
void dell_box ()
-
7/28/2019 Coding Hotel Management
8/58
8
SYSTEM REQUIREMENT
HARDWARE AND SOFTWARE REQUIREMENTS
The platform used is C++. Hence we decided to use Microsoft C++
Since BGI graphics arent supported in the Visual studio so for actually running the
software we used Borland C++ compiler 3.0 which was recently made free by Borland Inc.
For optional coding and easy debugging we used Microsoft Visual Studio 2008 edition and
made explicit .cpp files.
Henceforth for optimal usage of such a software a windows based operating systempreferably Windows vista must be there.
Also on the hardware part any system having Windows Vista installed will suffice.
-
7/28/2019 Coding Hotel Management
9/58
9
DATA FLOW DIAGRAM
HOTEL HOME Registration Process Data Store
Room
Details
Call By Data Process Show
Details
Reports Print Bill Process
To Exit
To Exit Process Close the
program
-
7/28/2019 Coding Hotel Management
10/58
10
CODING HOTEL MANAGEMENT
#include
#include
#include
#include
#include
#include
#include
void reco_whole();
void acdeluxe();
void ac();
void deluxe();
int menu(int);
void intro1();
void intro2();
void deletion();
void booking();
void restbar();
void bill();
//CLASS FOR KEEPING THE RECORDS OF THE CUSTOMER
class room
{
-
7/28/2019 Coding Hotel Management
11/58
11
private:
char name[20];
int room_no;
char add[25];
int days;
int amount;
public:
void getdata()
{
clrscr();
coutroom_no;
cout
-
7/28/2019 Coding Hotel Management
12/58
12
int existrno(int delno)
{
int existd=0;
if (delno==room_no)
existd=1;
return existd;
}
};
void main()
{
clrscr();
int i;
int number;
textmode(C40);
gotoxy(10,12);
sound(1000);
cout
-
7/28/2019 Coding Hotel Management
13/58
13
delay(120);
cout
-
7/28/2019 Coding Hotel Management
14/58
14
delay(220);
clrscr();
nosound();
for( i=1;i
-
7/28/2019 Coding Hotel Management
15/58
15
cout
-
7/28/2019 Coding Hotel Management
16/58
16
for(i=25;i>15;i--)
{
gotoxy(12,i);
cout
-
7/28/2019 Coding Hotel Management
17/58
17
if(i!=16)
cout
-
7/28/2019 Coding Hotel Management
18/58
18
cout
-
7/28/2019 Coding Hotel Management
19/58
19
for(i=25;i>15;i--)
{
gotoxy(28,i);
cout
-
7/28/2019 Coding Hotel Management
20/58
20
for(i=1;i
-
7/28/2019 Coding Hotel Management
21/58
21
{
case 1: intro1();
num=menu(number);
break;
case 2: intro2();
num=menu(number);
break;
case 3: booking();
num=menu(number);
break;
case 4: restbar();
getch();
num=menu(number);
break;
case 5: bill();
num=menu(number);
break;
case 6: reco_whole();
getch();
num=menu(number);
break;
case 7: deletion();
getch();
num=menu(number);
-
7/28/2019 Coding Hotel Management
22/58
22
break;
case 8: exit(0);
default: menu(number);
}
}
while(num!=0 &&num
-
7/28/2019 Coding Hotel Management
23/58
23
cout
-
7/28/2019 Coding Hotel Management
24/58
24
textbackground(WHITE);
textcolor(BLACK);
clrscr();
textmode(C80);
cout
-
7/28/2019 Coding Hotel Management
25/58
25
cout
-
7/28/2019 Coding Hotel Management
26/58
26
gotoxy(20,30);
cout
-
7/28/2019 Coding Hotel Management
27/58
27
cout
-
7/28/2019 Coding Hotel Management
28/58
28
//*************************** BOOKING FOR THE
ROOMS**************************
void booking()
{
clrscr();
int i;
gotoxy(32,5);
cout
-
7/28/2019 Coding Hotel Management
29/58
29
ac();
if(i==2)
acdeluxe();
if(i==3)
deluxe();
}
void acdeluxe()
{
clrscr();
room ad;
ofstream out;
out.open("xyz.dat",ios::app);
char a;
do
{
ad.getdata();
out.write((char*)&ad,sizeof(ad));
couta;
}
while(a=='y'||a=='Y');
out.close();
}
void ac()
-
7/28/2019 Coding Hotel Management
30/58
30
{
clrscr();
room ad;
ofstream out;
out.open("xyz.dat",ios::app);
char a;
do
{
ad.getdata();
out.write((char*)&ad,sizeof(ad));
couta;
}
while(a=='y'||a=='Y');
out.close();
}
void deluxe()
{
clrscr();
room ad;
ofstream out;
out.open("xyz.dat",ios::app);
char a;
do
-
7/28/2019 Coding Hotel Management
31/58
31
{
ad.getdata();
out.write((char*)&ad,sizeof(ad));
couta;
}
while(a=='y'||a=='Y');
out.close();
}
//*********************** RESTAURANT &
BAR****************************
void restbar()
{
clrscr();
textmode(C40);
int i;
gotoxy(12,7);
cout
-
7/28/2019 Coding Hotel Management
32/58
32
clrscr();
textmode(C80);
gotoxy(32,11);
cout
-
7/28/2019 Coding Hotel Management
33/58
33
cout
-
7/28/2019 Coding Hotel Management
34/58
34
{
fstream bill;
bill.open("bill.dat",ios::out);
clrscr();
int r,n,nod=0,exfa,bill_exfa1=300,bill_exfa2,bill_exfa3,bill_exfa4;
double bill_exfa=0;
double bill_room,amount=0;
const double c1=3500;
const double c2=2500;
const double c3=1500;
cout
-
7/28/2019 Coding Hotel Management
35/58
35
cin>>nod;
if (r==1)
bill_room=c1*n*nod;
if (r==2)
bill_room=c2*n*nod;
if(r==3)
bill_room=c3*n*nod;
cout
-
7/28/2019 Coding Hotel Management
36/58
36
cout
-
7/28/2019 Coding Hotel Management
37/58
37
clrscr();
double bill_rest;
const double ff=150 ;
const double si=100 ;
const double ssp=200 ;
cout
-
7/28/2019 Coding Hotel Management
38/58
38
cout
-
7/28/2019 Coding Hotel Management
39/58
39
cout
-
7/28/2019 Coding Hotel Management
40/58
40
cout
-
7/28/2019 Coding Hotel Management
41/58
41
cin>>temp_no;
int norec,end,end1;
origin1.seekg(0,ios::end);
norec=origin1.tellg()/sizeof(delrom);
int temrec,foundr=0;
end=0;
origin1.seekg(0,ios::beg);
cout
-
7/28/2019 Coding Hotel Management
42/58
42
getch();
origin1.close();
temp.close();
ofstream origin2("xyz.dat",ios::trunc);
origin1.close();
ofstream origin3("xyz.dat",ios::out);
ifstream temp1("temp.txt",ios::in);
temp1.seekg(0,ios::beg);
int tempno=0;
temp1.seekg(0,ios::end);
tempno=temp1.tellg()/sizeof(delrom);
temp1.seekg(0,ios::beg);
cout
-
7/28/2019 Coding Hotel Management
43/58
43
ofstream temp2("temp.txt",ios::trunc);
temp2.seekp(0,ios::beg);
temp2.close();
}//End Of Delete Function
-
7/28/2019 Coding Hotel Management
44/58
44
OUTPUT
-
7/28/2019 Coding Hotel Management
45/58
45
-
7/28/2019 Coding Hotel Management
46/58
46
-
7/28/2019 Coding Hotel Management
47/58
47
-
7/28/2019 Coding Hotel Management
48/58
48
-
7/28/2019 Coding Hotel Management
49/58
49
-
7/28/2019 Coding Hotel Management
50/58
50
-
7/28/2019 Coding Hotel Management
51/58
51
-
7/28/2019 Coding Hotel Management
52/58
52
-
7/28/2019 Coding Hotel Management
53/58
53
-
7/28/2019 Coding Hotel Management
54/58
54
-
7/28/2019 Coding Hotel Management
55/58
55
-
7/28/2019 Coding Hotel Management
56/58
56
LIMITATION
Though we have completed this project with all our effort but has certain limitation like it
cannot be operated in networking. the working of project is slow in windows operating
system.
-
7/28/2019 Coding Hotel Management
57/58
-
7/28/2019 Coding Hotel Management
58/58
58
BIBLIOGRAPHY
The C++ Programming Language 3e , Bjarne Stroustrup ,
Addison-Wesley , 1997
ISBN: 0-201-88954-4
The C++ Standard Library , Nicolai Josuttis ,
Addison-Wesley , 1999
ISBN: 0-201-37926-0
The C++ Standard , ,
John Wiley and Sons , 2003
ISBN: 0470846747
Accelerated C++ , Andrew Koenig and Barbara Moo ,
Addison-Wesley , 2000
ISBN: 0-201-70353-X
C++ by Example: UnderC Learning Edition , Steve Donovan ,
Que , 2001
ISBN: 0-7897-2676-9
Teach Yourself C++ 7e , Al Stevens ,
Wiley , 2003
ISBN: 0-7645-2644-8