/** HR is a driver to test the SalariedWorker and HourlyWorker classes
 *
 * @author - Nancy Harris and Jimmy Tessitore
 * @version - V1 - 10/1/08
 */
    public class HRV2
   {
       public static void main(String [] args)
      {
      	//Declarations of Workers
         SalariedWorkerV2 amy, jeff;
         HourlyWorkerV2 sam, mary;
         
      	//Instantiations of workers
         amy = new SalariedWorkerV2 ("amy ", "123-45-6789", 1, 1500, "Defense ");
         jeff = new SalariedWorkerV2 ("jeff", "555-12-1212", 3, 1250, "Security");
         sam = new HourlyWorkerV2("sam ", "999-99-9999", 2, 15.50, "Interior");
         mary = new HourlyWorkerV2("mary", "888-88-8888", 2, 12.25, "Treasury");
      
         //Tests pay methods
         System.out.println("Test pay methods");
         System.out.println("amy  " + amy.pay(80));
         System.out.println("jeff  " + jeff.pay(80));
         System.out.println("sam  " + sam.pay(70));
         System.out.println("mary  " + mary.pay(80));
      	
      	//Tests to String
         System.out.println("\nTest toString()");
         System.out.println(amy);
         System.out.println(jeff);
         System.out.println(sam);
         System.out.println(mary);
      
      }//end main
   	
   	
   }//end HRV2
		
