Sei sulla pagina 1di 82

1

A
PROJECT OF

HOTEL MANAGEMENT SYSTEM


SUBMITTED BY

MANJEET KUMAR
REG NO:- 2631699/10

ROLL NO:-NAL-13263413042

DATE OF SUBMISSION:-25.04.2013

UNDER THE GUIDENCE OF

**-: SANJEET KUMAR :-**

NALANDA COLLEGE,BIHARSHARIF(M.U)

SUBMITTED IN PARTIAL FULLFILLEMENT OF THE REQUIRMENT FOR

QUALIFINING BACHELOR OF COMPUTER APPLICATION

PROJECT OF HOTEL RAJGIR RESIDENCY DEVELOPED BY:-MANJEET KUMAR


2

CERTIFICATE
THIS IS TO CERTIFY THAT Mr./Miss/Mrs. MANJEET KUMAR SON/DAUGHTER/WIFE

OF HIRA LAL HAVING COLLEGE ROLL NO:-114

,UNIVERSITY ROLL NO NAL :- 13263413042

HAS COMPLETED THE PTOJECT WORK FOR BCA PART –III(PAPER-VIII ) FOR THE
ACADEMIC SESSION 2010-2013

HIS/HER CONDUCT HAS BEEN GOOD,

LAB-IN –CHARGE

INTERNAL EXTERNAL

(EXAMINER) (EXAMINER)

Co-ORDINATOR

(BCA DEPARTMENT,NALANDA COLLEGE)

BIHARSHARIF

DEVELOPED BY :-MANJEET KUMAR


3

BIO-DATA OF GUIDE FACULTY

NAME <-:-> SAnjeet kumaR

DOB <-:-> 12TH NOVEMBER 1986

ADDRESS <-:-> shivpurI colONy,

biharsharif(803101)

SEX <-:-> male

STATUS <-:->unmarried

EDUCATIONAL QUALIFICATION <-:->mca,mba

EXPERIENCE <-:->faculty in nalanda college

Faculty in niit

HOBBIES <-:->programming in c++,java

Signature_____________________

DEVELOPED BY :-MANJEET KUMAR


4

ACKNOWLEDGEMENT

A project usually falls short of its exceptions unless aided and guided by the right
person at the right time .I humbly state that this Report is not the fruit of my individual
effort but those of a number of persons who directly or indirectly helped me throughout
the span of this project.

I was indeed very lucky to have Mr.A K SINHA(H.O.D of COMPUTER


SCIENCE,NALANDA COLLEGE) & MR. SANJEET Kumar (SENIOR FACULTY ,NALANDA
COLLEGE),as my project guide and also thanks to Mr.BIRENDRA PRASAD as lab
instructor . I am grateful to them for assigning me such an interesting and challenging
project ,without their critical evaluation and suggestions at every stage of the project
.This report could never have reached its present form.I am deeply indebted to him not
only for guiding me throughout the project but also for the informal discussions which
helped me gain a broad perspective on the function of the present day CNF of HOTEL
RAJGIR RESIDENCY .

I would like to express my silncere gratitude to ACCOUNTANT OF HOTEL RAJGIR


RESIDENCY for providing me an opportunity to undertake my project development at his
CNF .I am indebted to several members at HOTEL for their co-operation at various stages
of my project development work.

MANJEET KUMAR
(Reg.No.:- 2631699/10 )

DEVELOPED BY :-MANJEET KUMAR


5

TABLE OF CONTENTS

SI.NO DESCRIPTION PAGE NO


1 INTRODUCTION 01
2 ACKNOWLEDGEMENT 03
3 OBJECTIVES 07
4 IDENTIFICATION OF NEED 10
5 S/W AND H/W REQUIREMENT SPECIFICATION 11
6 TOOLS/PLATEFORM ,LANGUAGE USED 13
7 IMPLEMENTATION AND MAINTAINENCE 16
8 CONTEXT DIAGRAM 17
9 FLOW CHART 18
10 DATA FLOW DIAGRAM 20
11 CLASS DIAGRAM 21
12 CODING 26
13 INPUT/OUTPUT 77
14 PERT CHART 78
15 PIE CHART 79
16 COST ESTIMATION 80
17 FUTURE SCOPE OF THE PROJECT 81
18 FEASIBILITY STUDY 82
19 TESTING 83
20 BIBLIOGRAPHY 84
6

DOCUMENTATION
INTRODUCTION

I begin with a brief introduction about this project & the difference stage of the design &
development of “HOTEL MANAGEMENT SYSTEM” before detail discussion , first of all I would
like to give an overall idea about this Project.

Title of the Project:- HOTEL MANAGEMENT SYSTEM


I have develope my project on “HOTEL MANAGEMENT SYSTEM”, because this project help me to
manage hotel . In this process of expansion of their activities they plan to automate their
operation of any system. In “HOTEL MANAGEMENT SYSTEM” a large amount of data is process
& the results are used in running an organization/system. Computers are now extensively used
to perform the routine clerical works for smooth functioning of the “HOTEL MANAGEMENT
SYSTEM” ,also today most large & medium sized organization or system are depend on
computers to a great extent . Micro electronic technology enables offers to function faster &
more efficiently & the cost of technology means putting computers within the grasp of even the
smallest business , system or organization.

In the commercial world “HOTEL MANAGEMENT SYSTEM” is organization


to invest heavily in computers in recent time .In most instance the computer is located centrally
branches are equipped with terminals , giving them online accounting facilities & enabling for
information or sucg things as current balance , report of different fields of “HOTEL
MANAGEMENT SYSTEM” . Use of computer in “HOTEL MANAGEMENT SYSTEM” has made
transaction simpler , easier & faster for any organization or system .

This project is handled with the help of “HOTEL MANAGEMENT SYSTEM” &
maintain the hotel facility , booking a room , check in the room, restaurant , bar , game etc,& all
other facility with its status .

Brief Description:-
7

This project is on “HOTEL MANAGEMENT SYSTEM” , which states the criteria &
steps to manage or control the works related to the managing of Hotel . “HOTEL MANAGEMENT
SYSTEM” can be described as two ways ie-

(a) Fooding (b) Loding

F ooding:- This is the facility in which any Hotel provide the facility of fooding that means
provide variety of food ,all kinds of food either it is related to local dish ,fast food or any
other kinds of foods that is Chinese , Japanese etc. In this plateform peoples from different
place or country come & use to take the taste or take food .

Here the requirement of computer os needed when the customer come to take
food after taking their pack or food they want bill regarding with the food on that time the
manager or the person who keep the record or money regarding with object name face problem
to give the bill & face problem both the customer also.

So here the Hotel or person having the computer system or printing system , that

Time the manager will not be need to face the problem for billing .

In that billing te receipt contains many thing ie – the logo of the Hotel, name of the
object , total amount & place for signature of the keeper or Hotel authority . So that the record
must be kept safe or kept for a long period to give calculation to the HONOUR of the Hotel &
can be calculated whole calculation of month ,year etc.

In this way the computer system is very essential for any Hotel management or for any
management for Hotel.

On the other hand the another way to managing or run a Hotel is Loding.

oding:- This the provision for customer which wants to stay or take as rent for some days
,for one night or for many days.
8

There are many condition when a customer use to take a room for
Loding, They are as follows-

 Name of customer
 Address of customer
 Room no
 Booking cost
 Booking date , time
 Check in, check out etc.
These are the steps or condition which is to be filled in the record book
or the record diary .And when it gets wrong or gets misplaced information that time the
the record register page may damage or have to clear that page of register.
There are also same problem when customer wants the bill for their
personal use .At that time the receptionist face problem ,How to give the bill or any other
proof of the Hotel. In the same way at the time of investigation of any person at the
customer’s address at that time the receptionist or the manager face the problem to
search the required address or the person . At that time manager will have to search
whole records of customers register.
So this process ie is very tedious job because the paper become damage
after some days , months or year .Hence to avoid this problem computer system is very
necessary because through this the Hotel or the customer register or record can be kept
easily for many days, months or years.
Through the computer system work of any type that is searching, investigating
or any kinds of condition regarding with customer can be easily be solved through
computers.

-:OBJECTIVES :-

This project states the benefit or the objectives that How a computerized system can
Help the Hotel to manage the Hotel easily without taking any risk of loosing the records
or missing the records .
There are many objectives are as follows-
9

 Computer system or this project helps the user or management to manage the
problem regarding with the customer.
 When a filling the form of customer register of ant garnage or any another wrong
information is inputed at that time ir can’t be commited but it can be changed
easily through this software or through this project.
 Searching operation of any customer or room is empty or not it can be easily
searched by using the software or by computerized system.
 Billing facility to any customer can be easily solved by prontong rhat screen or the
form of the customer information.
 Record can be easily save for many days or even years &it can be kipt as hard copy
also.
 Using this system a receptionist or the manager can be easily reduce the work
Load of their own.
 Through this system means compterised system there is no need to take risk of
register information.
 Protection can be easily be perform through this system and it can be kept
protected.

So there are many objectives of using computer sustem than


using the manually paper,pencil.
So it is very important to use the computer system.

-: WHY SYSTEM PROJECTS :-

System projects are initiated or different rason.The most omportant reason are
(A) CAPABILITY:-
Business activities are influenced by an organizations ability to
Process transaction quickly and effentially information system adds capabilities in three
ways :-
10

 Improved processing speed:-The inheritant speed with computer process data with
computer process data is one region , why organization seeks the development of
system project.

 Increased Volume:- Provide capacity to access the greater amount of activity


purpose to tale the advantage of new business opportunities.

 Faster retrieval of information:- Locating and retrieving information from storage


.The ability in conducting complex search.

(B)CONTROL:-

 Greater accuracy and consistency:- Carrying out computing step smoothly


and consistently.

 Better security:- Safeguarding sensitive and important data in a form ie accessible


to the only authorized person.

( C) COMMUNICATION:-

 Enhanced Communication:- Speeding the follow of information and message


between remote location as well as within office. This includes the transmission of
documents within office.

 Integration of business area:- Coordinating business activates taking place in


separate area of an organization through capture and distribution of information.

(D) COST:-
11

 Monitor cost:- Tracing the cost of labour goods and overhead is essential or
determine whether a firm is performing in line with exceptions within budget.

 Reduce cost:- Using computing capabilities to process data at the lower cost than
possible with other methods while maintaining performance and accuracy levels.

(E) COMPATIVENESS:-

 Lock of customer:- Changing and relationship with and services provided to the
customers in such a way that they would not think the changing .
 Lock of competitions:- Reducing the chances of entering the competitors on the
small market because of OOPs information system being used in the
organization.
 New policy development:- Introducing new policy with characteristics that us or
are influenced by information technology.
12

SOFTWARE AND HARDWARE REQUIREMENT SPECIFICATIONS

INTRODUCTION
OBJECTIVES:-

To design software for Hotel project that will generate the proposed output is software must
generate the following output on;-

(a) Booking a room in Hotel


(b) Check IN in the Hotel
(c) Check OUT from the Hotel
(d) Cancellation of booked room
(e) Restaurant facility in Hotel
(f) Bar facility in Hotel
(g) Status of all record in Hotel

GOAL:-

The main goal of this project is to maintain Hotel console updating like Booking, Check IN, Check OUT
,Cancellation & global reports with more easily, faster ,reliable, accurate and secure.

OVERALL DESCRIPTION:-

We have to design the s/w for Hotel project that will fulfill the following terms :-

(a) Creation of room record ,customer list, restaurant and bar information, new customer entry
etc, & this will happen from anywhere(location independent).
(b) Keep and maintenance large no of record easily.
(c) Finding /Listing customer record quickly.
(d) Preparation of several records for the “HOTEL MANAGEMENT SYSTEM” and
individual reports quickly and easily.
(e) Generating customer bill with accuracy.
13

TOOLS/PLATEFORM, LANGUAGE USED

As far as the Tools/Plateform for the development of the project is concerned , it


has been discussed along with the Guide and decided that the WINDOWS O/S will beSuitable &
after considering various aspects , It is planned to developed the complete project in the
language C/C++ . As C++ is the enhanced version of the C language ,C++ include every thing that
is a part of C and adds support fot object oriented programming (OOPs).Anything we know
about C language is fully applicable to C++.

REASON FOR PURPOSING C++

 It support s all features of both structure programming and object oriented programming.
 It gives the easiest way to handle the data hiding and encapsulation with help of
powerful keywords such as class, public ,private, and protected .
 Inheritence on of the most powerful design concepts is supported with single and
multiple inheritances of base class and derived class.
 Polymorphism through virtual base classes and virtual base classes and virtual destructors
gives the late binding of the compilers.
 It provides the overloading of operators and function.
 C++ focus s on the function and class templates fir handling paramerterised data types.
 Exception handling is done by the extra keywords namely try, catch and throw.
 Provides friends ,static ,constructors, destructor for the class MINIMUM REQUIRMENT OF
HARDWARE

 Processor Intel-845
 Hardware 1.2 GB
 RAM 64 MB
 Monitor Color(15/17)Inch.
 Keyboard Normal 102/103.
 Software C++ Language
 Platrform Windows workstation running on
Windows NT
14

IMPLEMENTATION & MAINTAINANCE

Implementation:

This section discussed three aspects implementation

1) Training personnel
Those who are directly or indirectly related with system development
work must know in detail with their roles will be ,how they can make the efficient use
of the system and what the system will do or not do for them. Here both the
employee and users need training.

a) System operator training


 How to turn the equipment on and use it.
 How to power off & knowledge what constitutes normal
operation.

b) User training
 User training deals with operation or system itself, with proper
attention gives to the data handling technique.

 User are trained in method of entering transaction ending & view


reports .

2 )Conversion method:- For conversion of old system to new one we employee


parallel system to run both the system in parallel under this approach , users continue to
operate their old system as well as they also start using the new system.

This method is sagest on because of insure that in case of any problem in


using the new system , the organization can still fall back to the hold system without loss of
time and ,pmeu . We were prepared a list of tasks, including the following.

 List of all files that are required during conversion.


 Identify all data required to build new files during conversion.
15

 Identify all controls to be made during conversion.

3) Post implementation review:-


After the system is implemented and conversion is complete , there is a time to
determine whether the system is meeting the expectation and where
improvement is needed .
Keeping these facts in mind we prepared a fpr,a; review
plan. An overall plan covers the following areas “-

a) Administrative Planes :
Review area onjectives , operating costs , actual operating performance
and benefits.

b) Personnel Requirement Planes:


Review performance objectives and training performance to data.

c) Hardware Planes :
Review performance specification.

System maintainance :
System maintenance is actually the implementation of the post
implementatiom review plane ,So at theis stage we implement the following
maintence area :-

1) Administrative maintenance:
The following activity are maintained under this mainrenance

a) User Objective maintenance:


This is an extremely critical area since it may be possible that over the
period of time either the system does not meet the initial objective of
the user of or the user objectives get change as a result of the changes
in the overall objectives of the organization.
b) Operating Costs and Benefits maintenance :
Under this maintenance current budgets are designed to manipulate
the costs and savings of the system.
16

2)Personnel Requirement maintenance:


Under this maintenance all activities involving system personnel and staff
member associated with the system ate maintained i.e.

a) Maintain the performance of personnel objectives with cuttent


performance levels.
b) Maintain training performance through resting and conducting in
interviews.

3) Hardware maintain :
The hardware of the new system is also maintained including
servers,terminals and communication with designspecification.
For implementing the ocerall implementation plan, actual
we employee little effort because most of essential tasks are maintained
in this stage are all ready performed with more efficiently.

For example:
 During sysem development the requirement was defined more
accurately.
 System documentation was prepared in a better way.
 Processing logic was also design using more effective way.
 Existing tool and techineque are better utilizes.
 System engineering courses are managed effectively.

CONTEXT DIAGRAM
Context diagram is a representation of whole systemis a
single process.It identify the major input to the system and also
identify where the output of the system.

RECEPTION PERMANENT
HOTEL
RECORD
INFORMATION
17

 FLOW CHART

START

1. BOOKING

2. CHECK_IN

3. CHECK_OUT

4 CANCELLATION

5. RESTAURANT

6. BAR

7.VIEW OF DATA

8 QUITE

Y
BOOKED
IF
ROOM
CH=1
N
Ch=1
Y BOOKED N
IF CHECK_IN THE
CH=2 HOTEL ADVANCE
D
Ch=2 Y

N Y
CHECK IN THE ROOM
IF CHECK_OUT
CH=3 FROM HOTEL

Ch=3
18

N Y

IF
CH=4 CANCELLATION OF
Y BOOKED ROOM
Ch=4
N Y

IF RESTAURANT
CH=5N FACILITIES FOR
CUSTOMER
N Ch=5

IF Y BOOK FACILITIES OF
CH=6 CUSTOMER

Ch=66
N

Y
VIEW THE STATUS
IF
OF HOTEL
CH=7

STOP
19

Reservation & CHECK OUT PROCES DFD

CUSTOMER CHECK IN

INPUT DATA FOR


CANCELLATION ROOM BOOKING
BOOKING

USES ROOM SERVICE


RESTAURANT BAR

VERIFY THE DATA


AT THE TIME OF CHECK OUT
LEAVING

PREPARE THE LIST

JOURNAL COPY
STORES ELECTRONICALLY
MANNUALLY
ON COMPACT DISK
VERIFY THE ROOM YES
NO AVAILABILIITY CHECK IN
BOOKING

USING ROOM
TEMP FILE SERVICES
20

CHECK OUT

CASH LEDGER
CHEQUE OR DRAFT

PAYMENT

CLASS DIAGRAM
 CLASS NAME :- HOTEL
This is a class which is contril over all function of the HOTEL .In this
class we use some structure as bill restaurent ,bar ,booking ,data,
check _out, check_in, cancellation. The mainly variable is use in this
classes long type as bresraurent,bbar,charge,roomno.The other
variable is used i. e : char. As char variable we use array, name,
address, telno, date ,room type ,odate , otime. Further we use int
variable as roomno.

Structure name:- bill_restaurant_bar


Fields:- long brestaurant,bbar

Structure name:- booking_data


Fields:- long charge,roomno;
char name[25],address[75];

char telno[10],date[11],roomtype[15];

Structure name:- check__out_data


Fields:- char name[25],addres[75;
Char telno[10],date[11],odate[11],otime[6];
Int roomno;

Structure name:- cancellation_data


Fields:- char name[25],address[75],telno[10];
21

USER DEFINED FUNCTION


FUNCTION NAME DESCRIPTION

BOOKING() This is user defined function which is use to sheet


Booking of incoming customer.

CHECK_IN() This function is used for check the incoming


customer.

CHECK_OUT() This function is used for check the out going


customer.

CANCELLATION() This function is used for cancel the sheet of specified


Customer.

RESTAURENT() This function is used to provide food for your customer.

BAR() This function is used to provide bar of your customer.

VIEW_DATA() This function is used to provide designed report of your


Customer.
Grap1() This function is use to display the first screen graph.

Control_menu) This function is used to control over all function.


22

SYSTEM DEFINED FUNCTION


FUNCTION NAME DESCRIPTION

Clrscr(); //To clear the output screen.

textcolor(); //T change the display text color.

f.open(); // Toopen the data file.

f.read(); //To read the data file.

f.close(); // To close the data file.

f.write(); // To write the data in binary file.

gets(); //To input one full line text from stander input device.

strlen(); //To return the length of string whing is uses as


argument.

strcpy(); //To copy source string into destination.

gotoxy(); //To send the control to the specified x,y,coordinate.

getch(); //To get one character from stander input device


but not echo on the screen.

sizeof(); //To return the length of variable and data type in


byte(s).

delay(); //To suspend the programs execution until specified


number
of milliseconds.

Initgraph(); //To initialize the graphics system.


23

Cleardevice(); // To clear the graphics device.

Settextstyle(); // To set the textstyle of the display text on the graphics


mode.

Outtextxy(); // To display the text at specific position on the graphics


screen.
Setcolor(); //To set the fore ground color.
Closegraph(); // To close the graphics screen.
toupper(); // To change the font in upper case.
Circle(); //To design the circle on the graphics screen.
Return(); //To return the programs control with or without value to
Calling program.

INCLUDED HEADeR FILE DESCRIPTION


#include<iostream.h>
The classes used for input and output to the video display and
keyboard are declared in the header file <iostream.h>.Its
concerned with basic I/O operation and cpmtaoms declaration
that are needed by the cout and cin identifier and ghr <<&>>
operator,without this the compiler would not recognize
cout,cin and will think <<,>> is being used incorrectly.

#include<conio.h>
The header file <conio.h> refers tp the console i/o operations
.It contains declaration of console functions such as clrscr().To
chars the output window, window().To character from
keyboard on console.

#include<dos.h>
The hardware accessing functions can be stored within this
header file .The sleep, delay and sound functions are the
examples.
24

#include<iomanip.h>
The header file <iomanip.h> provides a set of function called
manipulaters which can be used to manipulate the output
fotmats .They provide the same feature as that of the ios
member functions and flags.

#include<graphics.h>
The ftaphics driver setting graphical funcrions like
initgraph(),outtextxy(),windows() etcare styored in it.

#include<stdio.h>
The i/o related function are store in it. The printf(),scanf(),
etc are stored in it.

#include<string.h>
The string related funcrions ate stored in it .The
strcpy(),strcmp(),etc are stored in it.

#include<fstream.h>
The i/o related functions are stored inet like cout,cin,iosflag.

#include<stdlib.h>
Thhe library related function are stored in it like atoi().
atof()

#include<ctype.h>
The character related manipulators are performed with
the function like isalpha(), isdigit(),toupper() etc.

#include<process.h>
25

The processing control related performed like


exit(0),kbhit() are stored in it.

SOURCE CODE

//DISCRIPTION :-HOTEL - INFO PROJECT HANDLES HOTEL MANAGEMENT


/*****************************************************************/
//INCLUDED HEADER FILE
/*****************************************************************/
#include <iostream.h>
#include<conio.h>
#include<dos.h>
#include<iomanip.h>
#include<graphics.h>
#include<stdio.h>
#include<string.h>
#include<fstream.h>
#include<stdlib.h>
#include<ctype.h>
#include<process.h>
fstream f,f1,f2,f3,f4,f5,f6,f7,f8;
void grap1();
void control_menu();
//*******************************************************************
//*********CLASS NAME: HOTEL*****************************************
//******DETAILS :IT CONTROLS OVER ALL FUNCTIONING OF THE HOTEL*******
//*******************************************************************
class HOTEL
{
char array [100];
struct bill_restaurant_bar
{
unsigned int brestaurant,bbar;
26

}b[100];
struct booking_data
{
long charge,roomno;
char name[25],address[75],telno[10],date[11],roomtype[15],serial_no[10];
}d;

struct check_out_data
{
char name[25],address[75],telno[10],date[11],odate[11],otime[6],serial_no[10];
int roomno;
}C;
struct cancellation_data
{
char name[25],address[75],telno[10],serial_no[10];
}D;
public:
void booking();
void check_in();
void check_out();
void cancellation();
void restaurant();
void bar();
void view_data();
}H;
//*******BOOKING IS USED FOR SHEET BOOKING OF INCOMING CUSTOMET
************
void wel()
{
int gd=DETECT,gm;
initgraph(&gd,&gm,"c:\\turboc3\\BGI");
setbkcolor(9);
settextstyle(TRIPLEX_FONT,HORIZ_DIR,4);
setcolor(RED);
outtextxy(10,20,":$$$$:HOTEL MANAGEMENT SYSTEM:$$$$: ");

settextstyle(TRIPLEX_FONT,HORIZ_DIR,1);
setcolor(GREEN);
27

outtextxy(50,59,"SUMBITTED IN :=");

settextstyle(TRIPLEX_FONT,HORIZ_DIR,4);
setcolor(YELLOW);
outtextxy(125,85,":-) BCA DEPARTMENT :-)");

settextstyle(TRIPLEX_FONT,HORIZ_DIR,3);
setcolor(15);
outtextxy(100,140,"NALANDA COLLEGE,BIHARSHARIF(NALANDA)");

settextstyle(TRIPLEX_FONT,HORIZ_DIR,1);
setcolor(RED);
outtextxy(20,200,"BY :=");

settextstyle(TRIPLEX_FONT,HORIZ_DIR,2);
setcolor(13);
outtextxy(20,220,"NAME:=");

settextstyle(TRIPLEX_FONT,HORIZ_DIR,1);
setcolor(10);
outtextxy(93,220,"MANJEET KUMAR");

settextstyle(TRIPLEX_FONT,HORIZ_DIR,2);
setcolor(13);
outtextxy(20,245,"ADDRESS:=");

settextstyle(TRIPLEX_FONT,HORIZ_DIR,1);
setcolor(12);
outtextxy(130,240,"BCA III");
outtextxy(120,260,"ROLL-114 ");
outtextxy(130,280,"SESSION-2010-2013");
outtextxy(130,300,"MO_NO;-9304536727");

settextstyle(TRIPLEX_FONT,HORIZ_DIR,2);
setcolor(13);
outtextxy(20,250,"GUIDEDBY :=");
// outextxy(
settextstyle(TRIPLEX_FONT,HORIZ_DIR,1);
28

setcolor(19);
outtextxy(300,345,"PRESS ANY NUMBER TO CONTINUE....");
getch();
closegraph();
}

void login()
{
int gd=DETECT,gm,i,c=0;
char pass[20],name[20],ch;

login:
i=0;
clrscr();
initgraph(&gd,&gm,"c:\\turboc3\\bgi");
//date();
//time();
setbkcolor(RED);
setcolor(YELLOW);
if(c>2)
{
gotoxy(25,20);
cout<<"YOU HAVE LOST A CHANCE";
sleep(5);
exit(0);
}

settextstyle(1,HORIZ_DIR,3);
outtextxy(50,30,"WELOCME TO LOGIN IN HOTEL MANAGEMENT");
gotoxy(30,12);
//cout<<"ENTER USER NAME :";
//gotoxy(30,14);
cout<<"ENTER PASSWORD :";
gotoxy(48,12);
settextstyle(TRIPLEX_FONT,HORIZ_DIR,4);
setcolor(13);
outtextxy(5,20,"=+-=:=WELCOME TO LOGIN FORM:+=+=:=");
29

settextstyle(TRIPLEX_FONT,HORIZ_DIR,3);
setcolor(11);
outtextxy(145,55,":::HOTEL MANAGEMENT SYSTEM:::");

settextstyle(TRIPLEX_FONT,HORIZ_DIR,1);
setcolor(14);
gotoxy(25,11);
cout<<"ENTER USER NAME: ";
cin.getline(name,20);

settextstyle(TRIPLEX_FONT,HORIZ_DIR,1);
setcolor(12);
gotoxy(25,13);
cout<<"ENTER PASSWORD:";
gotoxy(41,13);

c++;
do{
ch=getch();
if(ch==27)
{
exit(0);
}
else
{
if(ch==13)
{
pass[i]='\0';
break;
}
else
{
if(ch=='\b')
{
if(i!=0)
{
i--;
30

gotoxy(41+i,13);
cout<<" \b";
}
}
else
{
gotoxy(41+i,13);

pass[i]=ch;
cout<<"*";
i++;
if(i>10)
{
gotoxy(25,20);
cout<<"PASSWORD NOT GREATER THAN 10
CHARARACTERS LONG";
getch();
goto login;
}
}
}
}
}while(1);

if(i<5)
{
gotoxy(25,20);
cout<<"PASSWORD LENGTH MINIMUM 5 CHARACTERS LONG";
getch();
goto login;
}
if(strcmp(name,"anu”)==0)
{
if(strcmp(pass,"nalanda")==0)
{
gotoxy(25,20);
cout<<"VALID PASSWORD";
sleep(2);
31

//menu();
}
else
{
gotoxy(25,20);
cout<<"INVALID PASSWORD";
getch();
goto login;
//getch();
//exit(0);
}
}

else
{
gotoxy(25,20);
cout<<"INVALID USER NAME";
getch();
goto login;
}
}

void HOTEL::booking()
{
textcolor(2);
clrscr();
int c=0;
//********FINDING AN UNOCCUPIED ROOM*******************
f.open("ARRAY.DAT",ios::in|ios::binary);
f.read((char *)&array,sizeof(array));
while(array[c]!='e')
c++;
array[c]='o';
f.close();
f.open("ARRAY.DAT", ios::out|ios::binary);
f.write((char*)&array,sizeof(array));
f.close();
32

f1.open("HOT.EL",ios::app|ios::binary);
d.roomno=c+1;
cout<<"ENTER THE REQUIRED DATA\n";
cout<<"SERIAL NO ::";
gets(d.serial_no);

cout<<"NAME :: ";
gets(d.name);
int l=strlen(d.name);
for(int i=0;i<l;i++)
d.name[i]=toupper(d.name[i]);
cout<<"ADRESS(R) ::";
gets(d.address);
cout<<"TEL NO(R) ::";
gets(d.telno);
cout<<"DATE OF CHECK-IN(dd/mm/yyyy):";
gets(d.date);
cout<<"\n \n ROOM TYPES "<<"\t"<<"CODE"<<"\t"<<"CHARGE PER DAY\n"
<<"ROYAL SUITE "<<"\t"<<"1."<<"\t"<<"Rs. 20,000\n"
<<"SUOER DELUX "<<"\t"<<"2."<<"\t"<<"Rs. 15,000\n"
<<"DELUX "<<"\t"<<"3."<<"\t"<<"Rs. 10,000\n"
<<"DOUBLE BED"<<"\t"<<"4."<<"\t"<<"Rs. 5,000\n"
<<"SINGLE BED "<<"\t"<<"5."<<"\t"<<"Rs. 2,000\n";

int roomcode;
REDO:
cout<<"ROOM CODE :: ";
cin>>roomcode;
switch(roomcode)
{
case 1: strcpy(d.roomtype,"ROYAL SUITE");
d.charge=20000;
break;
case 2: strcpy(d.roomtype,"SUPER DELUX");
d.charge=15000;
break;
case 3: strcpy(d.roomtype,"DELUX");
d.charge=10000;
33

break;

case 4: strcpy(d.roomtype,"DOUBLE BED");


d.charge=5000;
break;

case 5: strcpy(d.roomtype,"SINGLE BED");


d.charge=2000;
break;
default : cout<<"ENTER THE RIGHT CODE :-) ";
goto REDO;
}
clrscr();
cout<<"YOUR ROOM NO IS ::"<<d.roomno<<"\n";
gotoxy(25,25);
cout<<"PRESS ANY KEY TO CONTINUE ";
getch();

//********** COPYING THE RECORD OF THE CUSTOMER INTO A


FILE**************
f1.write((char*)&d,sizeof(d));
f1.close();
clrscr();
}

//*********CHECK_IN() IS USED FOR CHECK THE INCOMING


CUSTOMER************

void HOTEL::check_in()
{
textcolor(12);
clrscr();
int rn,flag=0;
char ans;
cout<<" HAVE YOU BOOKED IN ADVANCE (Y\N)?";
cin>>ans;
if(ans=='n'||ans=='n')
{
34

cout<<"THEN YOU HAVE TO FIRST BOOK";


gotoxy(25,25);
cout<<"PRESS ANY KEY TO CONTINUE ";
getch();
booking();
}
clrscr();
cout<<"ROOM NUMBER ::";
cin>>rn;
f1.open("HOT.EL",ios::in|ios::binary);
f1.seekg(0L,ios::beg);
while(f1.read((char*)&d,sizeof(d)))
{
if(d.roomno==rn)
{
flag=1;
cout<<"SERIAL NO ::"<<d.serial_no<<"\n"
<<" NAME ::"<< d.name<<"\n"
<<"ADDRESS(R) ::"<<d.address<<"\n"
<<"TEL NO(R) ::"<<d.telno<<"\n"
<<"CHECK-IN DATE ::"<<d.date<<"\n"
<<"ROOM TYPE ::"<<d.roomtype<<"\n";
gotoxy(25,25);
cout<<"PRESS ANY KEY TO CONTINUE :-)";
getch();
break;
}

}
if(flag==0)
{
cout<<"\n SORRY ! ROOM IS NOT VALIDE";
gotoxy(25,25);
cout<<"\n PRESS ANY KEY TO CONTINUE :-)";
getch();
}
f1.close();
35

clrscr();
}
//******CHECK_OUT IS USED FOR CHECK THE OUTGOING CUSTOMER*********

void HOTEL::check_out()
{
textcolor(10);
clrscr();
int rn,flag=0;
cout<<"ROOM NUMBER ::";
cin>>rn;
f1.open("HOT.EL",ios::in|ios::binary);
f1.seekg(0L,ios::beg);
while(f1.read((char*)&d,sizeof(d)))
{
if(d.roomno==rn)
{
flag=1;
}
}
if(flag==0)
{
cout<<"\n SORRY ! ROOM IS NOT VALID";
gotoxy(25,25);
cout<<"\n PRESS ANY KEY TO CONTINUE :-)";
getch();
return;
}
char od[11],ot[6];
x:
cout<<"CHECK_OUT DATE(dd/mm/yyyy) ::";
gets(od);
if(strcmp(d.date,od)<0)
{
gotoxy(10,10);
cout<<"SORRY ! ENTER DATE IS NOT VALID";
goto x;
}
36

cout<<"CHECK_OUT TIME(HH:MM)::";
gets(ot);
textcolor(6);
clrscr();
fstream e;
f1.open("HOT.EL", ios::in|ios::binary);
gotoxy(25,1);
cout<<"*************BILL***************************\n\n";
cout<<endl;
cout<<"SERIAL NO ::"<<d.serial_no<<"\n"
<<"\t\tROOM NUMBER ::"<<d.roomno<<"\n"
<<"\t\tNAME ::"<<d.name<<"\n"
<<"\t\tADDRESS ::"<<d.address<<"\n"
<<"\t\tTEL NO(R) ::"<<d.telno<<"\n"
<<"\t\tROOM TYPE ::"<<d.roomtype<<"\n"
<<"\t\tCHECK_IN DATE ::"<<d.date<<"\n"
<<"\t\tCHECK_OUT DATE ::"<<od <<"\n"
<<"\t\tCHECK_OUT TIME ::"<<ot<<"\n";

//*****COPYING THE RECORD OF THE CUSTOMER INTO ANOTHER FILE********

f2.open("C.out",ios::app|ios::binary);
strcpy(C.serial_no,d.serial_no);
strcpy(C.name,d.name);
strcpy(C.address,d.address);
strcpy(C.telno,d.telno);
strcpy(C.date,d.date);
strcpy(C.odate,od);
strcpy(C.otime,ot);
C.roomno=d.roomno;
f2.write((char*)&C,sizeof(C));
f2.close();

//******CALCULATING NO OF DAYS THE CUSTOMER OCCUPIED THE ROOM********


//***************AND PRINTING THE TARIF************************

long tariff;
37

int dd1,dd2,mm1,mm2,yy1,yy2,q,r,p;
dd1=(d.date[0]-48)*10+(d.date[1]-48);
dd2=(od[0]-48)*1+(od[1]-48);
mm1=(d.date[3]-48)*10+(d.date[4]-48);
mm2=(od[3]-48)*10+(od[4]-48);
yy1=(d.date[6]-48)*1000+(d.date[7]-48)*100+(d.date[8]-48)*10+(d.date[9]-48);
yy1=(od[6]-48)*1000+(od[7]-48)*100+(od[8]-48)*10+(od[9]-48);
if(yy1%4==0)
{
p=29;q=28;
}
else if(yy2%4==0){ p=28;q=29;}
else{p=28; q=28;}
int cy[12]={31,p,31,30,31,30,31,31,30,31,30,31};
int ny[12]={31,q,31,30,31,30,31,31,30,31,30,31};
if(yy1==yy2&&mm1==mm2&&dd1==dd2)tariff=d.charge;
else
{
if(yy1==yy2)
{
if(mm1==mm2)tariff-d.charge*(dd2-dd1);
else
{
r=cy[mm1-1]-dd1+dd2;
for(int l=mm1;l<mm2;l++) r+=cy[1];
tariff=d.charge*r;
}
}
else
{
r=cy[mm1-1]-dd1+dd2;
for(int l=mm1;l<12;l++)r+=ny[1];
tariff=d.charge*r;
}
}
int c1,c2;
c1=(ot[0]-48)*10+(ot[1]-48);
c2=(ot[3]-48)*10+(ot[4]-48);
38

if(yy1==yy2&&mm1==mm2&&dd1==dd2);
else if(c1>12)tariff+=d.charge;
else if(c2==12&&c2>0)tariff+=d.charge;
cout<<"\t\t TARIFF ::Rs"<<tariff<<'\n';
f1.close();

//*********SHOWING THE CUSTOMER'S RESTUARANT AND BAR BILL**********

f8.open("BILL.DAT",ios::in|ios::binary);
f8.read((char*)&b,sizeof(b));
cout<<"\t\t RESTUARANT CHARGE ::Rs"<<b[rn-1].brestaurant<<'\n'
<<"\t\t BAR CHARGE ::Rs"<<b[rn-1].bbar<<'\n'
<<"\t\t TOTAL ::Rs"<<b[rn-1].brestaurant +b[rn-1].bbar+tariff;
b[rn-1].bbar= b[rn-1].brestaurant=0;
f8.close();
f8.open("BILL.DAT",ios::out|ios::binary);
f8.write((char*)&b,sizeof(b));
f8.close();

// ***********DELETING THE RECORD OF THE CUSTOMER*************

f1.open("HOT.EL",ios::in|ios::binary);
e.open("F.DAT",ios::out|ios::binary);
f1.read((char*)&D,sizeof(d));
while(f1)
{
if(d.roomno!=rn)
{
e.write((char*)&d,sizeof(d));
f1.read((char*)&d,sizeof(d));
}
else f1.read((char*)&d,sizeof(d));
}
e.close();
f1.close();
f1.open("HOT.EL",ios::out|ios::binary);
e.open("F.DAT",ios::in|ios::binary);
39

e.read((char*)&d,sizeof(d));
while(e)
{
f1.write((char*)&d,sizeof(d));
e.read((char*)&d,sizeof(d));
}
e.close();
f1.close();

//******* MAKING THE ROOM OCCUPIED BY THE CUSTOMER AS


UNOCCUPIED***********
f.open("ARRAY.DAT",ios::in|ios::binary);
f.read((char*)&array,sizeof(array));
array[rn-1]='e';
f.close();
f.open("ARRAY.DAT",ios::out|ios::binary);
f.write((char*)&array,sizeof(array));
f.close();
gotoxy(25,25);
cout<<"PRESS ANY KEY TO CONTINUE :-)";
getch();
clrscr();
}

//***** CANCELLATION IS USED FOR CANCEL THE SHEET IF SPECIFIC CUSTOMER****


void HOTEL::cancellation()
{
textcolor(1);
clrscr();
int rn,flag=0;
cout<<" ROOM NUMBER ::";
cin>>rn;
f1.open("HOT.EL",ios::in|ios::binary);
while(f1.read((char*)&d,sizeof(d)))
{
if(d.roomno==rn)
{
flag=1;
40

cout<<"SERIAL NO ::"<<d.serial_no<<"\n"
<<"\t\tROOM NUMBER ::"<<d.roomno<<"\n"
<<"\t\tNAME ::"<<d.name<<"\n"
<<"\t\tADDRESS ::"<<d.address<<"\n"
<<"\t\tTEL NO(R) ::"<<d.telno<<"\n"
<<"\t\tROOM TYPE ::"<<d.roomtype<<"\n"
<<"CANCELLED\n";
gotoxy(25,25);
cout<<"\n PRESS ANY KEY TO CONTINUE";
getch();
break;
}
}
if(flag==0)
{
cout<<"\n SORRY ROOM IS NOT VALID :-( ";
gotoxy(25,25);
cout<<"\n PRESS ANY KEY TO CONTINUE :-)";
getch();
}

//*******COPYING THE RECORD OF THE CUSTOMER INTO ANOTHER FILE*******


f3.open("CAN.CEL",ios::app|ios::binary);
strcpy(D.serial_no,d.serial_no);
strcpy(D.name,d.name);
strcpy(D.address,d.address);
strcpy(D.telno,d.telno);
f3.write((char*)&D,sizeof(D));
f3.close();
f1.close();

//*******MAKING THE ROOM ALLOTED TO THE CUSTOMER AS EMPTY**********

f.open("AARAY.DAT",ios::in|ios::binary);
f.read((char*)&array,sizeof(array));
array[rn-1]='e';
f.close();
f.open("ARRAY.DAT", ios::out|ios::binary);
41

f.write((char*)&array,sizeof(array));
f.close();
fstream e;

//********** DELETING THE RECORD OF THE CUSTOMER***************


f1.open("HOT.EL",ios::in|ios::binary);
e.open("F1.DAT",ios::out|ios::binary);
f1.read((char*)&d,sizeof(d));
while(f1)
{
if(d.roomno!=rn)
{
e.write((char*)&d,sizeof(d));
f1.read((char*)&d,sizeof(d));
}
else f1.read((char*)&d,sizeof(d));
}

e.close();
f1.close();
f1.open("HOT.EL",ios::out|ios::binary);
e.open("F1.DAT",ios::in|ios::binary);
e.read((char*)&d,sizeof(d));
while(e)
{
f1.write((char*)&d,sizeof(d));
e.read((char*)&d,sizeof(d));
}
e.close();
f1.close();
}

// ******RESTAURANT() IS USED TO PROVIDE FOOD FOR YOUR


CUSTOMER*********

void HOTEL ::restaurant()


{
int gd=DETECT,gm;
42

initgraph(&gd,&gm,"c:\\turboc3\\BGI");
cleardevice();
setbkcolor(RED);
settextstyle(8,0,4);
setcolor(YELLOW);
delay(1000);
outtextxy(50,150,"WELCOME TO THE RESTAURANT");
delay(2000);
outtextxy(100,200,"PLEASE TAKE YOUR SEAT");
delay(2000);
closegraph();
int price[113]={245,245,245,245,240,240,240,240,235,235,250,235,235,
220,215,230,215,240,250,250,250,250,250,250,250,255,
245,245,245,245,250,240,240,360,290,360,290,370,295,
360,290,360,290,250,360,290,360,290,250,370,290,360,
290,250,250,250,280,245,290,235,265,240,290,300,256,
240,265,270,255,255,240,240,235,220,25,30,25,30,35,
25,30,35,25,35,25,25,30,100,105,100,105,100,105,125,
105,125,105,105,100,105,110,115,100,100,100,105,105,
105,125,105,120,120,100};

char food[113][30] = {"SHAHI PANEER","KADAI PANEER","CHEESE KORMA",


"MALAI KOFTA","MATAR PANEER","PALAK PANEER ",
"MIX VEG","AALOO GOBI","AALOO JEERA","CHANA
MASALA",
"MATAR MUSHROOM","RAJMA MAKHANI ","DAL
MAKHANI","MIXED RAITA",
"BUNDI RAITA ","PINE APPLE
RAITA","SAKAD(GREEN)","DUM ALOO",
"MUSHROOM PANEER","MUTTON
MASALA","MUTTON MUGHLAI","MUTTON KORMA",
"MUTTON DO PYAG ","MUTTON SAGH","MUTTON
DAHI","MUTTON ROGAN JOSH",
"MUTTON CURRY","KADAI MUTTON","KEEMA
LEVER","KEEMA MATAR","KEEMA EGG",
"BRAIN CURRY","EGG CURRY","BUTTER
CHICKEN","BUTTER CHICKEN(1/2)",
43

"KADAI CHICKEN"," KADAI CHICKEN(1/2)","BUTTER


CHICKEN(BL)","BUTTER CJICKEN(BL)(1/2)",
"CHICKEN MUGHLAI","CHICKEN
MUGHLAI(1/2)","CHICKEN MASALA","CHICKEN MASALA(1/2)",
"CHICKEN MASALA(1/4)","CHICKEN SAGH","CHICKEN
SAGH(1/2)","CHICKEN DAHI",
"CHICKEN DAHI(1/2)", "CHICKEN DAHI(1/4)","CHICKEN
KIRMA","CHICKEN KORMA(1/2)",
"CHICKEN KORMA(1/4)","CHICKEN DO PYAJ","CHICKEN
DO PYAJ(1/2)",
"CHICKES DO PYAJ(1/4)","FISH CURRY","FISH
CURRY(1/2)","FISH CURRY(1/4)",
"CHICKEN CHILLI","CHICKEN CHILLI(1/2)","CHICKEN
CHILLI(1/4)","TANDOORI ALOO",
"CHICKEN TIKKA","SEEK KABAB","FISH
TIKKA","CHICKEN TANDOORI","CHICKEN TANDOORI(1/2)",
"PANEER TIKKA","CHICKEN SEEK KABAB","CHICKEN
HARA KABAB","CHICKEN BIRYANI",
"MUTTON BIRYANI","PANEER PULAO ","VEG
PULAO","JEERA RICE","SAREAMED RICE",
"RUMALI ROTI","ROTI","NAN","ALOO NAN","PANEER
NAN","KEEMA NAN","PARATHA",
"ALOO PARATHA","PANEER PARATHA","PUDINA
PARATHA","BUTTER NAN","LACHHA PARATHA",
"MISSI PARATHA","KHASTA ROTI","VEG
BURGER","PANEER BURGER","CHEESE SANDWICH",
"VEG PATTI","CHICKEN PATTI","TEA","COFFEE","COLD
COFFEE","PINEAPPLE"," STRAWBERRY",
"CHICILATE","BLACK FOREST","DOUBLE
STROEID","TRIPLE STORIED","SOFT CONE",
"VANILLA","STRAWBERRY","CHOCO CHIPS","MANGO
FRUITY","TUTTI FRUITY",
"LICHI","PISTA BADAM","CHOCOLATE PISTA BADAM"};
44

START:
textcolor(4);
clrscr();
gotoxy(31,1);cout<<"**********************************************";
gotoxy(31,2);cout<<"**********MENU CARD*****************";
gotoxy(31,3);cout<<"**********************************************";
gotoxy(31,5);cout<<"VEGETARIAN";
for(int i=0;i<15;i++)
{
gotoxy(15,i+7);cout<<i+1;
gotoxy(30,i+7);cout<<food[i];
gotoxy(55,i+7);cout<<price[i];
}
gotoxy(25,25);cout<<"PRESS ANY KEY TO CONTINUE :-)"; getch();
clrscr();
for(i=15;i<19;i++)
{
gotoxy(15,i-14);cout<<i+1;
gotoxy(30,i-14);cout<<food[i];
gotoxy(55,i-14);cout<<price[i];
}
gotoxy(33,7);cout<<"MUTTON";
for(i=19;i<33;i++)
{
gotoxy(15,i-10);cout<<i+1;
gotoxy(30,i-10);cout<<food[i];
gotoxy(55,i-10);cout<<price[i];
}
gotoxy(25,25);cout<<"PRESS ANY KEY TO CONTINUE :-)"; getch();
clrscr();
gotoxy(31,1);cout<<"CHICKEN";
for(i=33;i<54;i++);
{
45

gotoxy(15,i-30);cout<<i+1;
gotoxy(25,i-30);cout<<food[i];
gotoxy(55,i-30); cout<<price[i];
}
gotoxy(25,25);cout<<"PRESS ANY TO CONTINUE :-)"; getch();
clrscr();
for(i=54;i<58;i++)
{
gotoxy(15,i-53);cout<<i+1;
gotoxy(30,i-53);cout<<food[i];
gotoxy(55,i-53);cout<<price[i];
}
gotoxy(31,7);cout<<"BAR_BE QUE";
for(i=58;i<73;i++)
{
gotoxy(15,i-49);cout<<i+1;
gotoxy(30,i-49);cout<<food[i];
gotoxy(55,i-49);cout<<price[i];
}
gotoxy(25,25);cout<<"PRESS ANY KEY TO CONTINUE :-)";
clrscr();
gotoxy(30,1);cout<<"ROTI_NAN_PARATHA";
for(i=73;i<92;i++)
{
gotoxy(15,i-70);cout<<i+1;
gotoxy(30,i-70);cout<<food[i];
gotoxy(55,i-70);cout<<price[i];
}
gotoxy(25,25);cout<<"PRESS ANY KEY TO CONTINUE :-)";
clrscr();
gotoxy(30,1);cout<<"BEVERAGES";
for(i=92;i<95;i++)
{
gotoxy(15,i-89);cout<<i+1;
gotoxy(30,i-89);cout<<food[i];
gotoxy(55,i-89);cout<<price[i];
}
gotoxy(30,8);cout<<"PASTRIES";
46

for(i=95;i<101;i++)
{
gotoxy(15,i-85);cout<<i+1;
gotoxy(30,i-85);cout<<food[i];
gotoxy(55,i-85);cout<<price[i];
}
gotoxy(25,25);cout<<"PRESS ANY KEY TO CONTINUE :-)";
clrscr();
gotoxy(30,1);cout<<"ICE-CREAMS";
for(i=101;i<113;i++)
{
gotoxy(15,i-98);cout<<i+1;
gotoxy(30,i-98);cout<<food[i];
gotoxy(55,i-98);cout<<price[i];
}
gotoxy(25,25);cout<<"PRESS ANY KEY TO CONTINUE :-)";
clrscr();
int answ,fc,fch[113],fe=0,z=-1;
char fi[113][30],answe;
RETRY:
clrscr();
cout<<"PRESS 0 TO GO BACK TO MENU CARD\n"
<<"PRESS 1 TO CONTINUE";
cin>>answ;
switch(answ)
{
case 1: clrscr();
do
{
z++;
cout<<"ENTER THE FOOD CODE YOU WANT TO HAVE ::";
cin>>fc;
fch[z]=price[fc-1];
fe+=price[fc-1];
strcpy(fi[z],food[fc-1]);
cout<<"DO YOU WANT MORE(Y/N)?";
cin>>answe;
}while(answe=='y'||answe=='Y');
47

clrscr();
for(int y=0;y<z+1;y++)
{
cout<<fi[y];
gotoxy(40,y+1);cout<<fch[y]<<"\n";
}
cout<<"TOTAL";
gotoxy(40,y+1);cout<<fe<<"n";
cout<<"ARE YOU STAYING IN THIS HOTEL(Y/N)?";
char ans;
cin>>ans;

if(ans=='y'||ans=='Y')
{
char na[25];
int rn;
cout<<"ROOM NO ::";
cin>>rn;
cout<<"NAME ::";
gets(na);
for(i=0;na[i]!='\0';i++)na[i]=toupper(na[i]);
//**************** VERIFYING THE ENTERED DATA**********************
f1.open("HOT.EL",ios::in|ios::binary);
f1.read((char*)&d,sizeof(d));
while(f1)
{
if(d.roomno==rn && strcmp(d.name,na)==0)
{
f1.close();
goto BILL;
}

f1.read((char*)&d,sizeof(d));
}
f1.close();
cout<<"ENTERED DATA IS NOT MATCHING THE ACTUAL";
DATA:
48

gotoxy(25,25);cout<<"PRESS ANY KEY TO CONTINUE :-)";


getch();
return;
BILL:
//********ENTERING THE RESTUARANT CHARGE INTO THE FILE*************
f8.open("BILL.DAT",ios::in|ios::binary);
f8.read((char*)&b,sizeof(b));
int first=0;
cout<<"\n VISITING FIRST ?";
cout<<"\n PRESS 1 IF YES.";
cout<<"\n PRESS 0 IF NO.";
cin>>first;
if(first==1)
{
b[rn-1].brestaurant=0;
b[rn-1].brestaurant+=fe;
}
else
b[rn-1].brestaurant+=fe;
f8.close();
f8.open("BILL.DAT",ios::out|ios::binary);
f8.write((char*)&b,sizeof(b));
f8.close();
cout<<"THE RESTAURANT BILL HAS BEEN ENTERED INTO YOUR RECORD";
}
else
{
gotoxy(25,25);cout<<"PRESS ANY KEY AFTER PAYING THE BILL
:-)";
getch();return;
}
gotoxy(25,25);cout<<"PRESS ANY KEY TO CONTINUE";
break;
default:cout<<"YOU HAVE PRESSED A WRONG KEY \nRETRY\n";
getch();goto RETRY;
}
clrscr();
}
49

//*****BAR() IS USED TO PROVIDE BAR OF YOUR CUSTOMER***********


void HOTEL::bar()
{
int gd=DETECT,gm;
initgraph(&gd,&gm,"c:\\turboc3\\BGI");
cleardevice();
setbkcolor(RED);
settextstyle(8,0,4);
setcolor(YELLOW);
delay(1000);
closegraph();
char bottle[32][20]={ "RED LABLE","BLACK LABLE","GOLD LABLE","SIGNATURE",
"SEAGRAMS","8 PM","CIVAS REGAL","MC
DOWELL","BLACK DOG",
"BACKPIPER","PETER SCOTT","JHONY WALKER
","KINGFISHER","FOSTERS"
,"BUD WEISER","HAYWARD 2000","HAYWARD
5000","VORIAN 6000",
"RED WINE","WHITE WINE","PORT WINE","IRISH
CREAM","OLD MONK"
"BACARDI","BLUE ROBAND","SMIRNOF","VO DE
FRANCE","LEMAR DE VONCON",
"VINTAGE
BUBBLY","KINGFISHER","BAGPIPER","EVIAN BRAND"};
int cost[32]={1500,4000,6000,3000,2500,2000,5000,1500,4000,1500,2000,6000,

1000,1500,1000,1000,1500,1500,500,550,600,4000,1000,1000,
1500,5000,5500,8000,150,150,80};
START:textcolor(4);
clrscr();
gotoxy(18,1);cout<<"CODE";
gotoxy(35,1);cout<<"BRAND";
gotoxy(59,1);cout<<" PRICE";
gotoxy(35,4);cout<<"WHISKY";
for(int i=0;i<12;i++)
{
gotoxy(20,i+6);cout<<i+1;
50

gotoxy(35,i+6);cout<<bottle[i];
gotoxy(60,i+6);cout<<cost[i];
}
gotoxy(25,25);cout<<"PRESS ANY KEY TO CONTINUE";getch();
clrscr();
gotoxy(35,1);cout<<"BEER";
for( i=13;i<18;i++)
{
gotoxy(20,i-10);cout<<i+1;
gotoxy(35,i-10);cout<<bottle[i];
gotoxy(60,i-10);cout<<cost[i];
}
gotoxy(35,10);cout<<"WINE";
for(i=18;i<22;i++)
{
gotoxy(20,i-6);cout<<i+1;
gotoxy(35,i-6);cout<<bottle[i];
gotoxy(60,i-6);cout<<cost[i];
}
gotoxy(35,18);cout<<"RUM";
for(i=22;i<26;i++)
{
gotoxy(20,i-2);cout<<i+1;
gotoxy(35,i-2);cout<<bottle[i];
gotoxy(60,i-2);cout<<cost[i];
}
gotoxy(25,25);cout<<"PRESS ANY KEY TO CONTINUE";getch();
clrscr();
gotoxy(35,1);cout<<"CHAMPAIGNE";
for(i=26;i<29;i++)
{
gotoxy(20,i-23);cout<<i+1;
gotoxy(35,i-23);cout<<bottle[i];
gotoxy(60,i-23);cout<<cost[i];
}
gotoxy(35,8);cout<<"SODA";
for(i=29;i<31;i++)
{
51

gotoxy(20,i-19);cout<<i+1;
gotoxy(35,i-19);cout<<bottle[i];
gotoxy(60,i-19);cout<<cost[i];
}
gotoxy(35,14);cout<<"WATER";
gotoxy(20,16);cout<<"32";
gotoxy(35,16);cout<<"EVIAN BRAND";
gotoxy(60,16);cout<<"80";
gotoxy(25,25);cout<<" PRESS ANY KEY TO CONTINUE";getch();
clrscr();
int answ,fc,fch[32],fe=0,z=-1;
char fi[32][20],answe;
RETRY:
clrscr();
cout<<"PRESS 0 TO GO BACK TO THE LIST OF ITEMS\n"
<<"PRESS 1 TO CONTINUE";
cin>>answ;
switch(answ)
{

case 0: clrscr();
goto START;

case 1: clrscr();
do
{
z++;
cout<<"ENTER THE CODE YOU WANT TO HAVE ::";
cin>>fc;
fch[z]=cost[fc-1];
fe+=cost[fc-1];

strcpy(fi[z],bottle[fc-1]);
cout<<"DO YOU WANT MORE(Y/N)?";
cin>>answe;
}while(answe=='y'||answe=='Y');
clrscr();
for(int y=0;y<z+1;y++)
52

{
cout<<fi[y];
gotoxy(40,y+1);cout<<fch[y]<<"\n";
}
cout<<"TOTAL";
gotoxy(40,y+1);cout<<fe<<"\n";
cout<<"ARE YOU STAYING IN THIS HOTEL(Y/N)?";
char ans;
cin>>ans;

if(ans=='y'||ans=='Y')
{
char na[25];
int rn;
cout<<"ROOM NO ::";
cin>>rn;
cout<<"NAME ::";
gets(na);
for(i=0;na[i]!='\0';i++)na[i]=toupper(na[i]);
//**************** VERIFYING THE ENTERED DATA**********************
f1.open("HOT.EL",ios::in|ios::binary);
f1.read((char*)&d,sizeof(d));
while(f1)
{
if(d.roomno==rn && strcmp(d.name,na)==0)
{
f1.close();
goto BILL;
}

f1.read((char*)&d,sizeof(d));
}
f1.close();
cout<<"PRESS ANY KEY AFTER PAYING THE BILL";
getch();
return;
BILL:
//********ENTERING THE RESTUARANT CHARGE INTO THE FILE*************
53

f8.open("BILL.DAT",ios::in|ios::binary);
f8.read((char*)&b,sizeof(b));
int first=0;
cout<<"\n VISITING FIRST ?";
cout<<"\n PRESS 1 IF YES.";
cout<<"\n PRESS 0 IF NO.";
cin>>first;
if(first==1)
{
b[rn-1].brestaurant=0;
b[rn-1].brestaurant+=fe;
}
else
b[rn-1].brestaurant+=fe;
f8.close();
f8.open("BILL.DAT",ios::out|ios::binary);
f8.write((char*)&b,sizeof(b));
f8.close();
cout<<"THE RESTAURANT BILL HAS BEEN ENTERED INTO
YOUR RECORD";
}
else
{
gotoxy(25,25);cout<<"PRESS ANY KEY AFTER PAYING
THE BILL :-)";
getch();return;
}
gotoxy(25,25);cout<<"PRESS ANY KEY TO
CONTINUE";getch();
break;
default: cout<<"YOU HAVE PRESSED A WRONG KEY
\nRETRY\n";
getch();goto RETRY;
}
clrscr();
}
54

//******VIEW_DATA() IS USED TO DESIGN REPORT OF YOUR


CUSTOMER***********

void HOTEL::view_data()
{
START:
int choice;
int gd=DETECT,gm;
initgraph(&gd,&gm,"c:\\turboc3\\BGI");
cleardevice();
settextstyle(10,0,2);
setcolor(LIGHTBLUE);
outtextxy(10,5,"WHICH DATE YOU WANT TO VIEW ?");
setcolor(YELLOW);
settextstyle(10,0,1);
outtextxy(50,85,"HOTEL");
setcolor(LIGHTRED);
outtextxy(50,125,"CHECK OUT");
setcolor(DARKGRAY);
outtextxy(50,165,"CANCELLED");
setcolor(RED);
outtextxy(50,205,"BACK TO OPTIONS");
setcolor(YELLOW);
int x=40,y=77;
outtextxy(x,y,".");
char W;
int count=0;
do
{
count++;
W=getch();
if(W=='\0'+'H')
{
setcolor(BLACK);
outtextxy(x,y,".");
y-=40;
if(y<77)
{
55

y=197;
setcolor(WHITE);
outtextxy(x,y,".");
choice=4;
}
else if(y==77)
{
setcolor(YELLOW);
outtextxy(x,y,".");
choice=1;
}
else if(y==117)
{
setcolor(LIGHTRED);
outtextxy(x,y,".");
choice=2;
}
else if(y==157)
{
setcolor(DARKGRAY);
outtextxy(x,y,".");
choice=3;
}
else if(y==197)
{
setcolor(WHITE);
outtextxy(x,y,".");
choice=4;
}
}
else if(W=='\0'+'p')
{
setcolor(BLACK);
outtextxy(x,y,".");
y+=40;
if(y>197)
{
y=77;
56

setcolor(YELLOW);
outtextxy(x,y,".");
choice=1;

}
else if(y==77)
{
setcolor(YELLOW);
outtextxy(x,y,".");
choice=1;

}
else if(y==117)
{
setcolor(LIGHTRED);
outtextxy(x,y,".");
choice=2;
}
else if(y==157)
{
setcolor(DARKGRAY);
outtextxy(x,y,".");
choice=3;
}
else if(y==197)
{
setcolor(WHITE);
outtextxy(x,y,".");
choice=4;
}
}
else if(count==1&&W==13)choice=1;
}while(W!=13);
closegraph();
switch(choice)
{

case 1: textcolor(6);
57

clrscr();
//**********DATA OF PEOPLE LIVING IN THIS HOTEL************************

f1.open("HOT.EL",ios::in|ios::binary);
f1.read((char*)&d,sizeof(d));
while(f1)
{
cout<<"SERIAL NO ::"<<d.serial_no<<"\n"
<<"ROOM NO ::"<<d.roomno<<"\n"
<<"NAME ::"<<d.name<<"\n"
<<"ADDRESS ::"<<d.address<<"\n"
<<"TEL NO ::"<<d.telno<<"\n"
<<"CHECK IN DATE ::"<<d.date<<"\n"
<<"ROOM TYPE ::"<<d.roomtype<<"\n\n\n";

getch();
f1.read((char*)&d,sizeof(d));
}
f1.close();
clrscr();
goto START;

case 2: textcolor(12);
clrscr();
//********DATA OF PEOPLE WHO HAVE CHECKED-OUT*********************
f2.open("C.OUT",ios::in|ios::binary);
f2.read((char*)&C,sizeof(C));
while(f2)
{

cout<<"ROOM NO ::"<<C.roomno<<"\n"
<<"NAME ::"<<C.name<<"\n"
<<"ADDRESS ::"<<C.address<<"\n"
<<"TELEPHONE NO ::"<<C.telno<<"\n"
<<"CHECK-IN DATE ::"<<C.date<<"\n"
<<"CHECK-OUT DATE ::"<<C.odate<<"\n"
<<"CHECK_OUT TIME ::"<<C.otime<<"\n\n\n";
58

getch();
f2.read((char*)&C,sizeof(C));
}
clrscr();
f2.close();
goto START;

case 3: textcolor(8);clrscr();

//***********DATA OF PEOPLE WHO HAVE CANCELLED***********************


f3.open("CAN.CEL",ios::in|ios::binary);
f3.read((char*)&D,sizeof(D));
while(f3)
{
cout<<"NAME ::"<<D.name<<"\n"
<<"ADDRESS ::"<<D.address<<"\n"
<<"TELEPHONR NO ::"<<D.telno<<"\n\n\n";

getch();
f3.read((char*)&D,sizeof(D));
}
clrscr();
f3.close();
goto START;
}
clrscr();
}

//*********USER DEFINED FUNCTION CALLING AND


EXECUTION********************
void main()
{
wel();
grap1();
login();
int gd=DETECT,gm;
initgraph(&gd,&gm,"c:\\turboc3\\BGI");
59

setbkcolor(0);
setcolor(GREEN);
settextstyle(3,0,3);
// outtextxy(450,30,_DATE_);
delay(1000);
setcolor(RED);
settextstyle(4,0,5);
outtextxy(230,50,"WELCOME");delay(1000);
settextstyle(7,0,5);
setcolor(BLUE);
outtextxy(290,150,"TO");delay(1000);
settextstyle(8,0,5);
setcolor(GREEN);
outtextxy(245,250,"HOTEL");delay(1000);
setcolor(WHITE);
settextstyle(1,0,5);
for(int i=225,j=349;i<101;i++,j--)
{
outtextxy(i,360,"RAJGIR"); outtextxy(j,360,"RESIDENCY");
delay(15); setcolor(BLACK);
outtextxy(i,360,"RAJGIR");outtextxy(j,360,"RESIDENCY");
setcolor(WHITE);
}
outtextxy(100,360,"RAJGIR"); outtextxy(j,360,"RESIDENCY");delay(1000);
cleardevice();
i=1;
setbkcolor(CYAN);
do
{
setcolor(i);
settextstyle(4,0,5);
outtextxy(230,50,"WELCOME"); delay(100);
settextstyle(7,0,5);setcolor(i+1);
outtextxy(290,150,"TO");delay(100);
settextstyle(8,0,5);setcolor(i+2);
outtextxy(245,250,"HOTEL");delay(100);
outtextxy(245,310,"PROJECT");delay(100);
setcolor(i+3);settextstyle(1,0,5);
60

outtextxy(100,360,"RAJGIR");
outtextxy(j,360,"RESIDENCY");delay(100);
setcolor(i+4);settextstyle(3,0,4);
outtextxy(100,400,"DEVELOPED BY :- ANUPAM KUMAR :-)
");delay(100);
i++;
}while(i!=16);
delay(1000);cleardevice();settextstyle(0,0,0);
for(i=400;i>=0;i--){setcolor(MAGENTA);circle(320,240,i);delay(5);}
for(i=0;i<=400;i++){setcolor(RED);circle(320,240,i);delay(5);}
closegraph();control_menu();
}
typedef char option[15];
const int ROW=10,COL=10;
//TO HOLD THE SPECIAL CHARACTERS FOR MOVING THE PROMPT IN MENU
int ascii;
int scan;
//*********TO DISPLAY THE MAIN MENU OPTIONS***************************
option a[]= {"BOOKING",
"CHECKIN",
"CHECK OUT",
"CANCELLATION",
"RESTURANT",
"BAR",
"VIEW DATA",
"QUIT"};
//********FUNCTION TO DESIGN SCREEN***********************************
int i,done;
void normalvideo(int x,int y, char *str);
void reversevideo(int x,int y, char *str);
void box(int x1,int y1,int x2,int y2);
char menu();
//********MENU FOR DISPLAYING ALL THE OPTION OF THE BANKING SYSTEM
void control_menu();
//**********MEMBER FUNCTION TO DRAW BOXES***********************
void line_hor(int,int,int,char);
void line_ver(int,int,int,char);
void box(int,int,int,int,char);
61

//**RECORD STRUCRURE FOR INIRIAL ACCOUNT INFORMATION OF


CUSTOMER'S*****
//*************WHEN OPENING A NEW
ACCOUNT******************************
//FUNCTION TO DISPLAY ALL THE MENU PROMPT MESSAGES FROM THE POINTER
ARRAY OF OPTION
void normalvideo(int x,int y,char *str)
{
gotoxy(x,y);cprintf("%s",str);
}
//FUNCTION TO MOVE THE CURSOR ON THE MENU PROMOT WITH A REVERSE
VIDEO COLOR
void reversevideo(int x,int y,char *str)
{
textcolor(5);textbackground(WHITE);
gotoxy(x,y);cprintf("%s",str);
textcolor(GREEN);textbackground(BLACK);
}
void box1(int x1,int y1,int x2,int y2)
{
int col,row;
for(col=x1;col<x2;col++)
{
gotoxy(col,y1); cprintf("%c",196);
gotoxy(col,y2);cprintf("%c",196);
}
for(row=y1;row<y2;row++)
{
gotoxy(x1,row); cprintf("%c",179);
gotoxy(col,y2);cprintf("%c",179);
}
gotoxy(x1,y1); cprintf("%c",218);
gotoxy(x1,y2);cprintf("%c",192);
gotoxy(x2,y1); cprintf("%c",191);
gotoxy(x2,y2);cprintf("%c",217);
}
char menu()
{
62

clrscr();;textcolor(22);
// box(20,6,65,20);box(18,4,67,22);
textcolor(5+143);gotoxy(28,5);
textbackground(BLUE);
cprintf("HOTEL MANAGEMENT");
textbackground(BLACK);
textcolor(22);
for(i=1;i<8;i++)
normalvideo(32,i+10,a[i]);
reversevideo(32,10,a[0]);
i=done=0;
_setcursortype(_NOCURSOR);
do
{
int key=getch();
switch(key)
{
case 00:
key=getch();
switch(key)
{
case 72:
normalvideo(32,i+10,a[i]);
i--;
if(i==-1)
i=7;
reversevideo(32,i+10,a[i]);
break;
case 80:
normalvideo(32,i+10,a[i]);
i++;
if(i==8)
i=0;
reversevideo(32,i+10,a[i]);
break;
}
break;
case 13:
63

done=1;
}
}while(!done);
_setcursortype(_NOCURSOR);
return(i+49);
}
//THE FUNCTION MAIN MENU() IS USED TO DISPLAY THE MAIN MENU OF HOTEL
MANAGEMENT
void control_menu()
{
char choice;
do
{
choice=menu();
clrscr();
switch(choice)
{

case '1': _setcursortype(_NORMALCURSOR);


H.booking();
break;

case '2': H.check_in();


break;

case '3': _setcursortype(_NORMALCURSOR);


H.check_out();
break;

case '4': _setcursortype(_NORMALCURSOR);


H.cancellation();
break;

case '5': H.restaurant();


break;

case '6': H.bar();


break;
64

case '7': H.view_data();


break;

case '8': exit(0);


}

}while(choice!=6);
}
//************GRAPHICAL SCREEN FOR PROJECT LOADING********************
void grap1()
{

char msg[33];
int gd=DETECT,gm,err;
initgraph(&gd,&gm,"c:\\turboc3\\BGI");
setfillstyle(1,8);
setcolor(BLACK);
line(0,300,640,300);
floodfill(320,240,8);
setcolor(BLACK);
line(320-150,320-13,320+150,320-13);
line(320-150,320+12,320+150,320+12);
line(320-150,320-13,320-150,320+12);
line(320+150,320+12,320+150,320-13);
int s=30,w;
gotoxy(30,23);
cout<<"LOADING....";
for(int x1=171,x2=171,y1=308,y2=331,y=1,S=0;x1<470;x1++,x2++,y++,s++)
{
setcolor(4);
line(x1,y1,x2,y2);
w=(x1-169)/3;
for(int i=43;i<=78;i++)
{
gotoxy(i,23);
cout<<" ";
}
65

gotoxy(50,23);cout<<w<<"%";
if(x2>270)s=45;if(x2>370)s=10;
if(x2==320)delay(909);else
delay(s);
}
delay(800);
for(int i=27;i<=78;i++)
{
gotoxy(i,23);
cout<<" ";
}
gotoxy(15,15);
cputs(" ");
gotoxy(40,23);
cout<<"COMPLETED";
delay(500);
cleardevice();
closegraph();
}

//*************END OF HOTEL-INFO PROJECT


CODING****************************
66

HOTEL MANAGEMENT

BOOKING
CHECK IN
CHECK OUT
CANCELLATION
REATAURENT
VIEW DATA
OUIT

INPUT SCREEN OF BOOKING RECEIPT

ENTER THE REQUIRED DATA


67

NAME : : Anu Singh


ADDRESS(R):: Rajgir
TEL.NO (R):: 8051547957

DATE WHEN YOU WILL CHECK-IN(dd/mm/yyyy):: 12/9/2012

ROOM TYPES CODE CHARGE PER DAY

ROYAL SUITE 1 Rs 20,000

SUPER DELUXE 2 Rs15,000

DELUX 3 Rs 10,000

DOUBLE BED 4 Rs 5,000

SINGLE BED 5 Rs2,000

ROOM CODE:: 4

CHECK IN() MENU OUTPUT


ROOM NUMBER ::6477

NAME :: MANJEET KUMAR

ADDRESS(R) :: BIHARSHARIF

TEL.no(R) :: 9304536727

CHECK-IN DATE::12/9/2012

ROOM TYPE ::SUPER DELUXE

CHECK OUT() INPUT DATA SCREEN


ROOM NUMBER::6477

CHECK-OUT DATE(dd/mm/yyyy)::12/9/2012
68

CHECK-OUT TIME(in form of 07:30,22:55,etc):: 10:33

OUTPUT SCREEN OF RESTAURENT()


******************************************

MENU CARD

******************************************

VEGETARIAN

1 SHAHI PANEER 245

2 KADAI PANEER 245

3 CHEESE KORMA 245

4 MALAI KOFTA 245

5 MATAR PAN 240

6 PALAK PANEER 240

7 MIX VEG 240

8 ALOO GOBI 240

9 ALOO JEERA 235

10 CHANA MASALA 250

11 MIXED RAITA 220

CHICKEN

34 BUTTER CHICKEN 360


69

35 BUTTER CHICKEN(1/2) 290

36 KADAI CHICKEN 360

37 KADAI CHICKEN(1/2) 290

38 CHICKEN MASALA 360

39 CHICKEN MASALA (1/2) 270

40 CHICKEN KORMA 370

41 CHICKEN KORMA (1/2) 250

42 CHICKEN DO PYAJ 270

43 CHICKEN FRY 250

44 CHICKEN FRY(1/2) 200

45 CHICKEN MUGHLAI 256

46 CHICKEN MUGHLAI (1/2) 150

47 BUTTER CHICKEN(BL) 350

48 BUTTER CHICKEN (BL)(1/2) 175

CODE BRAND PRICE

WHISKY

1 RED LABEL 1500

2 BLACK LABEL 4000

3 GOLD LABEL 6000

4 SIGNATURE 2500

5 BAGPIPER 1500

6 PETER SCOT 2000

7 JOHNY WALKER

BEER
70

9 FOSTERS 1500

10 BUD WEISER 1000

11 HAUWARD 2000 1000

12 VORIAN 6000 1500

WINE + RUM
13 OLD MONK 1500

14 WHITE WINE 600

15 BACARDI 1000

16 PORT WINE 500

17 SMIRNOFF 1540

OUTPUT SCREEN OF CHECK OUT


*****BILL*****
ROOM NUMBER :: 8355

NAME :: AVINASH SINGH

ADDRESS(R) :: BIHAR SHARIF

TEL.NO(R) :: 8051547957

ROOM TYPE ::SUPER DELUXE

CHECK IN DATE ::22/10/2012

CHECK OUT TIME ::8:21

BAR CHARGE :: 1000

RESTAURENT CHARGE ::710

TOTAL :: Rs 1710
71

OUTPUT SCREEN OF CANCELLED DATA

ROOM NUMBER ::9027

NAME ::ARMAN KHAN

ADDRESS(R) :: KOLKATA

TEL.NO :: 099039799700

ROOM TYPE ::ROYAL SUITE

CANCELLED

PERT CHART

WRITING MANUAL

Feb22

March 22

FINISH
Jan 20 Jan 25 Feb 15
March 10
ANALISIS DESIGN
START CODEING

TESTING & IMPLIMENT


FEASIBILITY DESIGN REVIEW May20
Feb 20 March 20
Feb 01
72

PIE CHART

The Pie chart shows the consumption of time by various phases of the System Development Life Cycle of LIC
PROJECTT SYSTEM.

Validation &
Testing
20%
System Study
30%

Coding
20% System Analysis
& Design
30%

System Study System Analysis & Design

Coding Validation & Testing


73

COST ESTIMATION

When we start this new project, the first question that we were heard was “how much will this
cost?” while costs are a major factor in deciding both the scope of new system and even
whether or not to have one, the bottom-line setup costs are not as important as deciding
overall return from the new system.
The overall return factors in several costs elements including:
 Cost of setup, including hardware and software
 Cost of converting existing information
 Cost of creating new information
 Cost of designing and programming for new system application
 Cost of training
And while that can quickly add up to a significant sum, we will see that costs are reduced
in other areas including:
 Communication:
communication is improved. The way an organization communicates its message is
vital to the success of the organization. Communicating with both the employee and
customer can change the way people see that organization. Employee often complains
about poor communication; they feel left out of the poor or like they were working on a
project that has no focus or purpose. Using the new computerized system employee can
share information in an easy-to-use format that removes many organizational
constraints.

 Printing:
Reports will still need to be printed, but employee will only have to print the
relevant information, as needed-a significant savings over printing and building the entire
reports.
 Technology:
Skills are enhanced. The customer and organization benefited by keeping
employee’s skills current.
 Security:
Safeguarding sensitive and important data in a form that is accessible to the only
authorized personnel.

FUTURE SCOPE OF THE PROJECT

Normally a company covers different area of business. However this project Employee
Management System only covers the implementation of the employee’s records. The data
accumulated in this project is used periodically to provide different types of managerial
information.
74

The future application of this Employee Management System is:

 This overall project is basically written in function and can be used in conjunction with
other program, for future development HOTEL MANAGEMENT.
 We have provided many simple data functions through which one can know about
any information of account details.
 This project is using the modern trend OOPs the gives a better design to the software,
which help in maintaining code in terms of reusability, modifiability, in future etc.
these attributes a quit wanting in today’s complex software scenario. OOPs giving a
better design objective taken this problem and provide better design objective.
 This software is designed with OOPs so we chosen C++ language, which provide all
features which will be needed in future. This software is having sounding economic
aspect with the motion of controlling the local market.
 Cost of our project is comparatively low.

Validation Checks

While inputting the data records the following validations must be checked:

 The policy no. May be opened by a person on his own behalf, but more than one policy
no. can not be opened with the same policy no. Because the policy no is unique.
 The name, address should not leave blank and should not greater than 25 characters.
 The password should not blank and also should not greater than 8 characters.
 The password that was entered is not visible in its correct format.
 Transaction date is the system date/current date.

FEASIBILITY STUDY

The data collections that occur during preliminary investigation examine system feasibility. Tin
this has several test is being made and the inference of these tests led to the conclusion that
the system is feasible.

1.) Operational Feasibility:


75

Some of the questions whose answer to be in the positive for this particular system is:

a) Is there sufficient support for the project from the management to us?
Yes, for this project all the persons of the management as well as the user of this
organization provide necessary support.
b) Have the being involved in the planning and the development of the project? Yes,
they are involved at the earliest storage of project development, do the chance of
resistance can be possibly reduced.
c) Will the performance of staff member fall dawn after implementation?
No, after implementation of this system the staff member may perform their tasks
very easily and efficiently.

2.) Economic Feasibility:


Some of he question whose answer is to Bank Project in he positive for this particular
system is:

a) Is the proposed system economically feasible?

Yes, the development cost is affordable because the S/W is developed using simple
OOPs like the language used is C++ on DOS platform.

b) Is it within the state of art?

The technologies needed for the development of the Software is readily available
and there is no further need of R&D (research and development) in the Software.
Hence it is within the state of at. The most important OOPs for the system
development are the graphical presentation. This S/W is developed using simple
OOPs taking consideration of the development cost. It could have been developed
using other complex OOPs but that would make the software costlier.

3.) Technical Feasibility:

Some of the question whose answer is to be in the positive for this particular system
is:

a.) Does the necessary technology exit to do what I is suggested? Yes


76

b) Can the system be upgraded if developed?

Yes, because this will be developed using the techniques of OOPs.

TESTING
The testing process focusing on the logical internals of the Software, ensuring that all
statements have been tested, and one the functional external, that is, conducing test to
uncover errors and ensure that defined input will produce actual results that agrees with
required results.

Unit Testing:
In this project the smallest testable unit is the encapsulated class and object. Because in OOPs
encapsulation derives the definition of classes and objects. Class testing for the OOPs software
is driven by the operations encapsulated by the class and the state, behaviors of the class.

Integration Testing:

There are two different strategies for integration testing for OOPs systems. The
first, thread-based testing integrates the set of classes required to respond to one input
or even for the system. Each thread is integrated and tested individually. Regression
testing is applied to make ensure that no side effect occurs. The second integration
approach, use-based testing, begins the construction of the system by testing those
classes that uses very few server classes.
Validation Testing:
At the validation or system level, the details of class connection are tested. Now,
the validation of OOPs software focuses on user-visible actions and users-recognizable
output from the system. After conducting validation tests, we find that the following
validations are implemented properly for this project:
 Transaction date is the system date/current date.

Random Testing:
We apply random testing for classes and sub classes. Each of there operation is
applied for class policy but certain constrains are implied.
77

Example: - the policy no must be open before other operation can be applied and closed
after all operations are completed.

Bibliography
At the ending the following bibliography is in no way complete. However it is an attempt to
list a few a numbers of sources and reference we have used for the development of design of
the project in this elegant form.

Title of book Author/Publisher

LET US C++ Yaswant Kanitakar / BPB

TURBO C++ Robert Lafore Galgotia

ANSIC C++ E.Balaguru Swami


78

THANK

YOU
79
80
81
82

Potrebbero piacerti anche