Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Requirements of the final project: First step, create the classes as described. Create a base class Employee that has the following attributes: o Employee s

Requirements of the final project:
First step, create the classes as described.
Create a base class Employee that has the following attributes:
o Employees name (string)
o Employees address (string)
o Vehicle data (Vehicle object).
The child classes FullTimeEmployee, HourlyEmployee and Consultant that inherit from
Employee class have the following additional properties
o FullTimeEmployee salary (float).
o HourlyEmployee - hoursWorked (int) and hourlyRate (float).
o Consultant hoursWorked (int) and ProjectType (valid values are 1,2, and 3).
The child class Management inherits from both FullTimeEmployee class and Consultant
class. Management class has inherited three attributes (i.e. name, address, and vehicle object)
indirectly from Employ class, one attribute (i.e. salary) from FullTimeEmployee class and
two attributes (i.e. hours worked and project type) from Consultant class.
All these classes have the __init__ method as well as the get, set, and str methods. In
addition, they have additional methods, i.e. compute_compensation() and
compute_reimbursement() as described below. Function compute_compensation() returns
weekly compensation and function compute_reimbursement() returns weekly reimbursement.
Compensation (weekly) for any employee type doesnt call for outside information. In
other words, all information needed is available after initializing/creating an object.
Compensation is to be computed as follows:
o FullTimeEmployee: Compensation is salary minus taxes and taxes are calculated based
on the tax rate in the table below. Please notice that this format calculates the annual
Hongchang Wang Spring 2024 MIS 6382
JSOM, UTD Due by 11:55 pm 05/10/2024
3
compensation and what this function needs to return is the weekly compensation
(assuming there are 52 weeks per year). This requirement is different from the one in
HW4.
Salary Tax Rate
$25,000 or less 18%
> $25,000 and <= $55,00018% for the first 25,000,28% for the rest
> $ 55,00018% for the first 25,000,28% for the amount
between 25,000 and 55,000, and 33% for the
rest
For example, someone whose salary is $123,000 will pay 18% on the first 25,000,28% on the
next (55,00025,000) and 33% on the remaining (123,00055,000)
o HourlyEmployee: Compensation is hoursWorked times hourlyRate for the first 40 hours.
For hours in excess of 40 hours, the hourly rate is 1.8 times the regular hourly rate. The
sum of the two is weekly compensation.
For example, someone whose hourlyRate is $12.50 and who has worked 48 hours will
earn 40* $12.5+8* $12.5*1.8.
o Consultant: Compensation is HourlyRate times the hours worked (this is weekly
compensation). HourlyRate for Consultants is computed based on the ProjectType as
given in the table below:
Project Type HourlyRate
1 $55.00
2 $70.00
3 $85.00
o Management: Total weekly compensation is the sum of the compensation from
FullTimeEmployee role (i.e. from salary) and the compensation from Consultant role (i.e.
from hours worked on a project).
Reimbursement (weekly) for every employee type calls for outside information as input
argument(s). In other words, the information is not provided when initializing/creating an
object and there is no corresponding attribute. Reimbursement is to be computed as follows:
Hongchang Wang Spring 2024 MIS 6382
JSOM, UTD Due by 11:55 pm 05/10/2024
4
o FullTimeEmployee: This method will take an argument, which is the annual expense. If
the annual expense is no more than $10,000, then the total reimbursement will be equal to
the annual expense. If the annual expense is more than $10,000, then the total
reimbursement will be equal to $10,000 plus 50 percent of the amount of the annual
expense that exceeds $10,000. Please note that this format calculates the annual
reimbursement, and what this function needs to return is the weekly reimbursement
(assuming there are 52 weeks per year). For example, someone whose annual expense is
$12,000 will get $10,000 plus 50% on the remaining ($12,000 $10,000), totaling
$11,000.
Expense Reimbursement Rate
$10,000 or less 100%
> $10,000100% for the first $10,000,50% for the rest
o HourlyEmployee: This method will take an argument, which is the weekly expense. If
the weekly expense is no more than $100, then the total reimbursement will be equal to
the weekly expense. If the weekly expense exceeds $100, then the total reimbursement
will be equal to $100. For example, someone whose weekly expense is $80 will get a
weekly compensation of $80, while someone whose weekly expense is $120 will get a
weekly compensation of $100.

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_2

Step: 3

blur-text-image_3

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

Advances In Databases And Information Systems Uropean Conference Adbis 2020 Lyon France August 25 27 2020 Proceedings Lncs 12245

Authors: Jerome Darmont ,Boris Novikov ,Robert Wrembel

1st Edition

3030548317, 978-3030548315

More Books

Students also viewed these Databases questions