Question: Please use python 2.15.4 Exercise 4: OOP name, 100 * 1. Create a class Employee with 2 attributes provided in the constructor: years_of_service. With one

 Please use python 2.15.4 Exercise 4: OOP name, 100 * 1.

Please use python

2.15.4 Exercise 4: OOP name, 100 * 1. Create a class Employee with 2 attributes provided in the constructor: years_of_service. With one method salary with is obtained by 1500 + years_of_service. 2. Create a subclass Manager which redefine salary method 2500 + 120 * years_of_service. 3. Create a small dictionary-nosed database where the key is the employee's name. Populate the database with: samples = Employee(lucy', 3), Employee('john, 1), Manager("julie', 10), Manager (paul', 3) 4. Return a table of made name, salary rows, i.e. a list of list [[name, salary]] 5. Compute the average salary

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!