You are on page 1of 22

C Programming documentation

C Programming Project
ON

HOTEL MANAGEMENT SYSTEM

Project Title

: Hotel management System

Group No

:3

Group Members

: Ajith Joseph
Jobins Thomas
Nithin bose
Merin annie Thomas
Chandana K.S
Jonu P Dominic

Subject Name

: C programming

Group In charge

: Jacob Thomas

S.NO.

TITLE

Introduction

Current System

Proposed System

Configuration for Hardware and Software

Program Specification

Input Specification

File Specification

Program Design and Pseudo code

Program

10

Screen Design

11

Output Screen Design

12

Conclusion

13

Acknowledgment

14

References

PAGE NO.

Introduction
In todays world, the way of functioning and managing the system has been totally
changed. There is a sudden and abrupt changes in the structure maintenance and
modification, handling, leveling inside every system. Without managing system through
computer applications and programming, the development of infrastructure are unfinished.
There are many errors and drawback without use of computer programming and application.
As we know that, necessity is the mother of invention , so in todays challenging
world , every system is developed and launched by the use of computer software and
programming. As an Customer and hotel are two related terms of business field, there should
be proper way of management. The title of the project is related to hotel i.e., Hotel
Management system .hotel management system deals with basic record of customer and
staffs, room details, restaurant details ,report etc. of the hotel.
Due to excessive growing number of hotels in the world, it is very enough to handle
important files and data of the hotel correctly, efficiently and systematically. Location of this
data may be inaccurate and difficult to access when they are required. So by the use of Hotel
Management System, user can easily maintain files and records in systematic way. Only
authorized users are allowed to enter through the system. So security is also maintained in the
system. The other feature of this management system is file storing safely, easy access when
needed, data addition, deletion and modification.
Thus, the hotel Management system being one of the major necessity in todays
business filed. So it can solve almost all the problem and can reached to each and every
requirement of the user.

Current System
Some old record keeping system is existed till now in most of the hotels. No any
developments have been made through the use of computer system. All the records are
managed by using huge paper made registers, note-copies and hard covers. So it is not a kind
of data management. It is totally unsafe as well as uncivilized way of filling and indexing
system. There is some software for doing these words. But they are of huge amount of
installation.
Due to these reasons, the hotel system in the country is undeveloped. Many unwanted
environmental factors like fire, rain etc. damages the handwritten files totally. Not only
natural disasters but also the theft and robbery are also equally affecting loss of data,
important records and files.

Proposed system and objectives


Hotel management system is a simple application, which is especially generated and
designed for the low level to star hotels in order to enter the various records and information,
and can perform other functions like addition, deletion, searching and modification if
required. It is username and password protected as well. So a hotel needs a normal computer
application like where it has ability to do all those tasks like other programs do.
Following are the major objectives behind the new proposed system;
It creates user friendly environment, where a normal user can easily access through all
the benefits of the system.
It provides security from unauthorized access, only admin or authorized users are
access granted to the system.
It increases efficiency and saves the time.
No any danger and obstacles from external entities.
Easy access of saved data inside the system.

Programming specification
Input Specifications
Struct Information: Login
Sno

Variable Name

Description

Data type

Size

strUserName

User Name

Char

20

strPassword

Password

Char

20

strUserType

User Type

Char

20

Struct Information:Time
Sno

Variable

Description

Datatype

Size

hr

Hour

Int

minut

Minute

Int

sec

Second

Int

Struct Information:Date
Sno

Variable

Description

Datatype

Size

day

Day

Int

month

Month

Int

year

Year

Int

Struct Information: staff


Sno

Variable Name

Description

Data type

Size

iEmpNo

Employee No

Int

strEmpFName

Emp First Name

Char

20

strEmpLName

Emp Last Name

Char

20

strEmpHouseName

Emp House Name

Char

20

iPin

Pin

Int

strStreet

Street address of emp

Char

20

strPhone

Phone Number of employee

Char

20

strEmail

Email address

Char

20

strQualification

Qualification

Char

20

10

strDesignation

Designation

Char

20

11

iSalary

Salary

Int

12

fBonusPercentage

Bonus salary Percentage

Float

Size

Struct Information: ROOM

Sno

Variable Name

Description

Data type

iRoomNumber

Room Number

Int

iFloorNumber

Floor Number

Int

iNoOfBed

Number bed available

Int

iAC

Ac available or not

Int

iTV

TV available or not

Int

iInternet

Internet available or not

Int

iPhone

Phone Number

Int

iRentAmount

Rent of a Room

Int

Struct Information: Booking


Sno

Variable Name

Description

Data type

Size

iBno

Booking Number

Int

iRno

Room Number

Int

DateOfBooking

Booking Date

Struct

12

strFName

First Name

Char

20

strLName

Last Name

Char

20

strHouseName

House Name

Char

20

strStreet

StreetName

Char

20

intPin

Pincode

Int

strPhone

Phone Number

Char

20

10

strEmail

Email Id

Char

20

11

iAdvance

Advance Amount

Int

Struct Information: Rent


Sno

Variable Name

Description

Datatype

Size

iRentNumber

Rent

Int

iRoomNumber

Room Number

Int

strFName

First Name

Char

20

strLName

Last Name

Char

20

strHouseName

House Name

Char

20

strStreet

Street Name

Char

20

iPin

Pin Code

Int

strPhone

Phone

Char

20

strEmail

Email

Char

20

10

bookingDateFrom

Booking Date From

Struct Date

12

11

bookinDateTo

Booking Date To

Struct Date

12

12

iNorOfDay

Number Of Date

Int

13

iRoomRent

Room Rent

Int

14

iBillFromRestaurant

Restuarnt bill No

Int

15

iAdvance

Advance Amount

Int

16

iBalance

Balance Amount

Int

Struct Information: Restaurant Bill


Sno

Variable Name

Description

Datatype

Size

iRBill

Restaurant Bill No

Int

strItem

Item Name

Char

50

iRs

Item Rupees

Int

iQty

Quantity of Food

Int

iTotal

Total Amount

Int

Struct Information:Restaurant Bill Master.

Sno

Variable

Description

Datatype Size

iRbill

Restaruant Bill No

Int

iTable Number

Table Number

Int

BillDate

Date Of Bill

Struct Time 12

billTime

Time Of Bill

Struct Time 12

iRoom Number

Room Number

Int

iTotal

Total

Int

Ipaid

Amount Paid

Int

Struct Information:FOOD ITEM

Sno

Variable

Description

Datatype

Size

iNumber

Food Number

Int

strName

Name of the food

Char

50

iCount

Number of Food Items

Int

iRs

Rupees

Int

File Specification

Name

Description

*fLOGIN

File pointer for Login.

*fSTAFF

File pointer for managing staff details.

*fROOM

File pointer for managing room details

*fBOOKING

File pointer for room booking

*fRENT

File pointer to calculate the rent

*fRESTAURENTBILL

File pointer for the restaurant bill

*fFOODITEM

File pointer for the food item

Welcome Screen

Login Screen

Main Menu Screen

Room Menu Screen

Add New Room Screen

Edit New Room Screen

Delete Room Screen

Search Room Screen

Search With Room Status Screen

Add New Item To Bill Screen

Room Details Screen

New Room Booking Screen

Report of Room Rent Screen

Search using Staff ID Screen

Exit Screen

Conclusion
1. Program Weakness
As we know that, no any program can be efficient and 100% reliable. So, there are
also some drawbacks from our system which are as follows:
It cannot perform all the required functions as of professional one, it is simply
a record keeping of hotel management system.
System is not sharply a graphical user interface. There is just use of some text
colors and borders.
It is not a multipurpose and multitasking. It cant perform various task at
single time
2.Program Strengths
There are many advantages of using this program as it contains various features like:
Its actually a user friendly software, as it is ease to use by just following.
The instructions as it is appeared on the screen.
This program has a login system, so that only authorized user can only
allowed to accessed through the internal main system.
Input name should matched the name entered already in the system in order
to perform modification, deletion and searching, so that the record will be
safe totally.

3.Program Enhancement
Users can add extra enhancements in the system as per necessity in the future for the
fulfillment of the requirement.
For security purpose, advanced encryption techniques can been applied.

Acknowledgment
We would like to thank Mr. Jacob Thomas for giving us an outstanding
guidance and co-operation for designing this system. We were successfully
developed this system through his idea and beliefs. And last we would thanks to
the Department Of Computer Application especially our group tutor Mr. Jijo
Varghese for giving this opportunity to build up an application by the use of C
Programming.

Reference