/** HR is a driver to test the SalariedWorker and HourlyWorker classes
 *
 * @author Nancy Harris and Glenn Young
 * @version V1 - 1 October 2008
 */
public class HR
{
	public static void main(String [] args)
	{
		SalariedWorker amy, jeff;
		HourlyWorker sam, mary;
		
		//instantiate each object
		amy = new SalariedWorker ("amy", "123-45-6789", 1, 1500, "Dept1");
		jeff = new SalariedWorker ("jeff", "555-12-1212", 3, 1250,"Dept2");
		sam = new HourlyWorker("sam", "999-99-9999", 2, 15.50,"Dept3");
		mary = new HourlyWorker("mary", "888-88-8888", 2, 12.25,"Dept4");
		
		//test the pay() method from each class
		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));
		
		//test the toString() methods from each class
		System.out.println("\nTest toString()");
		System.out.println(amy);
		System.out.println(jeff);
		System.out.println(sam);
		System.out.println(mary);
		
		//System.out.println(sam.pay(80));
		
	}//end main()
}//end HR
		
	