Professional Documents
Culture Documents
Project On Hostel Management
Project On Hostel Management
INTRODUCTION
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
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 efficiency so to
replace the unending heaps of flies with a muchsophisticated hard disk of the
computer.
One has to use the data management software. Software has been an ascent in
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.
conn=sql.connect(host='localhost',user='root',passwd='admin@123',
database='hostel_management')
conn.autocommit=True
if conn.is_connected():
print('connected succesfully')
else:
print('not connected')
c1=conn.cursor()
MANAGEMENT ")
print(" 4.EXIT")
if choice==1:
v_roll=input("ENTER YOUR ROLL NUMBER")
("+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:
roll_no={}".format(roll_no)
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")
department='{}'".format(department)
c1.execute(mysql)
data=c1.fetchall()
else:
print("QUITTING!!!!!!!!!")
OUTPUT: