Repository navigation
Expand file tree
/
Copy pathjob_application
More file actions
83 lines (68 loc) · 2.39 KB
/
Copy pathjob_application
File metadata and controls
83 lines (68 loc) · 2.39 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
class PersonalInfo:
def __init__(self, name, dob, contact, email):
self.name = name
self.dob = dob
self.contact = contact
self.email = email
def display_personal(self):
print("Name:", self.name)
print("Date of Birth:", self.dob)
print("Contact Number:", self.contact)
print("Email:", self.email)
class Education(PersonalInfo):
def __init__(self, name, dob, contact, email, degree, university, year, cgpa):
PersonalInfo._init_(self,name, dob, contact, email)
self.degree = degree
self.university = university
self.year = year
self.cgpa = cgpa
def display_education(self):
print("Degree:", self.degree)
print("University:", self.university)
print("Year of Graduation:", self.year)
print("CGPA:", self.cgpa)
class Experience(Education):
def __init__(self, name, dob, contact, email, degree, university, year, cgpa,
company, role, years_exp, skills):
Education._init_(self,name, dob, contact, email, degree, university, year, cgpa)
self.company = company
self.role = role
self.years_exp = years_exp
self.skills = skills
def display_experience(self):
print("Company Name:", self.company)
print("Job Role:", self.role)
print("Years of Experience:", self.years_exp)
print("Skills:", self.skills)
class CandidateProfile(Experience):
def display_profile(self):
print("\n------ Candidate Profile -----")
self.display_personal()
print("\n-----Education Details----")
self.display_education()
print("\n----Work Experience----")
self.display_experience()
def check_eligibility(self):
if self.years_exp > 5:
print("Eligible for Senior Role")
else:
print("Eligible for Junior Role")
# Candidate 1
c1 = CandidateProfile(
"Amit", "10-05-1999", "9885084135", "amit@gmail.com",
"B.Tech", "Gitam University", 2018, 8.2,
"Infosys", "Software Engineer", 6,
"Python, Java"
)
# Candidate 2
c2 = CandidateProfile(
"Ramesh", "22-08-1999", "9123456780", "ramesh@gmail.com",
"B.Sc Computer Science", "Delhi University", 2021, 7.9,
"TCS", "Junior Developer", 2,
"Python, SQL"
)
# Display Profiles
c1.display_profile()
c1.check_eligibility()
c2.display_profile()
c2.check_eligibility()