public class Examples2Tester { /* //Test BasicBankAccount public static void main(String[] args) { BasicBankAccount savings = new BasicBankAccount(); BasicBankAccount checking = new BasicBankAccount(2500.0); System.out.println("Savings Account " + savings.getBalance()); System.out.println("Checking Account " + checking.getBalance()); checking.withdraw(800.0); savings.deposit(800.0); System.out.println(); System.out.println("Savings Account " + savings.getBalance()); System.out.println("Checking Account " + checking.getBalance()); } */ //Test HourlyEmployee public static void main(String[] args) { HourlyEmployee jack = new HourlyEmployee(); HourlyEmployee jill = new HourlyEmployee(15.00); System.out.println("Employee Jack " + jack.getTotalHours() + " @ $" + jack.getPayRate()+ "/Hr."); System.out.println("Employee Jill " + jill.getTotalHours() + " @ $" + jill.getPayRate()+ "/Hr."); //Update hours for both employees jack.addHours(8); jill.addHours(8); //Monday jill.addHours(10); //Tuesday jack.addHours(11); jill.addHours(10);//Wednesday jack.addHours(8); jill.addHours(9); //Thursday jack.addHours(8); jill.addHours(7); //Friday System.out.println(); System.out.println("Employee Jack " + jack.getTotalHours() + " @ $" + jack.getPayRate()+ "/Hr." + " Pay $" + jack.grossPay()); System.out.println("Employee Jill " + jill.getTotalHours() + " @ $" + jill.getPayRate()+ "/Hr." + " Pay $" + jill.grossPay()); } }