/*
  Lab exam 23/11/2005 18:00-20:00
  Test program Part 1
*/

public class TestVolunteer {
	
  public static void main(String[] args) {
    Volunteer vol = new Volunteer("Mario Rossi");
    System.out.println(vol);

    vol.collect(100);
    System.out.println("After collecting 100");
    System.out.println(vol);

    String name = vol.getName();
    double bonus = vol.getBonus();
    double amount = vol.getAmount();
    System.out.println("Information on the volunteer:");
    System.out.println("Name:   " + name);
    System.out.println("Bonus:  " + bonus);
    System.out.println("Amount: " + amount);

    vol.spend(50);
    System.out.println("After spending 50");
    System.out.println(vol);

    vol.spend(60);
    System.out.println("After spending other 60, nothing should change");
    System.out.println(vol);

    vol.collect(1000);
    System.out.println(
      "After collecting other 1000, the bonus should have increased");
    System.out.println(vol);

    vol.collect(1950);
    System.out.println(
      "After collecting other 1950, the bonus should have increased");
    System.out.println(vol);

    vol.useBonus();
    System.out.println(
      "After using the bonus");
    System.out.println(vol);
  }
}
