Ip Project (Sid)
Ip Project (Sid)
A PROJECT REPORT
ON
SUBMITTED BY:
Mr.SivaPrasad G
ACKNOWLEDGEMENT
I would like to thank the institution for giving the opportunity to showcase
and display my talent through this project.
I would also like to thank my parents and friends who helped and supported
me in getting the right information to complete this project.
Page 2
Employee Salaries Database Jan/Feb 2025
TABLE OF CONTENTS
1. Abstract 5
2. System requirements 6
3. Database design 7
4. Coding 8
5. Output screens 14
6. Bibliography 24
Page 3
Employee Salaries Database Jan/Feb 2025
ABSTRACT
Page 4
Employee Salaries Database Jan/Feb 2025
.SYSTEM REQUIREMENTS
Hardware Components
1. VGA Monitor
2 .Qwerty keyboard
3. 2GB RAM
5. Graphics card
Software Components
1. Windows 7
Page 5
Employee Salaries Database Jan/Feb 2025
DATABASE DESIGN
Page 6
Employee Salaries Database Jan/Feb 2025
CODING
while(True):
print('1.insert')
print('2.Search specific')
print('3.Display')
print('4.Update')
print('5.Delete')
print('6.Graph')
print('7.Exit')
print()
if(ch==1):
import pymysql
conn=pymysql.connect(host='localhost',user='root',password='siddharth',database='empl
oyee')
a=conn.cursor()
a.execute(s)
Page 7
Employee Salaries Database Jan/Feb 2025
conn.commit()
conn.close()
print()
elif(ch==2):
import pymysql
conn=pymysql.connect(host='localhost',user='root',password='siddharth',database='empl
oyee')
a=conn.cursor()
a.execute(s)
data=a.fetchall()
if(len(data)==0):
else:
print('Employee empid=',empid)
print('Employee Name=',data[0][1])
print('Employee Salary=',data[0][2])
conn.commit()
print()
elif(ch==3):
Page 8
Employee Salaries Database Jan/Feb 2025
import pymysql
conn=pymysql.connect(host='localhost',user='root',password='siddharth',database='empl
oyee')
a=conn.cursor()
a.execute(s)
data=a.fetchall()
for i in data:
for j in i:
print(j,end=' ')
print()
conn.commit()
print()
elif(ch==4):
import pymysql
conn=pymysql.connect(host='localhost',user='root',password='siddharth',database='empl
oyee')
a=conn.cursor()
a.execute(s)
data=a.fetchall()
Page 9
Employee Salaries Database Jan/Feb 2025
if(len(data)==0):
else:
print('Employee empid=',empid)
print('Employee Name=',data[0][1])
print('Employee salary=',data[0][2])
a.execute(s)
print('updated successfully:')
conn.commit()
print()
elif(ch==5):
import pymysql
conn=pymysql.connect(host='localhost',user='root',password='siddharth',database='empl
oyee')
a=conn.cursor()
a.execute(s)
Page 10
Employee Salaries Database Jan/Feb 2025
data=a.fetchall()
if(len(data)==0):
else:
a.execute(s)
print('deleted successfully')
conn.commit()
print()
elif(ch==6):
import pymysql
conn=pymysql.connect(host='localhost',user='root',password='siddharth',database='empl
oyee')
a=conn.cursor()
a.execute(s)
data=a.fetchall()
L1=[]
L2=[]
for i in data:
L1.append(i[1])
Page 11
Employee Salaries Database Jan/Feb 2025
L2.append(int(i[2]))
plt.bar(L1,L2)
plt.xlabel('Employee name')
plt.ylabel('Employee salary')
plt.title('Employee salaries')
plt.show()
conn.commit()
print()
elif(ch==7):
print()
break
else:
Page 12
Employee Salaries Database Jan/Feb 2025
OUTPUT SCREEN
Page 13
Employee Salaries Database Jan/Feb 2025
Page 14
Employee Salaries Database Jan/Feb 2025
Page 15
Employee Salaries Database Jan/Feb 2025
Page 16
Employee Salaries Database Jan/Feb 2025
Page 17
Employee Salaries Database Jan/Feb 2025
Page 18
Employee Salaries Database Jan/Feb 2025
Page 19
Employee Salaries Database Jan/Feb 2025
Page 20
Employee Salaries Database Jan/Feb 2025
Page 21
Employee Salaries Database Jan/Feb 2025
Page 22
Employee Salaries Database Jan/Feb 2025
Page 23
Employee Salaries Database Jan/Feb 2025
Bibliography:
www.google.com
www.python.org.
www.geeksforgeeks.org
www.stackoveflow.com
Martin Brown and Martin C Brown, “Python: The Complete Reference”, Mc-
Graw-Hill, 2001
Page 24