0% found this document useful (0 votes)
6 views37 pages

Hostel Management 3

Uploaded by

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

Hostel Management 3

Uploaded by

anujsharma9466
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 37

BAL VIKAS SR. SEC.

SCHOOL
BAHADURGARH

PRACTICAL FILE
ON
COMPUTER SCIENCE
(CODE-083)
SESSION: 2024-2025

SUBMITTED BY SUBMITTED TO
NAME : Harsh TEACHER’S NAME
ROLL NO.
Ms. Renu Ma’am
CLASS : XII-SCIENCE

T.SIGN SCHOOL STAMP P.SIGN


CERTIFICATE
This is to certify that cadet Harsh Roll No: __________has
successfully completed the project work entitled HOTEL
MANAGEMENET in the subject computer science (083) laid down in
the regulations of CBSE for the purpose of Practical Examination in
class XII to be held in BAL VIKAS SR. SEC. SCHOOL on _________

(Ms Renu)

Computer Teacher

Principal signature
ACKNOWLEDGEMENT
I would like to express my special
thanks of gratitude to my computer
teacher MS Renu for their able
guidance and support in completing my
project.

I would also like to extend my gratitude


to the principal Dr. Poonam Chaudhary
for providing me all the facilities that
are required.
PROJECT ON HOTEL MANAGEMENT
This project is based on management of hotels, such as
information about the clients such as his\her details etc. These
information can be stored in the data and can be verified
whenever we want this computer program can be used for
hotels , restraunts etc.

OBJECTIVES OF THIS PROJECT


The objective of this project is to let the students apply the
programming knowledge into a real world situation\problem
and exposed the students how programming skills help in
developing a good software.
1. Write programs utilizing modern software tools.
2. Apply object oriented programming principles effectively
when developing small to medium sized projects.
3. Write effectively procedural code to solve small to
medium sized problems.
4. Students will demonstrate a breadth of knowledge in
computer science, as exemplified in the area of systems,
theory and software development.
5. Students will demonstrate ability to conduct a research or
applied computer science project , requiring writing and
presentation skills which exemplify scholarly in computer
science.
Propsed system
Today one cannot afford to rely on the fallible human
beings of be really wants to stand against today”s
merciless competition where not to wise saying “to err is
human” no longer valid, it’s out-dated to rationalize your
mistake. So, to keep pace with time, to bring about the
best result without malfunctioning and greater efficency
so to replace the unending heaps of flies with a much
sophisticateed hard disk of the computer.
One has to use the data management software. Software
has been an ascent in atomization various organizations.
Many software products working are now in markets,
which have helped in making the organization work easier
and efficiently . Data management initially had to maintain
a lot of ledgers and a lot of paperwork has to be done but
now software production this organization has made their
work faster and easier. Now only this software has to be
loaded on the computer and work can be done.

This prevents a lot of time and money. The work becomes


fully automated and any information regarding the
organisation can be obtained by clicking the button .
Moreover , now it’s an age of computers and automating
such an organisation gives the better look.
SYSTEM DEVELOPMENT LIFECYCLE (SDLC)
The system development life cycle is a project
management technique that divides complex projects into
smaller, more easily managed segments or phases .
Segmenting projects allows managers to verify the
successful completion of project phases before allocating
resources to subsequent phases.
Software development projects typically include initiation ,
planning , design , development, testing ,implementation
and maintenance phases. However, the phases may be
divided differently depending on the organization
involved.
For example , initial project activities might be designated
as request, requirements definition and planning phases,
or initiation , concept- development and planning phases.
End users of the system under development should be
involved in reviewing the output of each phases to ensure
the system is being built to deliver the needed
functionality.

PHASES OF SYSTEM DEVELOPMENT LIFE CYCLE


Initiation phase
The initiation phase begins when a business sponsor
identifies a need or an opportunity.
The purpose of the initiation phase is to:
• Identify and validate an opportunity to improve
business accomplishments of the organization or a
deficiency related to a business need.
• Identify significant assumptions and constraints on
solution to that need.
• Recommend the exploration of alternative concepts
and methods to satisfy the need including
questioning the need for technology will a change in
the business process offer a solution?
• Assure executive business and executive technical
sponsorship. The sponsor designates a project
manager and the business need is documented in a
concept proposal. The concept proposal includes
information about the business process and the
relationship to the agency/organization.
• Infrastructure and the strategic plan. A successful
concept proposal results in a project management
charter which outlines the authority of the project
manager to begin the project.
Careful oversight is require dto ensure projects support
strategic business objectives and resources are effectively
implemented into an organisation’s enterprise
architecture . The intitiation phase begins when an
opportunity to add, improve or correct a system is
identified and formally requested through the
presentation of a business case. The business case should
,at a minimum , described through the presentation of a
business case . The business case should also identify
alternative solutions and details as many informational ,
functional and network requirements as possible.
SUSTEM CONCEPT DEVELOPMENT PHASE
The system concept development phase begins after a
business need or opportunity is validity by the
Agency/organization program leadership and the agency
/organization CIO.
The purporse of the system concept development phase is
to:
• Determine the feasibility and appropriateness of the
alternatives.
• Identify system interfaces.
• Identify basic functional and data requirements to
satisfy the business need.
• Establish system boundaries ; identify goals ,
objectives , critical success factors , and performance
measures.
• Evaluate costs and benefits of alternatives
approaches to satify the basic functional
requirements
• Asses project risks
• Identify and initiate risk mitigation actions and
develop high-level technical architecture , process
models , data models , and a concept of operations.
This phase explores potential technical solutions
within the context of the business need.
• It may include several trade-off decisions such as the
decision to use COTS software products as opposed o
developing custom software or reusing software
components or the decisions to use an incremental
delivery versus a complete onetime development.
• Construction of executable prototypes is encouraged
to evaluate technology to support the business
process. The system boundary document serves as an
important reference document to support the
information technology project request(ITPR)
process.
• The ITPR must be approved by the state CIO before
the project can move forward.
PLANNING PHASE
The planning phase is the most critical step in
completing development acquisition and
maintenance projects. Careful planning , particularly
in the early stages of a project , is necessary to
coordinate activities and manage project risks
effectively. The depth and formality of project plans
should be commensurate with the characteristics and
risks of a given project. Project plans refine the
information gathered during the initiation phase by
further identifying the specificativities and resources
required to complete a project.

A critical part of a project manager’s job is to


coordinate discussions between iser,
audit,security,design,development and network
personnel to identify and document as many
functional , security and network personnel to
identify and document as many functional ,security
and network requirements as possible. During this
phase,a plan is developed that documents the
approach to be used and includes a discussion of
methods,tools,tasks ,resources , project schedules
and user input. Personnel assignments, costs ,project
schedule and target dates are established.

A project management plan is created with


components related to acquisition planning,
configuration management planning , quality
assurance planning, concept of operations, system
security , verification and validation and systems
engineering management planning.
REQUIREMENT ANALYSIS PHASE
This phase formally defines the detailed functional
user requirements using high level requirements
identified in the initiation, system concept and
planning phases. It also delineates the requirements
in terms of data, system performance , security and
maintainability requirements for the system. The
requirements are defined in this phase to a level of
detail sufficient for systems design to proceed. They
need to be measurable , testable and relate to the
business need or opportunity identified in the
initiation phase. The requirements that will be used
to determine acceptance of the system are captured
in the test and evaluation master plan.
The purpose of this phase are to:
• Further define and refine the functional and data
requirements and documents them in the
requirements document.
• Complete business process reengineering of the
functions to be supported (i.e., verify what
information drives the business process, what does
the information go, and who processes it).
• Develop detailed data and process models(system
inputs,outputs and the process).
• Develop the test and evaluation requirements that
will be used to determine acceptable system
performance.
DESIGN PHASE
The design phase involves converting the
informational , functional and network requirements
identified during the initiation and planning phases
into unified design specifications that developers use
to script programs during the development
phase.Program designs are constructed in various
ways. Using a top-down approach , designers first
identify and link major program components and
interfaces , then expand design layouts as they
identify and link smaller subsystems and connections.
Using a bottom-up approach, designers first identify
and link minor program components and interfaces,
then expand design layouts as they identify and link
larger systems and connections. Contetmporary
design techniques often use prototyping tools that
build mock-up designs of items such as application
screens, database layouts and system architectures.
End users , designers, developers, database managers
and network administrators should review and refine
the prototyped designs in an iterative process until
they agree on an acceptable design. Adult ,security
and quality assurance personnel should be involved in
the reviews and approval process. During this phas ,
the system is designed to satisfy the functional
requirements identified in the previous phase. Since
problems in the design phase could be very expensive
to solve in the later stage of the software
developments, a variety of elements are considered
in the designs to mitigate risk. These include:
• Identifying potential risks and defining mitigationg
designs features.
• Performing a security risk assessment.
• Developing a conversion plan to migrate current data
to the new sysem.
• Determining the operating environment
• Allocating processes to resources
• Preparing detailed logic specifications for each
software module. The result is a draft system design
document which captures the preliminiary design for
the system.
• Everything requiring user input or approval is
documented and reviewed by the user. Once these
documents have been approved by the agency CIO
and business sponsor , the final system design
document is created to serve as the critical / detailed
design for the system.
• This document receives a rigorous review by agency
technical and functional representatives to ensure
that it satisfies the business requirements.
Concurrent with the development of the system
design, the agency project manager begins
development of the implementation plan, operations
and maintence manual and the training plan.
DEVELOPMENT PHASE
• The development phase involves converting design
specifications into executable programs. Effective
development standards include requirements that
programmers and other project participants discuss
design specifications before programming begins. The
procedures help ensure programmers clearly
understand program designs and functional
requirements. Programmers use various techniques
to develop computer programs. The large transaction
oriented programs associated with financial
institutions have traditionally been developed using
procedural programming techniques. Procedural
programming involves the line-by-line scripting of
logical instructions that are combined to form a
program. Effective completion of the previous stages
is a key factor in the success of the development
phase. The development phase consists of:
• Translating the detailed requirements and designs
into system components.
• Testing individual elements (units) for usability
• Preparing for integration and testing of the IT system
• Evaluation is performed and all documentation is
reviewed and accepted prior to acceptance of the
system
IMPLEMENTATION PHASE
This phase is initiated after the system has been
tested and accepted by the user. In this phase, the
system is installed to support the intended business
functions. System performance is installed to support
the intended business functions. System performance
is compared to performance objectives established
during the planning phase. Implementation includes
user notification, user training, installation of
hardware , installation of software onto production
computers and integration of the system into daily
work processes. This phase continues until the system
is operating in production in accordance with the
defined user requirements.
OPERATIONS AND MAINTENANCE PHASE
The system operation is on-going. The system is
monitoring for continued performance in accordance
with user requirements and needed system
modifications are incorporated. Operations continue
as long as the system can be effectively adapted to
respond to the organization’s needs. When
modifications or changes are identified , the system
may re-enter the planning phase.
The purpose of this phase is to:
• Operate, maintain, and enhance the system.
• Certify that the system can process sensitive
information
• Conduct periodic assessments of the system to
ensure the functional requirements continue to be
satisfied
• Determine when the system needs to be modernized
, replaced or retired

SOURCE CODE

#***************HOTEL MANAGEMENT SYSTEM *************************

import mysql.connector

# GLOBAL VARIABLES DECLARATION

myConnnection =""

cursor=""

userName=""
password =""

roomrent =0

restaurentbill=0

gamingbill=0

fashionbill=0

totalAmount=0

cid=""

#MODULE TO CHECK MYSQL CONNECTIVITY

def MYSQLconnectionCheck ():

global myConnection

global userName

global password

userName = input("\n ENTER MYSQL SERVER'S USERNAME : ")

password = input("\n ENTER MYSQL SERVER'S PASSWORD : ")


myConnection=mysql.connector.connect(host="localhost",user=userName,passwd=password ,
auth_plugin='mysql_native_password')

if myConnection:

print("\n CONGRATULATIONS ! YOUR MYSQL CONNECTION HAS BEEN ESTABLISHED !")

cursor=myConnection.cursor()

cursor.execute("CREATE DATABASE IF NOT EXISTS HMS")

cursor.execute("COMMIT")

cursor.close()

return myConnection

else: print("\nERROR ESTABLISHING MYSQL CONNECTION CHECK USERNAME AND PASSWORD !")

#MODULE TO ESTABLISHED MYSQL CONNECTION

def MYSQLconnection ()

global username

global password

global myConnection
global cid
myConnection=mysql.connector.connect(host="localhost",user=userName,passwd=password ,
database="HMS" , auth_plugin='mysql_native_password' )

if myConnection:

return myConnection

else:

print("\nERROR ESTABLISHING MYSQL CONNECTION !")

myConnection.close()

def userEntry():

global cid

if myConnection:

cursor=myConnection.cursor( createTable ="""CREATE TABLE IF NOT EXISTS C_DETAILS(CID


VARCHAR(20),C_NAME VARCHAR(30),C_ADDRESS VARCHAR(30),C_AGE VARCHAR(30), C_COUNTRY
VARCHAR(30) ,P_NO VARCHAR(30),C_EMAIL VARCHAR(30))”””

cursor.execute(createTable)

cid = input("Enter Customer Identification Number : ")

name = input("Enter Customer Name : ")

address = input("Enter Customer Address : ")

age= input("Enter Customer Age : ")

nationality = input("Enter Customer Country : ")

phoneno= input("Enter Customer Contact Number : ")

email = input("Enter Customer Email : ")

sql = "INSERT INTO C_Details VALUES(%s,%s,%s,%s,%s,%s,%s)" values=


(cid,name,address,age,nationality,phoneno,email) cursor.execute(sql,values)
cursor.execute("COMMIT")

print("\nNew Customer Entered In The System Successfully !")

cursor.close()

else:

print("\nERROR ESTABLISHING MYSQL CONNECTION !")

def bookingRecord():

global cid
customer=searchCustomer()

if customer:

if myConnection:

cursor=myConnection.cursor()

createTable ="CREATE TABLE IF NOT EXISTS BOOKING_RECORD(CID VARCHAR(20),CHECK_IN DATE


,CHECK_OUT DATE)"

cursor.execute(createTable)

checkin=input("\n Enter Customer CheckIN Date [ YYYY-MM-DD ] : ")

checkout=input("\n Enter Customer CheckOUT Date [ YYYY-MM-DD ] : ")

sql= "INSERT INTO BOOKING_RECORD VALUES(%s,%s,%s)"

values= (cid,checkin,checkout) cursor.execute(sql,values)

cursor.execute("COMMIT")

print("\nCHECK-IN AND CHECK-OUT ENTRY MADED SUCCESSFULLY !")

cursor.close()

else:

print("\nERROR ESTABLISHING MYSQL CONNECTION !")

def roomRent():

global cid

customer=searchCustomer()

if customer:

global roomrent

if myConnection:

cursor=myConnection.cursor()

createTable ="""CREATE TABLE IF NOT EXISTS ROOM_RENT(CID VARCHAR(20),ROOM_CHOICE


INT,NO_OF_DAYS INT,ROOMNO INT ,ROOMRENT INT)”””

cursor.execute(createTable)

print ("\n ##### We have The Following Rooms For You #####")

print (" 1. Ultra Royal ----> 10000 Rs.")

print (" 2. Royal ----> 5000 Rs. ")


print (" 3. Elite ----> 3500 Rs. ")

print (" 4. Budget ----> 2500 USD ")

roomchoice =int(input("Enter Your Option : "))

roomno=int(input("Enter Customer Room No : "))

noofdays=int(input("Enter No. Of Days : "))

if roomchoice==1:

roomrent = noofdays * 10000

print("\nUltra Royal Room Rent : ",roomrent)

elif roomchoice==2:

roomrent = noofdays * 5000

print("\nRoyal Room Rent : ",roomrent)

elif roomchoice==3:

roomrent = noofdays * 3500

print("\nElite Royal Room Rent : ",roomrent)

elif roomchoice==4:

roomrent = noofdays * 2500

print("\nBudget Room Rent : ",roomrent)

else:

print("Sorry ,May Be You Are Giving Me Wrong Input, Please Try Again !!! ")

return sql= "INSERT INTO ROOM_RENT VALUES(%s,%s,%s,%s,%s)" values=


(cid,roomchoice,noofdays,roomno,roomrent,)

cursor.execute(sql,values)

cursor.execute("COMMIT")

print("Thank You , Your Room Has Been Booked For : ",noofdays , "Days" )

print("Your Total Room Rent is : Rs. ",roomrent)

cursor.close()

else:

print("\nERROR ESTABLISHING MYSQL CONNECTION !")

def Restaurent():
global cid

customer=searchCustomer()

if customer:

global restaurentbill

if myConnection:

cursor=myConnection.cursor( createTable ="""CREATE TABLE IF NOT EXISTS RESTAURENT(CID


VARCHAR(20),CUISINE VARCHAR(30),QUANTITY VARCHAR(30),BILL VARCHAR(30)) """

cursor.execute(createTable)

print("1. Vegetarian Combo -----> 300 Rs.")

print("2. Non-Vegetarian Combo -----> 500 Rs.")

print("3. Vegetarian & Non-Vegetarian Combo -----> 750 Rs.")

choice_dish = int(input("Enter Your Cusine : "))

quantity=int(input("Enter Quantity : "))

if choice_dish==1:

print("\nSO YOU HAVE ORDER: Vegetarian Combo ")

restaurentbill = quantity * 300

elif choice_dish==2:

print("\nSO YOU HAVE ORDER: Non-Vegetarian Combo ")

restaurentbill = quantity * 500

elif choice_dish==3:

print("\nSO YOU HAVE ORDER: Vegetarian & Non-Vegetarian Combo ")

restaurentbill= quantity * 750

else:

print("Sorry ,May Be You Are Giving Me Wrong Input, Please Try Again !!! ")

return sql= "INSERT INTO RESTAURENT VALUES(%s,%s,%s,%s)"

values= (cid,choice_dish,quantity,restaurentbill)

cursor.execute(sql,values)

cursor.execute("COMMIT")

print("Your Total Bill Amount Is : Rs. ",restaurentbill)


print("\n\n**** WE HOPE YOU WILL ENJOY YOUR MEAL ***\n\n" )

cursor.close()

else: print("\nERROR ESTABLISHING MYSQL CONNECTION !")

def Gaming():

global cid

customer=searchCustomer()

if customer:

global gamingbill

if myConnection:

cursor=myConnection.cursor() createTable ="""CREATE TABLE IF NOT EXISTS GAMING(CID


VARCHAR(20),GAMES VARCHAR(30),HOURS VARCHAR(30),GAMING_BILL VARCHAR(30))”””

cursor.execute(createTable)

print(""" 1. Table Tennis -----> 150 Rs./HR

2. Bowling -----> 100 Rs./HR

3. Snooker -----> 250 Rs./HR

4. VR World Gaming -----> 400 Rs./HR

5. Video Games -----> 300 Rs./HR

6. Swimming Pool Games -----> 350 Rs./HR

7. Exit """)

game=int(input("Enter What Game You Want To Play : "))

hour=int(input("Enter No Of Hours You Want To Play : "))

print("\n\n#################################################")

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:

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 ,May Be You Are Giving Me Wrong Input, Please Try Again !!! ")

return sql= "INSERT INTO GAMING VALUES(%s,%s,%s,%s)"

values= (cid,game,hour,gamingbill)

cursor.execute(sql,values)

cursor.execute("COMMIT")

print("Your Total Gaming Bill Is : Rs. ",gamingbill)

print("FOR : ",hour," HOURS","\n *** WE HOPE YOU WILL ENJOY YOUR GAME ***")
print("\n\n#################################################")

cursor.close()

else:

print("ERROR ESTABLISHING MYSQL CONNECTION !")

def Fashion():

global cid

customer=searchCustomer()

if customer:

global fashionbill

if myConnection:

cursor=myConnection.cursor()
createTable ="""CREATE TABLE IF NOT EXISTS FASHION(CID VARCHAR(20),DRESS
VARCHAR(30),AMOUNT VARCHAR(30),BILL VARCHAR(30))”””

cursor.execute(createTable) print(""" 1. Shirts -----> 1500 Rs.

2. T-Shirts -----> 300 Rs.

3. Pants -----> 2000 Rs.

4. Jeans -----> 4000 Rs.

5. Tassel top -----> 500 Rs.

6. Gown -----> 3000 Rs.

7. Western dress -----> 3000 Rs.

8. Skirts -----> 400 Rs.

9. Trousers -----> 200 Rs.

10. InnerWear -----> 30 Rs. """)

dress=int(input("Enter the your Choice wear: "))

quantity=int(input("How many you want to buy: "))

if dress==1:

print("\nShirts")

fashionbill = quantity * 1500

elif dress==2:

print("\nT-Shirts")

fashionbill = quantity * 300

elif dress==3:

print("\nPants")

fashionbill = quantity * 2000

elif dress==4:

print("\nJeans")

fashionbill = quantity * 4000

elif dress==5:

print("\nTassel top")

fashionbill = quantity * 500


elif dress==6: print("\nGown")

fashionbill = quantity * 3000

elif dress==7:

print("\nWestern dress")

fashionbill = quantity * 3000

elif dress==8:

print("\nSkirts")

fashionbill = quantity * 400

elif dress==9:

print("\nTrousers")

fashionbill = quantity * 200

elif dress==10:

print("\nInnerWear")

fashionbill = quantity * 30

else:

print("Sorry ,May Be You Are Giving Me Wrong Input, Please Try Again !!! ")

return sql= "INSERT INTO FASHION VALUES(%s,%s,%s,%s)"

values= (cid,dress,quantity,fashionbill)

cursor.execute(sql,values)

cursor.execute("COMMIT")

print("\n\n#################################################")

print("\nYOU SELECT ITEM NO : ",dress,"\nYOUR QUANTITY IS : ",quantity," ITEMS","\nTHANK YOU FOR


SHOPPING VISIT AGAIN!!!" )

print("\nYour Total Bill Is : ",fashionbill)


print("\n\n#################################################")

cursor.close()

else:

print("\nERROR ESTABLISHING MYSQL CONNECTION !")

def totalAmount():
global cid

customer=searchCustomer()

if customer:

global grandTotal

global roomrent

global restaurentbill

global fashionbill

global gamingbil

if myConnection:

cursor=myConnection.cursor()

createTable ="""CREATE TABLE IF NOT EXISTS TOTAL(CID VARCHAR(20),C_NAME


VARCHAR(30),ROOMRENT INT ,RESTAURENTBILL INT ,GAMINGBILL INT,FASHIONBILL
INT,TOTALAMOUNT INT)"""

cursor.execute(createTable)

sql= "INSERT INTO TOTAL VALUES(%s,%s,%s,%s,%s,%s,%s)"

name = input("Enter Customer Name : ")

grandTotal=roomrent + restaurentbill + fashionbill + gamingbill

values= (cid,name,roomrent,restaurentbill , gamingbill,fashionbill,grandTotal) cursor.execute(sql,values)


cursor.execute("COMMIT")

cursor.close()

print("\n **** CROWN PLAZA MIAMI **** CUSTOMER BIILING ****")

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()

else:
print("\nERROR ESTABLISHING MYSQL CONNECTION !")

def searchOldBill()

global cid customer=searchCustomer()

if customer:

if myConnection:

cursor=myConnection.cursor()

sql="SELECT * FROM TOTAL WHERE CID= %s"

cursor.execute(sql,(cid,))

data=cursor.fetchall()

if data:

print(data)

else:

print("Record Not Found Try Again !")

cursor.close()

else:

print("\nSomthing Went Wrong ,Please Try Again !")

def searchCustomer():

global cid

if myConnection:

cursor=myConnection.cursor()

cid=input("ENTER CUSTOMER ID : ")

sql="SELECT * FROM C_DETAILS WHERE CID= %s" cursor.execute(sql,(cid,))

data=cursor.fetchall()

if data:

print(data)

return True

else:

print("Record Not Found Try Again !")

return False
cursor.close()

else:

print("\nSomthing Went Wrong ,Please Try Again !")

myConnection = MYSQLconnectionCheck ()

if myConnection:

MYSQLconnection ()

while(True):

print(""" 1--->Enter Customer Details

2--->Booking Record

3--->Calculate Room Rent

4--->Calculate Restaurant Bill

5--->Calculate Gaming Bill

6--->Calculate Fashion store Bill

7--->Display Customer Details

8--->GENERATE TOTAL BILL AMOUNT

9--->GENERATE OLD BILL

10--->EXIT """)

choice = int(input("Enter Your Choice"))

if choice == 1:

userEntry()

elif choice ==2:

bookingRecord()

elif choice ==3:

roomRent()

elif choice ==4:

Restaurent()

elif choice ==5:

Gaming()

elif choice ==6:


Fashion()

elif choice ==7:

searchCustomer()

elif choice ==8:

totalAmount()

elif choice ==9:

searchOldBill()

elif choice ==10:

break else:

print("Sorry ,May Be You Are Giving Me Wrong Input, Please Try Again !!! ")

else:

print("\nERROR ESTABLISHING MYSQL CONNECTION !")

# END OF PROJECT

Output of the Project


Finally, we conclude our work and present the output of the Project.
Hardware Requirement
1 OPERATING SYSTEM : WINDOWS 7

2 PROCESSOR : INTEL(R) CORE(TM) 2 DUO CPU

3 SYSTEM TYPE : 64-BIT OPERATING SYSTEM

4 RAM : 4GB

SOFTWARE REQUIREMENT
1 WINDOWS 7

2 LANGUAGE: PYTHON (IDLE(PYTHON3.4 GUI-32 BIT))

3 MYSQL
BIBLIOGRAPHY
TO COMPLETE THIS PROJECT I TOOK HELP FROM

BOOKS: SUMITA ARORA-COMPUTER SCIENCE WITH PYTHON

NCERT- COMPUTER SCIENCE

WEBSITE: www.w3school.com

WEBSITE: www.python.org

WEBSITE: www.tutorailpoint.com

You might also like