Download as docx, pdf, or txt
Download as docx, pdf, or txt
You are on page 1of 24

Koneru Lakshmaiah Education Foundation

(Deemed to be University)

FRESHMAN ENGINEERING DEPARTMENT


A Project Based Lab Report

On

HOTEL MANAGEMENT SYSTEM

SUBMITTED BY:

I.D NUMBER NAME

2200030156 G. OM SAI VARSHITH

2200030208 A.A.N.V.R. KISHAN

2200030381 A. UJWALA

2200030386 CH. PUJITHA

UNDER THE GUIDANCE OF

Dr. N. ALANGUDI BALAJI

PROFESSOR

KL UNIVERSITY
Green fields, Vaddeswaram – 522 302
Guntur Dt., AP, India.
DEPARTMENT OF BASIC ENGINEERING SCIENCES-1

CERTIFICATE

This is to certify that the project based laboratory report entitled Hotel
management system submitted by Mr. G.VARSHITH, A.A.N.V.R.KISHAN, A.UJWALA,
CH.PUJITHA bearing Regd. No. 2200030156, 2200030208, 2200030381,
2200030368 to the Department of Basic Engineering Sciences-1, KL University
in partial fulfillment of the requirements for the completion of a project based
Laboratory in “COMPUTATIONAL THINKING FOR STRUCTURED DESIGN”course
in I B Tech I Semester, is a bonafide record of the work carried out by him/her under
my supervision during the academic year 2022-2023

PROJECT SUPERVISOR HEAD OF THE DEPARTMENT

Dr. N. ALANGUDI.BALAJI Dr. D. Haritha


ACKNOWLEDGEMENTS

It is great pleasure for me to express my gratitude to our honorable


President Sri. Koneru Satyanarayana, for giving the opportunity and platform
with facilities in accomplishing the project based laboratory report.

I express the sincere gratitude to our principal Dr. A. Jagadeesh for his
administration towards our academic growth.

I express sincere gratitude to HOD-BES-1 Dr. D. Haritha for her


leadership and constant motivation provided in successful completion of our
academic semester. I record it as my privilege to deeply thank for providing us
the efficient faculty and facilities to make our ideas into reality.

I express my sincere thanks to our project supervisor Dr. N. ALAGUDI


BALAJI for his/her novel association of ideas, encouragement, appreciation and
intellectual zeal which motivated us to venture this project successfully.

Finally, it is pleased to acknowledge the indebtedness to all those who


devoted themselves directly or indirectly to make this project report success.

Regd.No: Name:

2200030156 G. OM SAI VARSHITH


2200030208 A.A.N.V.R. KISHAN
2200030381 A. UJWALA
2200030386 CH. PUJITHA
ABSTRACT

The Project HOTEL MANAGEMENT SYSTEM is a web based application


that allows the hotel manager to handle all hotel activities online.
Interactive GUI and the ability to manage various hotel bookings and rooms make
this system very flexible and convenient. The hotel manager is a very busy person
and does not have the time to sit and manage the entire activities manually on
paper. This application gives him the power and flexibility to manage the entire
system from a single online system.
Hotel Management project provides room booking, staff management and
other necessary hotel management features. The system allows the manager to
post available rooms in the system. Customers can view and book room online.
Admin has the power of either approving or disapproving the customer's
booking request.
Other hotel services can also be viewed by the customers and can book
them too. The system is hence useful for both customers and managers to
portably manage the hotel activities.
INDEX

S.NO TITLE PAGE NO

1 Introduction 1

2 Aim of the Project 2

2.1 Advantages & Disadvantages 2

2.2 Future Implementation 2

3 Software & Hardware Details 3

4 Algorithm 4

5 Flowchart 5

6 Implementation 6

7 Results and Screenshots 18

8 Conclusion 19
INTRODUCTION

The main purpose of a hotel is to provide shelter for people by giving it for rent.
The project Application on Hotel management is to develop a C program which enables
the customer of a hotel to know about the hotel and book a room and also allows him to
go through restaurant menu and order food online. And in this project the hotel is a 7-
stored 5-star hotel which has 10rooms in each floor with high end ambience and luxury
hotel with many facilities like bar room, swimming pool, Food buffet, Gym etc. The room
numbers in this hotel are (Floor number)01 to (Floor number)10. In this program the
customer can enter his details and his details will be stored in a txt file

1
AIM

Advantages:-
1.Let’s customer do everything from online without physical effort
2. Things made easier
Disadvantages:-
1.The online booking may create unemployment for the people who work at
the hotel.
2.It may be difficult for the people who do not know the operations related to
computers
3. The establishment in remote places might become difficult.
Future enhancements:-
We plan to develop a system which is easily accessible to people from all age groups
along with which we try to include the snack ordering system, so that people don’t need
to run behind the snack booths during the intermission. Also we will try to provide
discount coupons to encourage more and more people to use this system of ticket
booking

2
SYSTEM REQUIREMENTS

SOFTWARE REQUIREMENTS:
The major software requirements of the project are as
follows: Language : Any C compiler / IDE
Operating system: Windows / Linux
HARDWARE REQUIREMENTS:
The hardware requirements that map towards the software are as follows:
RAM : Basic computer is required
PROCESSOR : Intel / Mac / PC

3
ALGORITHM
Step 1: Start

Step 2: Read choice(k).

1. Availability of rooms.

2. Features available in hotel.

3. Book a room.

4. Checkout.

5. Restaurant menu.

Step 3: If(k==1)

Availability();

Else if(k==2)

Features();

Else if(k==3)

select();

7 Else if(k==4)

Checkout();

Else if(k==5)

Restaurant();

Else

Print(Invalid input)

Step 4: Stop.

4
START
FLOWCHART

DISPLAY HOTAL

SERVICES

PROMPT SYSTEM TO IS OPERATION


PERFORM OPERATION RESERVATION

DISPLAY

RESERVATION

Accept Room

Check-In And

Check-Out Date

SYSTEM CHECKS IF SELECTED

ROOMIS AVALIBLE WITHIN

DATES

IS ROOM

WITHIN ACCEPT CUSTOMER


ROOM SELECTED DEPOSIT BASED ON

NOT AVAILABLE CAPACITY

SAVE RESERVATION INFORMATI-

-ON FOR THE CUSTOMER

SAVED SUCCESFULLY

STOP
5
IMPLEMENTATION
#include<stdio.h>

#include<conio.h>

#include<string.h>

#include<time.h>

#include<stdlib.h>

void begin();

void program();

void show_details();

void complaints_suggestions();

void book_room();

void mini_casino();

void GuessGame();

struct {

char name[20];

char address[50];

char email_id[30];

char nationality[25];

int roomno;

char *roomtype

6
int billprice; char

*program;

}person;

int main(){

person.roomno =0;

person.billprice =0;

person.program = "notchosen";

printf(".............WELCOME TO RESTAURANT AND LODGE.............\n");

printf("Please enter your details before moving to the main page!\n");

printf("please enter your name:");

gets(person.name);

printf("enter your address:");

gets(person.address);

printf("enter your nationality:");

gets(person.nationality);

printf("enter your email_id:");

gets(person.email_id);

system("cls");

time_t timer = time(NULL);/*to get the present local time*/

begin();

return 0;

void begin(void){

int decide;

printf("\n-----------------------HOME PAGE--------------------------\n");

7
printf("\n HOW CAN WE HELP YOU?\n\n");

printf("\n1.Book a room\n2.Program\n3.mini casino\n4.show my details\


n5.complaints or suggestions\n6.check out\n7.about us\n");

scanf("%d",&decide);

switch(decide)

case 1:

book_room();

break;

case 2:

program();

break;

case 3:

mini_casino();

break;

case 4:

show_details();

break;

case 5:

complaints_suggestions();

printf("Thank you for your valuable suggestions!\n");

begin();

break;

case 6:

printf("Visit again!");

8
printf("Thank you for trusting our service.\n");

break;

case 7:

printf("GHUMTEE RIVERA RESORT:\n");

printf(" A beautiful cosmopolitan destination for a picturesque natural scenario,


a blend of Natural and Artificial effort located on the border of");

printf("Chitwan National park (A UNESCO World Heritage Site) allows you to


enjoy the breeze of Rapti River flowing through the lap of Chitwan National
Park.");

printf("Enjoying the spectacular sunset and its reflection on Rapti River along
with grazing of deer on the bank by relaxing on our rugged cottages");

printf("is the memorable experience you could enjoy only at GHUMTEE RIVERA
RESORT. \n");

printf("We would be more than happy to experience you Jungle Safari, canoe ride to
Crocodile Breeding Farm and Ox-Cart ride.");

printf("Clean and Comfortable room, Hot and Cold Water facilities, beautiful
garden, family environment, local food are our salient features to give you taste of
our Nepalese Culture.");

printf("Satisfying you totally with our unique culture is our primary motto.\n");

begin();

break;

void book_room(void){

system("cls");

if(person.roomno == 0){

int type_of_rooms;

char ch,c;

9
printf("\nWhat type of room do u want to book?\n");

printf("\n1.Basic Room Rs 1000\n2.Medium room Rs 2000\n3.DELUXE ROOM Rs


3000\n4.I don't want to choose anything\n");

scanf("%d",&type_of_rooms);

fflush(stdin);

if(type_of_rooms==1){

printf("\nDo you accept this room?(y/n)\n");

fflush(stdin);

scanf("%c",&c);

if (c=='y'){

system("cls");

printf("\nYou choose basic room. Enjoy your stay\

n"); printf("your room no is 617"); person.roomno

= 617;

person.roomtype = "basic";

person.billprice += 1000;

begin();

else

begin();

if(type_of_rooms==2){

printf("\nDo you accept this room?(y/n)\n");

scanf("%c",&c);

if(c=='y'){

10
system("cls");

printf("\nYou choose medium room. Enjoy your stay\n");

printf("your room no is 212"); person.billprice

+= 2000;

person.roomno = 212;

person.roomtype = "medium";

begin();}

else

begin();

if(type_of_rooms==3){

printf("\nDo u accept this room?(y/n)\n");

scanf("%c",&c);

if(c=='y'){

system("cls");

printf("\nYou choose deluxe room. Enjoy your stay\n");

printf("your room no is 620"); person.billprice += 3000;

person.roomtype = "deluxe";

person.roomno = 620; begin();

else

begin();

11
if(type_of_rooms==4)

begin();

else

printf("you have already booked a room");

void program(void){

system("cls");

int p;

printf("\nWhich program do you want to choose?\n");

printf("\n 1.Jungle Walk \n 2.Jungle Jeep Drive\n 3.Canoe ride \n 4.


Cultural show ");

scanf("%d",&p);

switch(p){

case 1:

system("cls");

printf("\nYou choose jungle walk\n");

person.program = "Jungle walk"; person.billprice +=

1000;

begin();

break;

case 2:

printf("\nYou choose jungle jeep drive\n");

person.program = "Jeep Drive"; person.billprice

+= 2000;

12
begin();

break;

case 3:

printf("\nYou choose canoe ride\n");

person.billprice+= 800; person.program =

"Canoe Ride"; begin();

break;

case 4:

printf("\nYou choose cultural show\n");

person.billprice+= 1000; person.program =

"Cultural show"; begin();

break;

default:

begin();

void show_details(void){

system("cls");

time_t timer = time(NULL);

printf("you can get your details in hotel.txt file\n");

FILE *ifp;

ifp = fopen("hotel.txt","w+");

if(ifp == NULL){

13
printf("file cant be opened\n");

else{ fprintf(ifp,"........DETAILS \

n");

fprintf(ifp,"Name : %s\n",person.name);

fprintf(ifp,"Nationality : %s\n",person.nationality);

fprintf(ifp,"Email id : %s\n",person.email_id);

fprintf(ifp,"Address : %s\n",person.address);

fprintf(ifp,"Arrival time: %s\n",ctime(&timer));

fprintf(ifp,"Roomno : %d\n",person.roomno);

fprintf(ifp,"Roomtype :

%s\n",person.roomtype);

if(strcmp(person.program,"notchosen") != 0){

fprintf(ifp,"Program : %s\n",person.program); }

fprintf(ifp,"your bill price is %d\n",person.billprice);

fprintf(ifp,"press p to print your details"); fflush(ifp);

fclose(ifp);

begin();

void complaints_suggestions(void){

system("cls");

char complain[500];

FILE *fpt;

14
if(fpt == NULL){

printf("file cant be opened\n");

printf("please enter your complaints or suggestions");

fflush(stdin);

gets(complain);

fpt = fopen("complain.txt","w+");

fputs(complain,fpt);

fclose(fpt);

void GuessGame(int amount_bet, int* inhand_cash)

char num[3] = { 'N', 'R', 'N' };

printf("\nWait !! number is shuffling its position...\n");

srand((time(NULL)));

int i, x, y, temp;

for (i = 0; i < 5; i++) { x

= rand() % 3;

y = rand() % 3;

temp = num[x];

num[x] = num[y];

num[y] = temp;

int PlayerGuess;

printf("\nYou may now guess the number in which R is present: ");

15
scanf("%d", &PlayerGuess);

if (num[PlayerGuess - 1] == 'R') {

(*inhand_cash) += 2 * amount_bet;

printf("You win ! The numbers are as follows: "); printf("\"%c %c

%c\" ", num[0], num[1], num[2]); printf("\nYour inhand_cash is

now = %d \n", *inhand_cash);

else {

(*inhand_cash) -= amount_bet;

printf("You Loose ! The numbers are as follows: ");

printf("\"%c %c %c\" ", num[0], num[1], num[2]);

printf("\nYour inhand_cash is now = %d \n",

*inhand_cash); }

void mini_casino()

int amount_bet, inhand_cash;

printf("\n////////-WELCOME TO MINI CASINO-\\\\\\\\\\\\ \n");

printf("\n----Enter the inhand_cash you have right now-----------\n ");

scanf("%d", &inhand_cash);

while (inhand_cash > 0) {

printf("\nEnter the amount_bet you want to play for :

\n"); scanf("%d", &amount_bet);

if (inhand_cash == 0 || amount_bet > inhand_cash) break;

16
else

GuessGame(amount_bet, &inhand_cash);

if (inhand_cash == 0 || amount_bet > inhand_cash)

{ printf("\n\""

" \nSorry you don't have enough cash to play more,\n ");

printf("\nDo come next time\""

"\n\n");

printf("\nThank You for playing \n");}

17
RESULTS AND SCREENSHOTS

OUTPUTS

18
CONCLUSION
Successfully developed a C program using files, structures, strings on
“Hotel Management system” and submitted to respective faculty.

19

You might also like