In this app, you will modify the payroll system code provided to you with this assignment on Blackboard
in the zipped file named Starter Code. Using code examples in 10. Object-Oriented Programming –
Polymorphism and Interfaces slides, this should not be too complicated.
• Add a private instance variable birthDate to the Employee class.
• Use class Date – also provided to you with this assignment on Blackboard – to represent an employee’s
birthday.
• Add get methods to class Date.
• 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
person’s payroll amount if the current month is the one in which the Employee’s birthday occurs.
• Use the sample output provided to test your app.
Submit your .java files on Blackboard as before. DO NOT INCLUDE THE OUTPUT, .java~ or .class
files!
Reviews
There are no reviews yet.