Question: Python Program. PROBLEM DEFINITION: Write a class named Employee that holds the following data about an employee in attributes: name IDnumber department jobTitle The class

Python Program.

PROBLEM DEFINITION: Write a class named Employee that holds the following data about an employee in attributes:

name

IDnumber

department

jobTitle

The class should have 8 methods as follows:

For each attribute, there should be a method that takes a parameter to be assigned to the attribute

For each attribute, there should be a method that returns the attribute Once you have written the class, write a main function that creates three Employee objects. Your main function should then do the following for each of the three objects:

Once you have written the class, write a main function that creates three Employee objects. Your main function should then do the following for each of the three objects:

a. Display a message asking user to enter employee name, ID, department, and title

b. Read employee name into a variable

c. Call the set name method of the first object passing the name

d. Read employee ID into a variable

e. Call the set IDnumber method of the first object passing ID

f. Read employee department into a variable

g. Call the set department method of the first object passing the department

h. Read employee title into a variable

i. Call the set job title method of the first object passing the title

After reading and storing the employee information, the main function should call a function called displayEmployees passing the three objects as arguments. The displayEmployees function should call the methods of the objects that return attributes and display the returned values. The output should be formatted as follows: and only use Input, Processing, and Output, Functions, and Classes and Object-Oriented Programming.

I need this program to be done using Python language.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!