Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

using python: Studen init sur ed 3. (30 points) Consider the following partial dass definition for an Employee object. class Employee ** Employee Class -

using python:
image text in transcribed
Studen init sur ed 3. (30 points) Consider the following partial dass definition for an Employee object. class Employee ** Employee Class - creates Employee objects current Year=2019 Wholds current year. T int def_init__(sell e num name title="Analyst', year = 0 salary = 40000) selfe_num= stre_num) self names str(name) self.title = strtitle) self start Year year year the employee started with the company self salary salary 13 Add a method called status that takes no parameters and returns the seniority level for the employee object based on the number of years with the company (computed as current year minus the year started). Use these thresholds to return the corresponding string less than 2 years. Trainee 2 to 4 years "Junior Analyst 5 to 10 years: Analyst 11 to 20 years, "Senior Analyst None of the above: unknown 31 124 points) Write the status method here

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

Making Databases Work The Pragmatic Wisdom Of Michael Stonebraker

Authors: Michael L. Brodie

1st Edition

1947487167, 978-1947487161

More Books

Students also viewed these Databases questions