0% found this document useful (0 votes)
0 views

Cs Project

cumputer case study

Uploaded by

souravbareth
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
0 views

Cs Project

cumputer case study

Uploaded by

souravbareth
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 9

System design and development

Event coding :
In python:
Import mysql.connector as my
Ob=my.connect(host=’localhost’,user=’root’,passwd=’Sourav@2004’,dat
abase=’jobs’)
If ob.is_connected():
Print(‘connected’)
Else:
Print(“not connected”)
C=ob.cursor()
Print(“WELCOME TO JOB SEEKER”)

Def Biodata():
Name=input(“enter your name : “)
Contact_no=int(input(“enter your contact no. : “))
Email_id=input(“enter your email id : “)
Qualification=input(“enter your qualification : “)
Biodata()
Print(“job type : “)
Print(“full time”)
Print(“part time”)
Print(“work from home”)

Job_type=input(“enter the job type : “)


If job_type==”full time” or job_type==’FULL TIME’:
c.execute(“select * from full_time”)
a=c.fetchall()
for I in a:
for j in i:
print(j,end=”\t”)
print()
ch2=input(“enter the above choice : “)
if ch2==”electrical engineer” or ch2==”ELECTRICAL ENGINEER”:
c.execute(“select * from ELECTRICAL_ENGINEER”)
print(“cp_name\tsalary\t\twork\twk_hrs\toff”)
A1=c.fetchall()
For I in A1:
For j in i:
Print(j,end=”\t”)
Print()
Q=input(“enter the company name of your choice given above : “)
Print(“we’ll contact you soon…”)

Elif ch2==”mechanical engineer” or ch2==”MECHANICAL ENGINEER”:


c.execute(“select * from MECHANICAL_ENGINEER”)
print(“cp_name\tsalary\t\twork\twk_hrs\toff”)
A2=c.fetchall()
For I in A2:
For j in i:
Print(j,end=”\t”)
Print()
Q1=input(“enter the company name of your choice given above : “)
Print(“we’ll contact you soon…”)
Elif ch2==”computer science engineer” or ch2==”COMPUTER SCIENCE
ENGINEER”:
c.execute(“select * from COMPUTER_SCIENCE_ENGINEER”)
print(“cp_name\tsalary\t\twork\twk_hrs\toff”)
A3=c.fetchall()
For I in A3:
For j in i:
Print(j,end=”\t”)
Print()
Q2=input(“enter the company name of your choice given above : “)
Print(“we’ll contact you soon…”)
Else:
Print(“invalid choice”)

Elif job_type==”part time” or job_type==”PART TIME”:


c.execute(“select * from part_time”)
b=c.fetchall()
for I in b:
for j in i:
print(j,end=”\t”)
print()
ch3=input(“enter the above choice : “)
if ch3==’DATA ENTRY CLERK’ or ch3==”data entry clerk”:
c.execute(“select * from data_entry_clerk”)
print(“cp_name\t\tsalary\twork”)
g1=c.fetchall()
for I in g1:
for j in i:
print(j,end=”\t”)
print()
p=input(“enter the company name of your choice given above : “)
print(“we’ll contact you soon…”)

elif ch3==’tutor’ or ch3==”TUTOR”:


c.execute(“select * from TUTOR”)
print(“cp_name\t\t\tsalary\twork”)
g2=c.fetchall()
for I in g2:
for j in i:
print(j,end=”\t”)
print()
p1=input(“enter the company name of your choice given above : “)
print(“we’ll contact you soon…”)
elif ch3==’software developer’ or ch3==”SOFTWARE DEVELOPER”:
c.execute(“select * from software_developer”)
print(“cp_name\tsalary\twork”)
g3=c.fetchall()
for I in g3:
for j in i:
print(j,end=”\t”)
print()
p3=input(“enter the company name of your choice given above : “)
print(“we’ll contact you soon…”)
else:
print(“invalid choice”)

elif job_type==’work from home’ or job_type==”WORK FROM HOME”:


c.execute(“select * from work_from_home”)
d=c.fetchall()
for I in d:
for j in i:
print(j,end=”\t”)
print()
ch1=input(“enter the above choice : “)
if ch1==’editing’ or ch1==”EDITING”:
c.execute(“select * from EDITING”)
print(“cp_name\tsalary\twork\twkhrs”)
f1=c.fetchall()
for I in f1:
for j in i:
print(j,end=”\t”)
print()
r=input(“enter the company name of your choice given above : “)
print(“we’ll contact you soon…”)
elif ch1==”graphic designer” or ch1==”GRAPHIC DESIGNER”:
c.execute(“select * from graphic_designer”)
f2=c.fetchall()
for I in f2:
for j in i:
print(j,end=”\t”)
print()
r1=input(“enter the company name of your choice given above : “)
print(“we’ll contact you soon…”)
elif ch1==”web designer” or ch1==”WEB DESIGNER”:
c.execute(“select * from web_designer”)
f3=c.fetchall()
for I in f3:
for j in i:
print(j,end=”\t”)
print()
r2=input(“enter the company name of your choice given above : “)
print(“we’ll contact you soon…”)
else:
print(“invalid choice”)
else:
print(“invalid choice”)
Output :

You might also like