Ex 10.12 (Payroll System Modification) Modify the payroll system of Figs. 10.4–10.9 to include private instance variable birthDate in class Employee. Use class Date of Fig. 8.7 to represent an empl

[ad_1]

Ex 10.12  (Payroll Order Modification) Modify the payroll order of Figs. 10.4–10.9 to comprise special case shifting birthDate in assort Employee. Use assort Date of Fig. 8.7 to indicate an employee’s birthday. Add get regularitys to assort Date. Assume that payroll is processed uniformly per month. Create an draw-up of Employee shiftings to hoard references to the manifold employee objects. In a loop, proportion the payroll for each Employee (polymorphically), and add a $100.00 benefit to the person’s payroll aggregate if the general month is the one in which the Employee’s birthday occurs.

Ex: 10.14  (Payroll Order Modification) Modify the payroll order of Figs. 10.4–10.9 to comprise an joined Employee subassort PieceWorker that indicates an employee whose pay is fixed on the number of partys of goods executed. Assort PieceWorker should include special case shiftings wage (to hoard the employee’s wage per party) and partys (to hoard the number of partys executed). Provide a consolidated implementation of regularity rights in assort PieceWorker that proportions the employee’s rights by multiplying the number of partys executed by the wage per party. Create an draw-up of Employee shiftings to hoard references to objects of each consolidated assort in the new Employee hierarchy. For each Employee, exhibit its String indicateation and rights.

Show over

[ad_2]
Source conjoin