/*****************************************************************
** ManagerTest - program to test the Manager class
**
** This program generates the following output:
**
**    Manager: Mr. B. Cheese
**    Salary: $55000.0
**    Bonus: 6.5%
**    Year-end bonus cheque: $3575.0
**	
**    Next year...
**    Salary: $56000.0
**    Bonus: 7.0%
**    Year-end bonus cheque: $3920.00
**
** (c) Scott MacKenzie, 2000                             
******************************************************************/
public class ManagerTest
{
   public static void main(String[] args)
   {
      Manager theBoss = new Manager("Mr. B. Cheese", 55000.00, 6.5);

      System.out.println("Manager: " + theBoss.getName());
      System.out.println("Salary: $" + theBoss.getSalary());
      System.out.println("Bonus: " + theBoss.getBonus() + "%");
      double perk = theBoss.bonusCheque();
      System.out.println("Year-end bonus cheque: $" + perk);
      System.out.println();

      System.out.println("Next year...");
      theBoss.setSalary(56000.00);
      System.out.println("Salary: $" + theBoss.getSalary());

      theBoss.setBonus(7.0);
      System.out.println("Bonus: " + theBoss.getBonus() + "%");

      perk = theBoss.bonusCheque();
      System.out.println("Year-end bonus cheque: $" + perk);
   }
}

