/** HR is a driver to test the SalariedWorker and HourlyWorker classes
 *
 * @author Nancy Harris and YOUR NAME HERE
 * @version V1 - YOUR UPDATE DATE HERE
 */
public class HR
{
	public static void main(String [] args)
	{
		SalariedWorker amy, jeff;
		HourlyWorker sam, mary;
		
		amy = new SalariedWorker ("Groceries", "amy", "123-45-6789", 1, 1500);
		jeff = new SalariedWorker ("Auto", "jeff", "555-12-1212", 3, 1250);
		sam = new HourlyWorker("Stock", "sam", "999-99-9999", 2, 15.50);
		mary = new HourlyWorker("Cashier", "mary", "888-88-8888", 2, 12.25);
			//intializing four workers, two salaried, two hourly
			//and passing in the appropriate parameters
		
		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(85));
		System.out.println("mary " + mary.pay(80));
			//printing out the amount each worker received
			//based on the hourage
		
		System.out.println("\nTest toString()");
		System.out.println(amy);
		System.out.println(jeff);
		System.out.println(sam);
		System.out.println(mary);
			//printing out the information for each
			//worker

		
	}
}
		
	