Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

Python image text in transcribed
image text in transcribed
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

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

OCA Oracle Database SQL Exam Guide Exam 1Z0-071

Authors: Steve O'Hearn

1st Edition

1259585492, 978-1259585494

More Books

Students also viewed these Databases questions