/*
 * AssignmentZero: This class manages two Robotic Squirrels.  One is a
 * cheap Robotic Squirrel and the other is an advanced Robotic Squirrel.
 *
 * -- A. Bolintineanu, May 2001 (modelled on a program by A. Hunter)
 */

public class AssignmentZero {

public static void main (String[] args) {

		// --------------------------------------------------------
		// Instantiate a cheap Robotic Squirrel called 'chip'
		SquirrelSimplex chip = new SquirrelSimplex();

		// Make the cheap Robotic Squirrel pick 5 hazelnuts
		chip.pickHazelnut();		//1 hazelnut
		chip.pickHazelnut();		//2 hazelnuts
		chip.pickHazelnut();		//3 hazelnuts
		chip.pickHazelnut();		//4 hazelnuts
		chip.pickHazelnut();		//5 hazelnuts

		// Extract 3 hazelnuts out of the cheap Robotic Squirrel
		chip.extract(3);

		// Make the cheap Robotic Squirrel pick 2 more hazelnuts
		chip.pickHazelnut();		//1 hazelnut
		chip.pickHazelnut();		//2 hazelnuts

		// Extract 1 hazelnut out of the cheap Robotic Squirrel
		chip.extract(1);

		// Print the number of hazelnuts in the cheap Robotic Squirrel
		// (Output a statement to indicate what you're printing.)
		System.out.print ("Number of hazelnuts present in chip's reservoir: ");
		System.out.println(chip.getNumHazelnuts());

		// --------------------------------------------------------
		// Instantiate an advanced Robotic Squirrel called 'dale'
		SquirrelSapiens dale = new SquirrelSapiens();

		// Set the price of a hazelnut to 20 Martian cents
		dale.setHazelnutPrice(20);

		// Make the advanced Robotic Squirrel pick 15 hazelnuts
		dale.pick(15);

		// Extract 5 hazelnuts out of the advanced Robotic Squirrel
		dale.extract(5);

		// Set the price of a hazelnut to 50 Martian cents
		dale.setHazelnutPrice(50);

		// Extract 2 hazelnuts out of the advanced Robotic Squirrel
		dale.extract(2);

		// Display information about the advanced Robotic Squirrel
		// (Output a statement to indicate what you're printing.)
		System.out.println("Robotic squirrel 'dale':");
		dale.report();
	}
}

