Sahil CS Project
Sahil CS Project
jhunjhunu
for
SSCE Practical Examination 2023-24
[As a part of the subject Computer Science (083)]
Acknowledgement
Words seem to count short in number, when we get to acknowledge all those who have
helped me in the process of the development of this project. Their fruitful guidance,
encouragement, support and supervision had given me a positive dimension for the
initiation and completion of this project.
First and foremost, we would like to thank Mr. O. R. Choudhary Sir (Principal ,PM
Shri K.V. Jhunjhunu), for providing me with an opportunity to study in this esteemed
institution.
we would also like to thank our Computer Science teacher Mr. Lokesh Saini, PGT
Computer Science, PM Shri K.V. Jhunjhunu for being a true mentor and by providing
great support throughout the project.
Above all, we would like to thank our school, our parents who always inspired us always
in all endeavours.
Thanks everyone!
SAHIL
Class – XII- Science
Laboratory Certificate
2. ACKNOWLEDGEMENT
3. LABORATORY CERTIFICATE
4. TABLE OF CONTENTS
5. Description
6. System requirement
7. Source code
cur = cn.cursor()
def showAll():
global cn
global cur
try:
cur.execute(query)
results = cur.fetchall()
print("**************************************************")
print('%5s'%"EMPNO",'%15s'%'EMP
NAME','%12s'%'DEPARTMENT','%10s'%'SALARY')
print("**************************************************")
count=0
print('%5s' % row[0],'%15s'%row[1],'%12s'%row[2],'%10s'%row[3])
count+=1
except:
print("error")
def addEmp():
global cn,cur
print("*******************ADD NEW
EMPLOYEE**************************")
eno = int(input("Enter employee number :"))
cur.execute(query)
cn.commit()
#print(query)
def searchEmp():
global cn,cur
cur.execute(query)
results = cur.fetchall()
if cur.rowcount<=0:
else:
print("**************************************************")
print('%5s'%"EMPNO",'%15s'%'EMP
NAME','%12s'%'DEPARTMENT','%10s'%'SALARY')
print("**************************************************")
print('%5s' % row[0],'%15s'%row[1],'%12s'%row[2],'%10s'%row[3])
print("-"*50)
def editEmp():
global cn,cur
cur.execute(query)
results = cur.fetchall()
if cur.rowcount<=0:
else:
print("**************************************************")
print('%5s'%"EMPNO",'%15s'%'EMP
NAME','%12s'%'DEPARTMENT','%10s'%'SALARY')
print("**************************************************")
print('%5s' % row[0],'%15s'%row[1],'%12s'%row[2],'%10s'%row[3])
print("-"*50)
if ans=="y" or ans=="Y":
cn.commit()
def delEmp():
global cn,cur
cur.execute(query)
results = cur.fetchall()
if cur.rowcount<=0:
else:
print("**************************************************")
print('%5s'%"EMPNO",'%15s'%'EMP
NAME','%12s'%'DEPARTMENT','%10s'%'SALARY')
print("**************************************************")
print('%5s' % row[0],'%15s'%row[1],'%12s'%row[2],'%10s'%row[3])
print("-"*50)
if ans=="y" or ans=="Y":
cur.execute(query)
cn.commit()
def clear():
for i in range(1,50):
print()
def generateSlip():
global cn,cur
cur.execute(query)
results = cur.fetchone()
if cur.rowcount<=0:
else:
clear()
print("DEPARTMENT :",results[2])
print("*"*50)
s = int(results[3])
hra = s * 12/100
da = s * 15/100
it = 1000
nps = (s+hra)*10/100
gross = s +hra+da+nps
ded = it + nps
tded=it + nps
print("%19s"%"EARNING","%27s"%"DEDUCTION")
print("-------------------------------------------------")
print("%20s"%"DA :"+str(da))
print("%20s"%"NPS :"+str(nps))
print("-"*50)
print("-"*50)
input()
while True:
print("0. EXIT")
showAll()
elif ans==2:
addEmp()
elif ans==3:
searchEmp()
elif ans==4:
editEmp()
elif ans==5:
delEmp()
elif ans==6:
generateSlip()
elif ans==7:
print("*"*60)
print("*"*60)
elif ans==0:
print("\nBye!!")
cn.close()
break
output screen LAYOUTS
OUTPUT #1
OUTPUT #2
OUTPUT #3
OUTPUT #4
OUTPUT #5
OUTPUT #6
OUTPUT #7
OUTPUT #8
System requirement
I. 1 GB RAM (2 GB+ recommended)
II. 9-58 GB free hard disk space depending on edition and
configuration, including space required for temporary files
III. DVD-ROM drive (if installing from a Media Kit DVD)
IV. Basic GPU – Any vendor DirectX 9.0 class or better (Pixel
Shader Level 2)
V. Intel® Pentium® or compatible, 1.6 GHz minimum (2GHz+
recommended)
VI. 1024x768 or higher-resolution monitor
VII. Mouse or other pointing device
VIII. Microsoft® Windows 7, 8 or 8.1,10,11 (32-bit or 64-bit)