Answer & Explanation:In this problem, you will build three small classes based on
the person. The three classes are: Employee, HourlyEmployee, and
SalariedEmployee. Implement this program using Python.
An employee has an
employee’s name (inherited from the class person), an annual salary, a hired
date that gives the year, month, and date that the employee got hired, and a
social security number. Choose appropriate data types for this information.
HourlyEmployee and SalariedEmployee are derived from Employee. The difference
between HourlyEmployee and SalariedEmployee is the way that the salary is
calculated. For HourlyEmployee, salary = number of hours worked * hourly rate;
for SalariedEmployee, salary = annual salary + bonus. To accommodate the
calculation of salary, HourlyEmployee and SalariedEmployee need additional data
members, including number of hours worked, hourly rate, or bonus.
Program design requirement:
1. Be sure your classes have a reasonable set of
constructors, accessor methods, and mutator methods so that object states can
be manipulated.
2. Be sure to
demonstrate method overloading and method overridden in your classes.
3. Be sure to
demonstrate the appropriate use of access modifiers for class and its members.
4. You may use
abstract method.
5. Be sure to
document your source code
Submission:
1.
Source code for the
program.
2.
Source code for testing
program (see example in c++)
python.jpg
Unformatted Attachment Preview
…
Purchase answer to see full
attachment
You will get a plagiarism-free paper and you can get an originality report upon request.
All the personal information is confidential and we have 100% safe payment methods. We also guarantee good grades
Delivering a high-quality product at a reasonable price is not enough anymore.
That’s why we have developed 5 beneficial guarantees that will make your experience with our service enjoyable, easy, and safe.
You have to be 100% sure of the quality of your product to give a money-back guarantee. This describes us perfectly. Make sure that this guarantee is totally transparent.
Read moreEach paper is composed from scratch, according to your instructions. It is then checked by our plagiarism-detection software. There is no gap where plagiarism could squeeze in.
Read moreThanks to our free revisions, there is no way for you to be unsatisfied. We will work on your paper until you are completely happy with the result.
Read moreYour email is safe, as we store it according to international data protection rules. Your bank details are secure, as we use only reliable payment systems.
Read moreBy sending us your money, you buy the service we provide. Check out our terms and conditions if you prefer business talks to be laid out in official language.
Read more