Modify the Payroll system to include an additional Employee subclass PartsWorker that represents an employee whose pay is based on the number of pieces of merchandise produced. For example if the employee earns 5 for each part produced and he/she produces 20 parts then total payment is 100. This category of employee also has a bonus incentive scheme. If the employee produces more than a certain number of pieces then a standard bonus is added to their total payment. Class PartsWorker should contain private variables to store payment per piece, the number of pieces produced, the fixed bonus amount and the number of pieces required before a bonus is applied. Provide a concrete implementation of earnings in class PartsWorker that calculates the employee's earnings appropriately. Add two other methods to the PartsWorker class that you think might be useful. Provide a separate class to test the functionality of the PartsWorker class.

Academic Honesty!
It is not our intention to break the school's academic policy. Posted solutions are meant to be used as a reference and should not be submitted as is. We are not held liable for any misuse of the solutions. Please see the frequently asked questions page for further questions and inquiries.
Kindly complete the form. Please provide a valid email address and we will get back to you within 24 hours. Payment is through PayPal, Buy me a Coffee or Cryptocurrency. We are a nonprofit organization however we need funds to keep this organization operating and to be able to complete our research and development projects.