Question
class named Employee that holds the following data about an employee in attributes: name, ID number, department, and job title. finished output should display: Employee
class named Employee that holds the following data about an employee in attributes: name, ID number, department, and job title.
finished output should display:
Employee 1:
Name : Susan Meyers
ID : 47899
Department: Accounting
Title : Vice President
Employee 2:
Name : Mark Jones
ID : 39119
Department: IT
Title : Programmer
Employee 3:
Name : Joy Rogers
ID : 81774
Department: Manufacturing
Title : Engineer
starter code is below
from EmployeeDefinition import *
def main():
# Create three instances of Employee
emplo1 = Employee('Susan Meyers', '47899',
'Accounting', 'Vice President')
emplo2 = Employee('Mark Jones', '39119',
'IT', 'Programmer')
emplo3 = Employee('Joy Rogers', '81774',
'Manufacturing', 'Engineer')
print(f"Employee 1:{emplo1} ")
print(f"Employee 2:{emplo2} ")
print(f"Employee 3:{emplo3} ")
# Call the main function.
if __name__ == '__main__':
main()
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started