Question: Python In this assignment you are asked to enhance the Python program created in Lab #3 to define a class to model the characteristics of
In this assignment you are asked to enhance the Python program created in Lab #3 to define a class to model the characteristics of a generic employee. The class is part of a slightly larger program that includes code to use the class to create some employee objects and test its methods. The name of the class is Employee' and includes the following methods and attributes: Method Name Purpose Attributes onstructor sets initial values r all init See below@ isplays a readable version trheEmployee object Hourly rat (float) alculates and returns the hourly rate ee's hourly rate of pay ivides salary by 2080 the employee's current in years subtracts today's ear from birth year, but Today for month differences month int (int) i.e. if birth month occurs before and today's y's month, age is current yeanint) minus birth year, otherwise t minus o d ay If age > 65, returns True" (int)True or False retire employee is eligible to retire r.and today therwise, False int) Attributea empl num str E+5 str name "clast name> birth month er in range 1 to 12 int 4 digits, range 1800 and above Is this a currently enrolled student? y I salary: integer in range 0 birth year int job title str Int 1000000
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
