0% found this document useful (0 votes)
12 views24 pages

Hotel Management System Project Report

This document is a project report for a Hotel Management System developed by four students under the guidance of Dr. P Praveen. It includes an index, problem statement, module-wise description, knowledge required, and source code for the project in C language. The project aims to develop an application to store customer, faculty, student, sports, transport, and other details and provide various functionalities like reading, sorting, searching, and printing these details.

Uploaded by

Deepakraj kusam
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
12 views24 pages

Hotel Management System Project Report

This document is a project report for a Hotel Management System developed by four students under the guidance of Dr. P Praveen. It includes an index, problem statement, module-wise description, knowledge required, and source code for the project in C language. The project aims to develop an application to store customer, faculty, student, sports, transport, and other details and provide various functionalities like reading, sorting, searching, and printing these details.

Uploaded by

Deepakraj kusam
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd

PSP [20ES104] COURSE PROJECT REPORT

On

“HOTEL MANAGEMENT SYSTEM”

Developed By:

[Link] STUDENT NAME

2203A51172 D. Vishwa vardhini


2203A51179 K. Deepakraj
2205A41141 M. Varsha
2203A51167 B. Aditya

Under the Guidance of

Dr P PRAVEEN
Associate Professor

Submitted to

Department Computer Science and Artificial

Intelligence SR University

Ananthasagar(V), Hasanparthy(M), Hanamkonda(Dist.) – 506371

[Link]

June 2023
Department of Computer Science and Artificial Intelligence

CERTIFICATE

This is to certify that the PSP course project report entitled “ Hotel Management
System” is a record of bonafide work carried out by the student(s) Vishwa Vardhini,
Deepakraj, Varsha & Aditya bearing roll number(s) 2203A51172, 2203A51179,
2205A41141 & 2203A51167 of Computer Science Engineering and Electronics
Communication Engineering departments during the academic year 2022-23.

Supervisor

(Dr P Praveen)
INDEX

Sl. No Title Page No.

1. Problem statement 1
2. Module-wise description 2
3. Knowledge required to develop the project 4
4. Source code (.c file code followed by .h file code) 5
5. Results 35
2205A41149 P. Akshitha
2205A41155 Y. Shashank
2205A41253 B. Revanth kumar
2205A41255 Sidra Samreen
PROBLEM STATEMENT:
Develop a C Application to store details of the Customer,
F, Transport, Residential, Admissions, Sports data…… in
terms of (Name , E-mail , [Link] ,, fees, Salaray, All
details……..).
Provide the functionality for below mentioned:
1. Read Customer details .
2. Arranging them in the branch wise order.
3. Giving everyone a unique login id.
4. Similarly reading ‘n’ Faculty details.
5. Details of all the Faculty.
6. Sort ‘n’ students details according to their respective
branches:
 CSE
 ECE
 EEE
 CIVIL
 MECHANICAL
7. Print the ‘n’ students details according to :
 [Link]
 Name
 Course
 [Link]
 Email id
 Year and Semester
 Attendence
 Grade
 Fee details
 Accomodation
8. Print ‘n’ Faculty details according to :
 ID
 Name
 Subject
 [Link]
 Email id
 Experience
 Salary
 Rating
 Attendence
 Accomodation
9. print all the sports available in the college according to:

 Sport
 Coach
 [Link] Courts
 Area

10. Print the Transport facility to all the available places


accordingly:
 Bus numbers
 Type of Passengers
 Route

[Link] the Hostel details according to:

 [Link] rooms
 [Link] floors
 [Link] hostels
 [Link] Wardens
 [Link] Students
 [Link] Restrooms

12. Print The employees data accoding to:


 Duty
 Gender
 Salary
 Accomodation

13. Print College details according to:


 Area
 [Link] blocks
 [Link] labs
 [Link] class rooms
 [Link] students
 [Link] Faculty
 [Link] workers
 [Link] Grounds
 [Link] Libraries
 [Link] Canteens

[Link] the details and read the details dynamically


from the keyboard while admissions of students
according to:
 Name
 Course
 [Link]
 SSC marks
 Intermediate Score
 Eamcet Rank
 Accomodation
 Certificates
 Fee details
MODULES:

In this application all variables and structure are declared


globally so that these variables and structure members
can be accessed throughout the program at any function
call. We can choose any function by using function calls
which are declared in switch-case. In order to repeat the
loop control statement (do-while) is used with condition.
The memory allocation will be done in this program
dynamically. The application asks the person who runs the
program that how many passengers data he/she want to
store.

In this application four modules are used.

1. Read/Input
 Implement a text-based menu-driven interface for
interacting with the system.
 Use input/output functions (e.g., printf, scanf) to display
and collect user information.
2. Sorting

In this module sorting of data is done according to the


chosen wise.
In this module there is a sub menu which asks to select
the sorting wise by using switch case. The sorting sub
menu will be like press 1 to sort by name wise press 2
to sort by age wise press 3 to sort aadhar number wise
press 4 to sort by berth wise 5 to sort by date of travel
wise press 6 to sort by train wise press 6 to sort train
name wise press 7 to sort by boarding station wise
press 8 to sort departing station wise.

In this module we used another control statement (do


while) so that the application asks whether to continue
sorting.

3. File Handling:

 Store data in files to enable data persistence.

 Use file handling functions (e.g., fopen, fwrite, fread) to


read and write data to files.
search by boarding station wise press 8 to search
departing station wise.

In this module we used another control statement (do


while) so that the application asks whether to continue
searching.

4. Print
In this module all the stored details of n customers will
be displayed on to the screen. In this module printf
function and for loop are used.
KNOWLEDGE REQUIRED TO DEVELOP THIS APPLICATION
 Control Statements (if, if-else, switch)

 Loop Statements (while/do while, for)

 Arrays (1D/2D-arrays)

 Functions (Any type of user defined functions)

 Structure (structures and nested structures)

 Pointers ( pointers to structures)

 Files (To store the Customer details )


SOURCE CODE [.C FILE]:

#include<stdio.h>
#include<conio.h>
#include<string.h>
#include<time.h>
#include<stdlib.h>
void begin();
void show_details();
void book_room();
void food_menu();
struct
{
char name[20];
char address[50];
char email_id[30];
char nationality[25];
int ap,app,appp;
int roomno;int food;
char *roomtype;
int billprice,Total;
char *program;
}person;
int main()
{

[Link] =0;
[Link] =0;
[Link] =0;
[Link] = "notchosen";
printf(" ***********************");
printf("\n ||WELCOME TO SRU C2 HOTEL||\n");
printf(" ***********************\n");
printf(" \n\n");
printf("====* Enter Customer Details *====\n\n");
printf("please enter person name:");
gets([Link]);
printf("enter person address:");
gets([Link]);
printf("enter person nationality:");
gets([Link]);
printf("enter person email_id:");
gets(person.email_id);
printf("\n\n\t\t** Thank's Giving Your Details **\n\n\n ");
begin();
return 0;
}
void begin(void)
{
int decide;
printf("=> MAIN MENU\n");
printf(" =========\n");
printf("[Link] MENU CARD\n");
printf("[Link] A ROOM\[Link] MY DETAILS\[Link] US\
[Link] US\[Link]\n\n");
printf("Enter your choise = ");
scanf("%d",&decide);
switch(decide)
{
case 1:
food_menu();
case 2:
book_room();
break;
case 3:
show_details();
break;
case 4:
printf("\t\t\t\t**NONE OF THIS\n\n");
case 5:
printf("YOU CAN CONTACT US ON \n\t\t\tE-Mail
sruc2hotel@[Link]\n\n\t\t\tCONTACT NO 9553254605\n\n");
printf("\t\t\tWHATSAPP NO 9347515101\n");
case 6:
printf("\n\n\n\t\tVisit again!");
printf("\n\n\t***Thank you for trusting our service.***\n");
break;
default:
printf("Invalid choice. Please try again.\n");
break;
begin();
system("cls");
break;
}
}
void food_menu(void)
{
system("cls");
if([Link] == 0)
{
int ch,qty,i,net=0;
joes:
printf(" =======================");
printf("\n |WELCOME TO SRU C2 HOTEL|\n");
printf(" =======================\n");
printf("\n\t=>MENU CARD");
printf(" \n");
printf("\n\tBREAK FAST");
printf("\n\t\[Link] Rs:40");
printf("\n\t\[Link] Rs:55");
printf("\n\t\[Link] Rs:40");
printf("\n\t\[Link] Rs:45");
printf("\n\t\[Link] Rs:40");

printf("\n\tTEA & COFFEE");


printf("\n\t\[Link] Rs:10");
printf("\n\t\[Link] Rs:20");

printf("\n\tSOUPS");
printf("\n\t\[Link] soup Rs:110");
printf("\n\t\[Link] soup Rs:115");
printf("\n\t\[Link] soup Rs:160");

printf("\n\tSTARTER'S");
printf("\n\t\[Link] Manchurian Rs:110");
printf("\n\t\[Link] Chilly Rs:125");
printf("\n\t\[Link] Lollypop Rs:180");
printf("\n\t\[Link] Chrispy Rs:185");

printf("\n\tMAIN COURSE");
printf("\n\t\[Link] Rice Rs:120");
printf("\n\t\[Link] Fried Rice Rs:140");
printf("\n\t\[Link] Biryani Rs:270");
printf("\n\t\[Link] Biryani Rs:330");
printf("\n\t\[Link] Fry Rs:210");

printf("\n\tSHAKE'S & COLD DRINK'S");


printf("\n\t\[Link] Rs:25");
printf("\n\t\[Link] up Rs:25");
printf("\n\t\[Link] SHAKE Rs:70");

printf("\n\n choice your item's : ");


scanf("%d",&ch);
switch(ch)
{
case 1:
printf("\nYou have selected == IDLY");
printf("\nEnter The Qty : ");
scanf("%d",&qty);
net=net+(qty*40);
break;
case 2:
printf("\nYou have selected == DOSA");
printf("\nEnter The Qty : ");
scanf("%d",&qty);
net=net+(qty*55);
break;
case 3:
printf("\nYou have selected == VADA");
printf("\nEnter The Qty : ");
scanf("%d",&qty);
net=net+(qty*40);
break;
case 4:
printf("\nYou have selected == PURI");
printf("\nEnter The Qty : ");
scanf("%d",&qty);
net=net+(qty*45);
break;
case 5:
printf("\nYou have selected == CHAPPATHY");
printf("\nEnter The Qty : ");
scanf("%d",&qty);
net=net+(qty*40);
break;
case 6:
printf("\nYou have selected == TEA");
printf("\nEnter The Qty : ");
scanf("%d",&qty);
net=net+(qty*10);
break;
case 7:
printf("\nYou have selected == COFFEE");
printf("\nEnter The Qty : ");
scanf("%d",&qty);
net=net+(qty*20);
break;
case 8:
printf("\nYou have selected == TOMATO SOUP");
printf("\nEnter The Qty : ");
scanf("%d",&qty);
net=net+(qty*110);
break;
case 9:
printf("\nYou have selected == SWEETCORN SOUP");
printf("\nEnter The Qty : ");
scanf("%d",&qty);
net=net+(qty*115);
break;
case 10:
printf("\nYou have selected == CHICKEN SOUP");
printf("\nEnter The Qty : ");
scanf("%d",&qty);
net=net+(qty*160);
break;
case 11:
printf("\nYou have selected == VEG MANCGURIAN");
printf("\nEnter The Qty : ");
scanf("%d",&qty);
net=net+(qty*110);
break;
case 12:
printf("\nYou have selected == PANEER CHILLY");
printf("\nEnter The Qty : ");
scanf("%d",&qty);
net=net+(qty*125);
break;
case 13:
printf("\nYou have selected == CHICKEN LOLLYPOP");
printf("\nEnter The Qty : ");
scanf("%d",&qty);
net=net+(qty*180);
break;
case 14:
printf("\nYou have selected == CHICKEN CHRISPY");
printf("\nEnter The Qty : ");
scanf("%d",&qty);
net=net+(qty*185);
break;

case 15:
printf("\nYou have selected == VEG RICE");
printf("\nEnter The Qty : ");
scanf("%d",&qty);
net=net+(qty*120);
break;
case 16:
printf("\nYou have selected == EGG FRIED RICE");
printf("\nEnter The Qty : ");
scanf("%d",&qty);
net=net+(qty*140);
break;
case 17:
printf("\nYou have selected == CHICKEN BIRYANI");
printf("\nEnter The Qty : ");
scanf("%d",&qty);
net=net+(qty*270);
break;
case 18:
printf("\nYou have selected == MUTTON BIRYANI");
printf("\nEnter The Qty : ");
scanf("%d",&qty);
net=net+(qty*330);
break;
case 19:
printf("\nYou have selected == FISH FRY");
printf("\nEnter The Qty : ");
scanf("%d",&qty);
net=net+(qty*210);
break;
case 20:
printf("\nYou have selected == SPRITE");
printf("\nEnter The Qty : ");
scanf("%d",&qty);
net=net+(qty*25);
break;
case 21:
printf("\nYou have selected == THUMS UP");
printf("\nEnter The Qty : ");
scanf("%d",&qty);
net=net+(qty*25);
break;

case 22:
printf("\nYou have selected == MILK SHAKE");
printf("\nEnter The Qty : ");
scanf("%d",&qty);
net=net+(qty*70);
break;
default:
printf("\nInvalid Item Selection");
break;
}
printf("\nDo You want to continue press 1: ");
scanf("%d",&i);
if(i==1)
{
goto joes;
}
[Link] = net;
printf("\nTotal amount : %d",net);
system("cls");
printf("\tNOTE\n\t * SUCESSFULLY YOUR FOOD DETAILS ARE SAVED\
n\n");
}
}
void book_room(void)
{
if([Link] == 0)
{
int type_of_rooms;
char ch,c;int days;
printf(" =======================");
printf("\n |WELCOME TO SRU C2 HOTEL|\n");
printf(" =======================\n\n");
printf("\nWhat type of room do you want to book?\n");
printf("\[Link] Room(NON A/C) Rs 1000\[Link] room(A/C)
Rs 2000\[Link] ROOM(A/C) Rs 3000\[Link]\n");
scanf("%d",&type_of_rooms);
fflush(stdin);
if(type_of_rooms==1)
{
printf("\nDo you accept this room?(Press 's' for accept/Press 'n' to exit)\n");
fflush(stdin);
scanf("%c",&c);
if (c=='s')
{

printf("\n =>You choose basic room(NON A/C).\n\n");


printf(" How Many Day's They Want To Stay = ");
scanf("%d",&days);
printf(" your room no is 121\n\n");printf("\n\t\t**** Enjoy your stay
****\n\n");
[Link] = 121;
[Link] = "basic";
[Link] +=days*1000;
begin();
}
else
begin();
}
if(type_of_rooms==2)
{

printf("\nDo you accept this room?(Press 's' for accept/Press 's' to exit)\
n");
scanf("%c",&c);
if(c=='s')
{
printf("\n =>You choose medium room(A/C).\n\n");
printf(" How Many Day's They Want To Stay = ");
scanf("%d",&days);
printf(" your room no is 212\n\n");printf("\n\t\t**** Enjoy your stay
****\n\n\n");
[Link] +=days*2000;
[Link] = 212;
[Link] = "medium";
begin();
}
else
begin();
}
if(type_of_rooms==3)
{
printf("\nDo u accept this room?(Press 's' for accept/Press 'n' to exit)\n");
scanf("%c",&c);
if(c=='s')
{
printf("\n =>You choose deluxe room(A/C).\n\n");
printf(" How Many Day's They Want To Stay = ");
scanf("%d",&days);
printf("\n your room no is 312\n\n");printf("\n\t\t**** Enjoy your stay
****\n\n");

[Link] +=days*3000;
[Link] = "deluxe";
[Link] = 312;
begin();
}
else
begin();
}
if(type_of_rooms==4)
begin();
}
else
printf("you have already booked a room\n\n\n");
}
void show_details(void)
{
system("cls");
time_t timer = time(NULL);

printf("\t NOTE\n\t *YOU CAN GET BILL DETAILS IN ([Link])FILE\


n\n");
FILE *ifp;
ifp = fopen("[Link]","w+");
if(ifp == NULL)
{
printf("file cant be opened\n");
}
else
{
fprintf(ifp,"\t\t\t===============\n\t\t\t|SRU C2 HOTEL|\n\t\t\
t===============\n.....BILL DETAILS.....\n...PERSON DETAILS...\n");
fprintf(ifp,"\tName : %s\n",[Link]);
fprintf(ifp,"\tNationality : %s\n",[Link]);
fprintf(ifp,"\tEmail id : %s\n",person.email_id);
fprintf(ifp,"\tAddress : %s\n",[Link]);
fprintf(ifp,"\tArrival time : %s\n",ctime(&timer));
fprintf(ifp,"\t\tTOTAL BILL\n\n");
fprintf(ifp,"\tFood Cost : %d/-\n",[Link]);
fprintf(ifp,"\tRoom No : %d\n",[Link]);
fprintf(ifp,"\tRoom Type : %s\n",[Link]);
fprintf(ifp,"\tRoom Rent : %d/-\n",[Link]);

if(strcmp([Link],"notchosen") != 0)
{

fprintf(ifp,"Program : %s\n",[Link]);
}
[Link]=[Link]+[Link];
fprintf(ifp,"\n\n**press Ctrl+p to print your details(Bill)");
fflush(ifp);
fclose(ifp);
begin();
}
}
SOURCE CODE [HEADER FILE]:
RESULTS:

Common questions

Powered by AI

Challenges in scaling the system may include increased memory requirements, processing time, and data management complexity. Addressing these could involve optimizing algorithm efficiency, employing more sophisticated data structures (e.g., linked lists, databases), and adopting multithreading to improve application responsiveness. Using advanced languages or frameworks to handle larger datasets and more complex operations might also be necessary .

The decision-making process in sorting data involves using control structures like switch-case combined with loops to allow users to select sorting criteria dynamically. This flexibility enhances the system's functionality by enabling tailored data views, such as sorting by branch, name, or other attributes, which makes it easier to organize and retrieve data efficiently for different operational needs .

Providing a unique login ID for each customer and faculty is significant as it enhances data security and management by clearly distinguishing between individuals in the system. This feature ensures that information linked to a specific user is easy to access and manage, reducing the risk of data mix-ups and improving the integrity and traceability of data within the system .

File handling plays a critical role in the Hotel Management System by enabling data persistence across sessions. By using file handling functions such as fopen, fwrite, and fread, the system can read and write data to files, ensuring that customer and faculty details are stored securely and can be retrieved when needed, even after the application is closed .

The system's capability in handling diverse data categories such as academics, transport, and accommodation is supported by using global declarations of variables and structures, enabling access throughout the program functions. Structural programming techniques like the use of switch-cases, loops, arrays, structures, and pointers allow efficient data management across different types of information, facilitating comprehensive and modular data handling .

The Hotel Management System utilizes dynamic memory allocation to store data for an arbitrary number of passengers and details, allowing the program to efficiently manage memory based on user input. This approach is beneficial as it enables the system to handle varying amounts of data without wasting memory resources, optimizing performance by allocating memory as needed during runtime .

The system ensures data integrity during dynamic updates or manipulations by using structured input/output operations within controlled environments such as function calls and do-while loops. These measures reduce the risk of errors and maintain consistent data states by validating input and ensuring that data manipulations occur atomically and logically .

The primary problem the 'Hotel Management System' aims to solve is storing and managing the details of customers and faculty members, including information about transport, residential admissions, sports data, etc. It provides functionalities such as reading customer and faculty details, arranging them branch-wise, giving unique login IDs, sorting student details by various criteria (e.g., Hallticket.no, course, grade), and printing various details like sports facilities, hostel details, and transport facilities .

Developing the Hotel Management System required knowledge of several programming constructs and technologies, including control statements (if, if-else, switch), loop statements (while/do-while, for), arrays (1D/2D-arrays), functions, structures and nested structures, pointers to structures, and file handling for data storage and retrieval .

The application's menu-driven interface improves user interaction by providing a straightforward text-based interface that guides users through various options using switch-case statements. It uses input/output functions like printf and scanf to facilitate user interaction, allowing users to input their choices easily and view responses dynamically. This design makes the application more user-friendly and accessible .

You might also like