6081.hostel Management (1) Org
6081.hostel Management (1) Org
01 ACKNOWLEDGEMENT 02
02 INTRODUCTION 03
04 PROPOSED SYSTEM 04
05 FLOW CHART 05
06 SOURCE CODE 09
07 OUTPUT 11
12 BIBLIOGRAPHY 24
ACKNOWLEDGEMENT
1
Apart from the efforts of me, the success of any project depends largely on
the encouragement and guidelines of many others. I take this opportunity to express
my gratitude to the people who have been instrumental in the successful completion
of this project.
I express deep sense of gratitude to almighty God for giving me strength for
the successful completion of the project.
The guidance and support received from all the members who contributed
and who are contributing to this project, was vital for the success of the project. I am
grateful for their constant support and help.
2
PROJECT ON HOSTEL MANAGEMENT
INTRODUCTION
the students such as his\her roll number , in department they belong to , etc. These
information can be stored in the data and can be verified whenever we want.this
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
3
PROPOSED 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
One has to use the data management software. Software has been an ascent
markets, which have helped in making the organizations work easier and efficiently.
Data management initially hadto maintain a lot of ledgers and a lot of paperwork has
to be done but now software producton this organization has made their work
fasterand easier. Now only this software has to beloaded on the computer and work
can be done.
This prevents a lot of time and money. Thework becomes fully automated and
any information regarding the organization can beobtained by clicking the button.
4
FLOW CHART
start
CHOICE=INT
(INPUT(“ENT
ER THE
CHOICE”))
IF
CHOICE=
=1:
v_dept=input("ENTER YOUR
DEPARTMENT")
5
print(abc)
Elif
Choice==2
;
mysql="select*from
hostel_management where
roll_no={}".format(roll_no)
print("roll_no:",data[0][0])
print("name:",data[0][1])
print("address:",data[0][2])
print("room_no:",data[0][3])
print("dept:",data[0][4])
6
elif
choice==2:
print("1.COMPUTER")
print("2.BIO")
print("3.TECH")
print("4.PHYSICS")
print("5.ECO")
print("6.ENG")
department=input("ENTER YOUR
DEPARTMENT")
c1.execute(mysql)
7
elif
choice==
4:
print("your fees
is:",data[0][1])
print( "SORRY,YOU
ARE NOT AUTHORIZED
TO USE THIS SITE ")
els
e
print("QUITTING!!!!!!!!!")
8
stop
SOURCE CODE
conn=sql.connect(host='localhost',user='root',passwd=’pass',
database='hostel_management')
conn.autocommit=True
if conn.is_connected():
print('connected succesfully')
else:
print('not connected')
c1=conn.cursor()
print(" 4.EXIT")
if choice==1:
9
abc=("insert into hostel_management values
("+v_roll+",'"+v_name+"','"+v_add+"',"+v_room_no+",'"+v_dept+"',"+v_fees+","+v_bal+
")")
print(abc)
c1.execute(abc)
conn.commit()
elif choice==3:
c1.execute(mysql)
data=c1.fetchall()
print("roll_no:",data[0][0])
print("name:",data[0][1])
print("address:",data[0][2])
print("room_no:",data[0][3])
print("dept:",data[0][4])
print("fees:",data[0][5])
print("bal:",data[0][6])
elif choice==2:
print("1.COMPUTER")
print("2.BIO")
print("3.TECH")
print("4.PHYSICS")
print("5.ECO")
print("6.ENG")
c1.execute(mysql)
data=c1.fetchall()
10
else:
print("QUITTING!!!!!!!!!")
11
12
BIBLIOGRAPHY
13