small Python program (employee salary classes)

Oct 14th, 2015
SKTFaker
Category:
Programming
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

Submission:

1.  Source code for the program.

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


python.jpg

Tutor Answer

(Top Tutor) Daniel C.
(997)
School: Boston College
PREMIUM TUTOR

Studypool has helped 1,244,100 students

7 Reviews


Summary
Quality
Communication
On Time
Value
kpcutie
Dec 6th, 2016
" Excellent job "
Hemapathy
Nov 22nd, 2016
" all I can say is wow very fast work, great work thanks "
BlueOcean
Nov 9th, 2016
" Awesome! Exactly what I wanted. "
kevin12622
Oct 31st, 2016
" Goes above and beyond expectations ! "
ashleyisgod
Oct 17th, 2016
" Top quality work from this guy! I'll be back! "
likeplum4
Oct 8th, 2016
" Excellent work as usual "
Molly_Moon
Sep 25th, 2016
" AMAZING as always! "
Ask your homework questions. Receive quality answers!

Type your question here (or upload an image)

1830 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