MB Code
MB Code
A
PROJECT OF
MANJEET KUMAR
REG NO:- 2631699/10
ROLL NO:-NAL-13263413042
DATE OF SUBMISSION:-25.04.2013
NALANDA COLLEGE,BIHARSHARIF(M.U)
CERTIFICATE
THIS IS TO CERTIFY THAT Mr./Miss/Mrs. MANJEET KUMAR SON/DAUGHTER/WIFE
HAS COMPLETED THE PTOJECT WORK FOR BCA PART –III(PAPER-VIII ) FOR THE
ACADEMIC SESSION 2010-2013
LAB-IN –CHARGE
INTERNAL EXTERNAL
(EXAMINER) (EXAMINER)
Co-ORDINATOR
BIHARSHARIF
biharsharif(803101)
STATUS <-:->unmarried
Faculty in niit
Signature_____________________
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.
MANJEET KUMAR
(Reg.No.:- 2631699/10 )
TABLE OF CONTENTS
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.
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-
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.
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.
(B)CONTROL:-
( C) COMMUNICATION:-
(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
INTRODUCTION
OBJECTIVES:-
To design software for Hotel project that will generate the proposed output is software must
generate the following output on;-
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
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:
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.
b) User training
User training deals with operation or system itself, with proper
attention gives to the data handling technique.
a) Administrative Planes :
Review area onjectives , operating costs , actual operating performance
and benefits.
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
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
CUSTOMER CHECK IN
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.
char telno[10],date[11],roomtype[15];
gets(); //To input one full line text from stander input device.
#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
SOURCE CODE
}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;
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
}
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";
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();
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();
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();
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();
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();
}
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;
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();
}
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};
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
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
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();
getch();
f3.read((char*)&D,sizeof(D));
}
clrscr();
f3.close();
goto START;
}
clrscr();
}
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
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)
{
}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();
}
HOTEL MANAGEMENT
BOOKING
CHECK IN
CHECK OUT
CANCELLATION
REATAURENT
VIEW DATA
OUIT
DELUX 3 Rs 10,000
ROOM CODE:: 4
ADDRESS(R) :: BIHARSHARIF
TEL.no(R) :: 9304536727
CHECK-IN DATE::12/9/2012
CHECK-OUT DATE(dd/mm/yyyy)::12/9/2012
68
MENU CARD
******************************************
VEGETARIAN
CHICKEN
WHISKY
4 SIGNATURE 2500
5 BAGPIPER 1500
7 JOHNY WALKER
BEER
70
9 FOSTERS 1500
WINE + RUM
13 OLD MONK 1500
15 BACARDI 1000
17 SMIRNOFF 1540
TEL.NO(R) :: 8051547957
TOTAL :: Rs 1710
71
ADDRESS(R) :: KOLKATA
TEL.NO :: 099039799700
CANCELLED
PERT CHART
WRITING MANUAL
Feb22
March 22
FINISH
Jan 20 Jan 25 Feb 15
March 10
ANALISIS DESIGN
START CODEING
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%
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.
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
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.
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.
Yes, the development cost is affordable because the S/W is developed using simple
OOPs like the language used is C++ on DOS platform.
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.
Some of the question whose answer is to be in the positive for this particular system
is:
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.
THANK
YOU
79
80
81
82