Question: Python In this assignment you are asked to enhance the #3 to define a class to model the characteristics of a generic employee. The class
In this assignment you are asked to enhance the #3 to define a class to model the characteristics of a generic employee. The class is part of a slightly larger program that incl create some employee objects and test its methods. The name of the class is Employee' and includes the following methods and attributes: n program created in Lab udes code to use the class to Method Name Input/ Attributes Output/ Returns Purpose Constructor sets initial values See belo See below@ None init for all obiect attributes. Displays a readable versio the Employee object Employee data as a printable string one str Hourly rate (float) Calculates and returns the None hourly_rate employee's hourly rate of pay - divides salary by 2080 Returns the employee's current age in years subtracts today's year from birth year, but Today 's accounts for month differences month (int) (i.e. if birth month occurs before and today's today's month, age is current year(int) age r minus birth year, otherwise yea that minus 1) If age > 65, returns Truemonth (int)True or False employee is eligible to retire.and Otherwise, "False can_retire today's ear(int)
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
