small Python program (employee salary classes)

Oct 14th, 2015
Price: $20 USD

Question description

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


1.  Source code for the program.

2.  Source code for testing program (see example in c++)


Tutor Answer

(Top Tutor) Daniel C.
School: Boston College

Studypool has helped 1,244,100 students

Review from our student for this Answer

Oct 17th, 2015
"awesome work thanks"
Ask your homework questions. Receive quality answers!

Type your question here (or upload an image)

1826 tutors are online

Brown University

1271 Tutors

California Institute of Technology

2131 Tutors

Carnegie Mellon University

982 Tutors

Columbia University

1256 Tutors

Dartmouth University

2113 Tutors

Emory University

2279 Tutors

Harvard University

599 Tutors

Massachusetts Institute of Technology

2319 Tutors

New York University

1645 Tutors

Notre Dam University

1911 Tutors

Oklahoma University

2122 Tutors

Pennsylvania State University

932 Tutors

Princeton University

1211 Tutors

Stanford University

983 Tutors

University of California

1282 Tutors

Oxford University

123 Tutors

Yale University

2325 Tutors