#Write a class named Employee that holds the following data about an employee in attributes: name, ID number, department, and job title.
#Once you have written the class, write a program that creates three Employee objects to hold the following data.
#The program should store this data in the three objects, then display the data for each employee on the screen.
#Susan Meyers 47899 Accounting Vice President
#Mark Jones 39119 IT Programmer
#Joy Rogers 81774 Manufacturing Engineer
#Main Function
import employee_info
def main():
susan_employee_info = employee_info.Employee('Susan Meyers', 47899, 'Accounting', 'Vice President')
mark_employee_info = employee_info.Employee('Mark Jones', 39119, 'IT', 'Programmer')
joy_employee_info = employee_info.Employee('Joy Rogers', 81774, 'Manufacturing', 'Engineer')
print("Susan's Information:")
display_info(susan_employee_info)
print()
print("Mark's Information:")
display_info(mark_employee_info)
print()
print("Joy's Information:")
display_info(joy_employee_info)
def display_info(employee_info):
print(f'Name: {employee_info.get_name()}')
print(f'ID Number: {employee_info.get_id_number()}')
print(f'Department: {employee_info.get_department()}')
print(f'Job Title: {employee_info.get_job_title()}')
main()
#//////////////////////////////////////////// Second Program ////////////////////////////////////////////////////
class Employee:
def __init__(self, name, id_number, department, job_title):
self.name = name
self.id_number = id_number
self.department = department
self.job_title = job_title
def set_name(self, name):
self.name = name
def set_ID_number(self, ID_number):
self.ID_number = id_number
def set_department(self, department):
self.department = department
def set_job_title(self, job_title):
self.job_title = job_title
def get_name(self):
return self.name
def get_id_number(self):
return self.id_number
def get_department(self):
return self.department
def get_job_title(self):
return self.job_title