Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Financial management theory and practice

Authors: Eugene F. Brigham and Michael C. Ehrhardt

12th Edition

978-0030243998, 30243998, 324422695, 978-0324422696

Students also viewed these Programming questions