Professional Documents
Culture Documents
Hotel Management Project
Hotel Management Project
(Deemed to be University)
On
SUBMITTED BY:
2200030381 A. UJWALA
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
I express the sincere gratitude to our principal Dr. A. Jagadeesh for his
administration towards our academic growth.
Regd.No: Name:
1 Introduction 1
4 Algorithm 4
5 Flowchart 5
6 Implementation 6
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
1. Availability of rooms.
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
DISPLAY
RESERVATION
Accept Room
Check-In And
Check-Out Date
DATES
IS ROOM
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";
gets(person.name);
gets(person.address);
gets(person.nationality);
gets(person.email_id);
system("cls");
begin();
return 0;
void begin(void){
int decide;
printf("\n-----------------------HOME PAGE--------------------------\n");
7
printf("\n HOW CAN WE HELP YOU?\n\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();
begin();
break;
case 6:
printf("Visit again!");
8
printf("Thank you for trusting our service.\n");
break;
case 7:
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");
scanf("%d",&type_of_rooms);
fflush(stdin);
if(type_of_rooms==1){
fflush(stdin);
scanf("%c",&c);
if (c=='y'){
system("cls");
= 617;
person.roomtype = "basic";
person.billprice += 1000;
begin();
else
begin();
if(type_of_rooms==2){
scanf("%c",&c);
if(c=='y'){
10
system("cls");
+= 2000;
person.roomno = 212;
person.roomtype = "medium";
begin();}
else
begin();
if(type_of_rooms==3){
scanf("%c",&c);
if(c=='y'){
system("cls");
person.roomtype = "deluxe";
else
begin();
11
if(type_of_rooms==4)
begin();
else
void program(void){
system("cls");
int p;
scanf("%d",&p);
switch(p){
case 1:
system("cls");
1000;
begin();
break;
case 2:
+= 2000;
12
begin();
break;
case 3:
break;
case 4:
break;
default:
begin();
void show_details(void){
system("cls");
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,"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); }
fclose(ifp);
begin();
void complaints_suggestions(void){
system("cls");
char complain[500];
FILE *fpt;
14
if(fpt == NULL){
fflush(stdin);
gets(complain);
fpt = fopen("complain.txt","w+");
fputs(complain,fpt);
fclose(fpt);
srand((time(NULL)));
int i, x, y, temp;
= rand() % 3;
y = rand() % 3;
temp = num[x];
num[x] = num[y];
num[y] = temp;
int PlayerGuess;
15
scanf("%d", &PlayerGuess);
if (num[PlayerGuess - 1] == 'R') {
(*inhand_cash) += 2 * amount_bet;
else {
(*inhand_cash) -= amount_bet;
*inhand_cash); }
void mini_casino()
scanf("%d", &inhand_cash);
16
else
GuessGame(amount_bet, &inhand_cash);
{ printf("\n\""
" \nSorry you don't have enough cash to play more,\n ");
"\n\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