/** HR is a driver to test the SalariedWorker and HourlyWorker classes
 *
 * @author Nancy Harris and YOUR NAME HERE
 * @version V2 - YOUR UPDATE DATE HERE
 */
    public class HRV3
   {
       public static void main(String [] args)
      {
			Employee[] staff = new Employee[4];
			
			staff[0] = new SalariedWorker ("amy", "123-45-6789", 1, 1500, "HR");
         staff[1] = new SalariedWorker ("jeff", "555-12-1212", 3, 1250, "IT");
        	staff[2] = new HourlyWorker("sam", "999-99-9999", 2, 12.25, "IT");
         staff[3] = new HourlyWorker("mary", "888-88-8888", 2, 15.50, "PO");
        
         // Print pay information
         System.out.println("Payroll");
			
			for(Employee emp : staff)
         	System.out.printf("%10s: $%.2f\n", emp.getName(), emp.pay());
                
         // Print worker information
         System.out.println("\nEmployee information");
         for (Employee emp : staff)
				System.out.println(emp.toString());
				         
         // Change Mary's exemptions
         staff[3].updateExemptions(5);
         System.out.println("\nAfter change: \n" + staff[3]);
      }
   }
      
