Computer science project
Computer science project
PROJECT REPORT
Submitted by:
1
THE GREENHILLS PUBLIC SCHOOL
MOOLANKAVE, SULTHAN BATHERY
WAYANAD, KERALA-673592
CERTIFICATE
………………………. .…………………..
Agilna KC Dr. C. J. Chacko
(Teacher In-Charge) (Principal)
………………………..
(Practical Examiner) (School Stamp)
2
ACKNOWLEDGEMENT
Foremost, I would like to thank Almighty for being able to complete the project
successfully.
I wish to thank CBSE from the bottom of my heart for giving me such a wonderful
opportunity to develop a project and learn more about this fascinating subject.
I want to express my gratitude to our Principal, Dr. C. J. Chacko, for providing me the
inspiration and support to complete the project.
I would like to thank Mrs. Agilna K C, my Computer Science Teacher, who guided me
through every step of the project’s preparation.
Finally, I express my gratitude to everyone who has helped me along the way, including my
parents, and friends, whose support has made this effort possible.
…………………..
…………………..
3
INDEX
1 INTRODUCTION TO THE PROJECT 5
2 SYSTEM REQUIREMENTS 6
3 BACKEND DETAILS 7
4 FRONTEND DETAILS 8
5 EXECUTED RESULT OF THE PROGRAM 14
6 LIMITATIONS 19
7 BIBILOGRAPHY 21
4
INTRODUCTION TO THE PROJECT
The hotel management software deals with the management of hotel operations such as room
bookings, customer details, billing, and other services provided by the hotel. The software
includes functionalities for booking records, calculating room rent, restaurant bills, gaming
bills, fashion store bills, laundry bills, and fitness care bills. It allows the hotel to manage
customer details, check-in and check-out records, and generate the total bill amount for
customers.
5
SYSTEM REQUIREMENTS
HARDWARE REQUIREMENTS
1 Printer- to print the required documents of the project.
2 Processor: Intel Core i3 or above
3 RAM: 256 MB(minimum)
4 Hard-Disk : 20 GB(minimum)
SOFTWARE REQUIREMENTS
1 Windows 7 or higher Operating System
2 My-SQL server 5.5 or higher (as backend)
3 Python idle 3.6 or higher or spyder (as frontend).
4 Microsoft Word 2010 or higher for documentation.
BACKEND DETAILS
Database Name: URBAN UTOPIA
CREATE DATABASE URBAN_UTOPIA;
6
USE URBAN_UTOPIA;
FRONTEND DETAILS
PROGRAM CODE
8
import mysql.connector as sq from
datetime import date
laundrybill = 0
gamingbill = 0
fashionbill = 0
totalAmount = 0
fitnessbill = 0 cid
= ""
# creating Database
cursor.execute("create database if not exists URBAN_UTOPIA") cursor.execute("use
URBAN_UTOPIA")
9
print("--------------------------------------------------------")
def bookingRecord():
createTable = "CREATE TABLE IF NOT EXISTS BOOKING_RECORD(CID
VARCHAR(20),CHECK_IN DATE ,CHECK_OUT DATE)"
cursor.execute(createTable)
print("--------------------------------------------------------")
cid = int(input("enter the customer id :"))
checkin = input("\n Enter Customer Check_IN Date [ YYYY-MM-DD ] : ")
checkout = input("\n Enter Customer Check_OUT Date [ YYYY-MM-DD ] : ")
sql = "INSERT INTO BOOKING_RECORD VALUES(%s,%s,%s)" values =
(cid, checkin, checkout) cursor.execute(sql, values)
print("\nCHECK-IN AND CHECK-OUT ENTRY MADED SUCCESSFULLY
!") print("--------------------------------------------------------") cn.commit()
10
print("\n ##### We have The Following Rooms For You #####")
print("--------------------------------------------------------")
print("1. Studio --> Rs15000") print("2.
Double--> Rs25000") print("3. King --
> Rs25000") print("4. Triple -->
Rs3000")
print("5. Queen --> Rs4500")
print("6. Quad --> Rs4000")
print("7. Mini Suite--> Rs10000")
print("8. Master Suite--> Rs35000")
if room_choice == 1: roomrent =
no_of_days * 15000 print("\n STUDIO
ROOM Rent : ", roomrent) elif room_choice
== 2:
roomrent = no_of_days * 25000
print("\n DOUBLE Room Rent : ", roomrent)
elif room_choice == 3: roomrent =
no_of_days * 25000 print("\n KING Room
Rent : ", roomrent) elif room_choice == 4:
roomrent = no_of_days * 3000 print("\n
TRIPLE Room Rent : ", roomrent) elif
room_choice == 5: roomrent = no_of_days
* 4500 print("\n QUEEN Room Rent : ",
roomrent) elif room_choice == 6:
roomrent = no_of_days * 4000 print("\n
QUAD Room Rent : ", roomrent) elif
room_choice == 7:
roomrent = no_of_days * 15000 print("\n
MINI SUITE Room Rent : ", roomrent) elif
11
room_choice == 8: roomrent = no_of_days * 30000
print("\n MASTER SUITE Room Rent : ", roomrent)
else:
print("Sorry, Maybe You Are Giving Me Wrong Input, Please Try Again !!! ")
def Restaurent():
cid = int(input("enter the cid
:")) global restaurentbill
quantity = 1
createTable = "CREATE TABLE IF NOT EXISTS RESTAURENT(CID
VARCHAR(20),CUISINE INT(30),QUANTITY INT(30),BILL INT(30))"
cursor.execute(createTable)
print("-------------------------------------------")
print("---WELCOME TO RESTAURANT--")
print("1. Vegetarian Combo -----> 3000 Rs.")
print("2. Non-Vegetarian Combo -----> 5000 Rs.")
choice_dish = int(input("Enter Your Cuisine : "))
if choice_dish == 1:
print("\nSO YOU HAVE ORDER: Vegetarian Combo
") restaurentbill = quantity * 3000 elif choice_dish ==
2:
print("\nSO YOU HAVE ORDER: Non-Vegetarian Combo
") restaurentbill = quantity * 5000 else:
print("Sorry, Maybe You Are Giving Me Wrong Input, Please Try Again !!! ")
12
values = (cid, choice_dish, quantity, restaurentbill)
cursor.execute(sql, values)
print("Your Total Bill Amount Is : Rs. ", restaurentbill)
print("\n\n**** WE HOPE YOU WILL ENJOY YOUR MEAL ***\n\n")
print("--------------------------------------------------------")
cn.commit()
def GAMES():
cid = int(input("enter the cid :"))
global gamingbill
if game == 1:
print("YOU HAVE SELECTED TO PLAY : Table Tennis")
gamingbill = hour * 150 elif game == 2:
print("YOU HAVE SELECTED TO PLAY : Bowling")
gamingbill = hour * 100 elif game == 3:
print("YOU HAVE SELECTED TO PLAY : Snooker")
gamingbill = hour * 250 elif game == 4:
13
print("YOU HAVE SELECTED TO PLAY : VR World Gaming")
gamingbill = hour * 400 elif game == 5:
print("YOU HAVE SELECTED TO PLAY : Video Games")
gamingbill = hour * 300 elif game == 6:
print("YOU HAVE SELECTED TO PLAY : Swimming Pool Games")
gamingbill = hour * 350 else:
print("Sorry, Maybe You Are Giving Me Wrong Input, Please Try Again !!! ")
def Fashion():
cid = int(input("enter the cid :"))
global fashionbill
14
print("7. Western dress -----> 3000 Rs.")
print("8. Skirts -----> 400 Rs.")
print("9. Trousers -----> 200 Rs.")
15
values = (cid, dress, quantity, fashionbill)
cursor.execute(sql, values)
print("\n\n#################################################")
print("\nYOU SELECT ITEM NO : ", dress, "\nYOUR QUANTITY IS : ", quantity, "
ITEMS", "\nTHANKYOU FOR SHOPPING VISIT AGAIN!!!")
print("\nYour Total Bill Is : ", fashionbill)
print("\n\n#################################################")
print("--------------------------------------------------------")
cn.commit()
print("-------------------------------------------
") print("---LAUNDRY MENU---")
print("1.Shorts-->Rs15") print("2.
Trousers-->Rs30") print("3.Shirt-->Rs20")
print("4.Jeans-->Rs30")
print("5.LadiesSuit-->Rs45")
16
print("\n SHIRTS") laundrybill = quantity * 150 elif
dress == 4: print("\nJeans") laundrybill =
quantity * 150 elif dress == 5:
print("\n LADIES SUIT")
laundrybill = quantity * 150 else:
print("Sorry, Maybe You Are Giving Me Wrong Input, Please Try Again !!! ")
print("\n\n#################################################")
print("\nYOU SELECT ITEM NO : ", c, "\nYOUR QUANTITY IS : ", d, " ITEMS",
"\nTHANKYOU!!!")
print("\nYour Total LAUNDRY Bill Is : ", laundrybill)
print("\n\n#################################################") print("------
----------------------")
cn.commit()
17
")) hour = int(input("Enter No Of Hours You
Want: "))
print("\n\n#################################################")
if choice == 1:
print("YOU HAVE SELECTED FOR :GYM")
print("---WELCOME TO ELITEFORM ATHLETICS---")
fitnesscarebill = hour * 150 elif choice == 2:
print("YOU HAVE SELECTED FOR: SPA")
print("---WELCOME TO SKIN SANCTUARY SPA---")
fitnesscarebill = hour * 100 elif choice == 3:
print("YOU HAVE SELECTED FOR : SWIMMING POOL") print("---
WELCOME TO AQUA HAVEN--")
fitnesscarebill = hour * 250
else:
print("Sorry, Maybe You Are Giving Me Wrong Input, Please Try Again !!! ")
def checkout():
cid = int(input("enter the cid :"))
global roomrent
global restaurentbill
global gamingbill
18
global fashionbill
global laundrybill
global fitnesscarebill
print("----------------------------------------------")
print("\n ****URBAN_UTOPIA**** CUSTOMER BILLING ****")
print("\n CUSTOMER NAME : ", name)
print("\nROOM RENT : Rs. ", roomrent)
print("\nRESTAURENT BILL : Rs. ", restaurentbill)
print("\nFASHION BILL : Rs. ", fashionbill)
print("\nGAMING BILL : Rs. ", gamingbill)
print("___________________________________________________")
print("\nTOTAL AMOUNT : Rs. ", grandTotal) cursor.close()
print("HOPE YOU ENJOYED YOUR HOLIDAY, THANK YOU, VISIT AGAIN")
print("--------------------------------------------------------")
19
print("3--->Calculate Room Rent") print("4--
->Calculate Restaurant Bill") print("5---
>Calculate Gaming Bill") print("6---
>Calculate Fashion store Bill") print("7---
>Calculate LAUNDRY store Bill")
print("8--->Calculate FITNESS CARE Bill")
print("9..--->>GENERATE TOTAL BILL AMOUNT")
print("10.EXIT") choice = int(input("Enter Your
Choice")) if choice == 1: user_entry() elif choice
== 2: bookingRecord() elif choice == 3:
roomRent()
20
elif choice ==
4:
Restaurent() elif
choice == 5:
GAMES() elif
choice == 6:
Fashion() elif
choice == 7:
laundry()
elif choice == 8:
fitnesscare() elif
choice == 9:
checkout()
else:
print("#THANK YOU -----EXIT FROM PROGRAM#")
c = con.cursor()
c.execute(sql,data) con.commit() print("Data Updated") print(">--------------------
------------------------------------------------------------------------------
--------------------------------------")
main()
21
EXECUTED RESULT
CONNECTION ESTABLISHED SUCCESSFULLY
--------------------------------------------------------
2--->Booking Record
6--->Calculate Fashion
store Bill
7--->Calculate LAUNDRY store Bill
10.EXIT
--------------------------------------------------------
22
Enter Customer Address : Manipal
6--->Calculate Fashion
store Bill
7--->Calculate LAUNDRY store Bill
10.EXIT
23
--------------------------------------------------------
--------------------------------------------------------
2--->Booking Record
6--->Calculate Fashion
store Bill
7--->Calculate LAUNDRY store Bill
8--->Calculate FITNESS CARE Bill
10.EXIT
24
Enter the CID: 107
--------------------------------------------------------
2. Double--> Rs25000
--------------------------------------------------------
25
Thank You, Your Room Has Been Booked For : 7 Days
--------------------------------------------------------
6--->Calculate Fashion
store Bill
7--->Calculate LAUNDRY store Bill
10.EXIT
-------------------------------------------
---WELCOME TO RESTAURANT--
26
2. Non-Vegetarian Combo -----> 5000 Rs.
--------------------------------------------------------
--------------------------------------------------------
2--->Booking Record
3--->Calculate Room Rent
6--->Calculate Fashion
store Bill
7--->Calculate LAUNDRY store Bill
27
10.EXIT
---WELCOME TO CASINO---
***URBAN_UTOPIA PRESENTS***
----------------------------
7. Exit
#################################################
28
Your Total Gaming Bill Is : Rs. 2000
FOR : 5 HOURS
#################################################
----------------------------
2--->Booking Record
6--->Calculate Fashion
store Bill
7--->Calculate LAUNDRY store Bill
10.EXIT
29
Enter the CID: 107
-------------------------------------------
***URBAN_UTOPIA
PRESENTS***
---------------------------
Pants
#################################################
30
YOU SELECT ITEM NO : 3
#################################################
--------------------------------------------------------
2--->Booking Record
10.EXIT
31
Enter Your Choice: 7
-------------------------------------------
---LAUNDRY MENU---
1.Shorts-->Rs15
2. Trousers-->Rs30
3.Shirt--
>Rs20
4.Jeans-->Rs30
5.LadiesSuit-->Rs45
Jeans
#################################################
32
YOUR QUANTITY IS : 12 ITEMS
THANK YOU!!!
Your Total LAUNDRY Bill Is : 450
#################################################
----------------------------
2--->Booking Record
6--->Calculate Fashion
store Bill
7--->Calculate LAUNDRY store Bill
10.EXIT
33
---WELCOME TO FITNESS CENTRE---
***URBAN_UTOPIA PRESENTS***
----------------------------
FOR : 5 HOURS
#################################################
----------------------------
34
2--->Booking Record
6--->Calculate Fashion
store Bill
7--->Calculate LAUNDRY store Bill
10.EXIT
----------------------------------------------
35
FASHION BILL : Rs. 8000
2--->Booking Record
6--->Calculate Fashion
store Bill
7--->Calculate LAUNDRY store Bill
10.EXIT
36
OUTPUT(DATABASE)
37
38
39
LIMITATIONS
The Hotel Management software does not have provisions to handle additional
services such as event management or customer feedback. These functionalities could
enhance the overall system but are currently outside the scope of this project.
BIBLIOGRAPHY
BOOKS:
COMPUTER SCIENCE WITH PYTHON- BY SUMITA ARORA
COMPUTER SCIENCE WITH PYTHON-BY PREETI ARORA
40
WEBSITES:
https://docs.python.org/ https://realpython.com/best-python-
books/ www.geeksforgeeks.org
https://www.w3schools.com/python/
41