Answered step by step
Verified Expert Solution
Question
1 Approved Answer
(Payroll System Modification) Modify the payroll system That is given in the Codes for Assignment 2 and 3 folder to include private instance variable birthDate
(Payroll System Modification) Modify the payroll system That is given in the "Codes for Assignment 2 and 3" folder to include private instance variable birthDate in class Employee. Use class Date to represent an employees birthday. Add get methods to class Date and replace method toDateString with method toString. Assume that payroll is processed once per month. Create an array of Employee variables to store references to the various employee objects. In a loop, calculate the payroll for each Employee (polymorphically), and add a $100.00 bonus to the persons payroll amount if the current month is the one in which the Employees birthday occurs.( programing language is java)
Employee Salaried Employee Commission Employee HourlyEmployee BasePlusCommission Employee earnings toString Employee abstract firstName lastName social security number: SSN Salaried- Employee weeklySalary salaried employee: firstName lastName social security number: SSN weekly salary: weeklysalary Hourly- Employee if hours 40 wage hours else if hours > 40 40 Wage (hours 40 ) wage 1.5 hourly employee: firstName tastName social security number: SSN hourly wage: wage: hours worked: hours 2 Commission- Employee commissionate grossSales commission employee: firstName lastName social security number: SSN gross sales grossSales: commission rate: commissionate BasePlus- Commission- Employee (comissionate gross Sales baseSalary base salaried commission employee: firstName lastName social security number: 55N gross sales Brass Sales commission rate commissionate base salary basery Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started