Answered step by step
Verified Expert Solution
Link Copied!

Question

00
1 Approved Answer

Question 6: Create an Employee class that contains their employee ID (generated automatically for each student starting at 300 ), and a list of Tasks

image text in transcribed
Question 6: Create an Employee class that contains their employee ID (generated automatically for each student starting at 300 ), and a list of Tasks assigned to them. Their employee ID will not change. The maximum number of Tasks they can be assigned is passed into the constructor as a parameter. - Write a method that returns an Employee's pay based on their hourly rate and hours worked (passed in as parameters). - Write methods that add/remove Tasks to/from their list. - Write a method that prints out their Tasks A Manager is an Employee that is also assigned a team that they oversee. Each team has a name that will be passed as a parameter through the constructor. A Managers is paid the same as other Employees but receive an additional bonus of 10% of their pay. Make use of inheritance-do not re-write code that already exists

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access with AI-Powered 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

Students also viewed these Databases questions