// *************************************************************
// Name:         Mohamed Aboutabl
// Date:         10/12/2004
// Assignment:   Lab 15: BooleanTester.java
//
// *************************************************************
// References & Acknowledgements: I received no outside help
//
// *************************************************************
// Name of the class:	BooleanTester
// Purpose of the class: Evaluate some Boolean Expressions
// *************************************************************

import cs1.Keyboard ;

public class BooleanTester
{
	/**----------------------------------------------------------
	// Test drive the Name class and its member methods
	// --------------------------------------------------------*/
	public static void main( String[] args)
	{
		// Variables Declarations
		int bluebird , alligator , petunia ;
		double monkey , rose ;
		char pheasant , mushroom ;
		
		boolean result ;
		
		// Initialize the variabes
		bluebird 	= 25 ;
		monkey 		= 25.33 ;
		alligator 	= 88 ;
		petunia 		= 92 ;
		rose 			= 125.00 ;
		pheasant	 	= 'X' ;
		mushroom 	= 'Z' ;					
		
		// Evaluate each Boolean expression
		result = 98 == petunia ;
		System.out.println("a) The expression '98 == petunia'  is " 
			+ result );
		
		result = bluebird >= monkey ;
		System.out.println("b) The expression 'bluebird >= monkey' is " 
			+ result );
		
		result = petunia + rose < alligator * 3 ;
		System.out.println("c) The expression 'petunia + rose < alligator * 3' is "
			 + result );
		
		result = bluebird == monkey ;
		System.out.println("d) The expression 'bluebird == monkey' is " 
			+ result );
		
		result = alligator % 3 != rose / 40 ;
		System.out.println("e) The expression 'alligator % 3 != rose / 40' is " 
			+ result );
		
		result = bluebird == (rose * 2) - 225 ;
		System.out.println("f) The expression 'bluebird == (rose * 2) - 225' is " 
			+ result );
		
		result = mushroom >= pheasant ;
		System.out.println("g) The expression 'mushroom >= pheasant' is " 
			+ result );
		
		result = 16 + 25 / 5 % 2 > 17 ;
		System.out.println("h) The expression '16 + 25 / 5 % 2 > 17' is " 
			+ result );
		
		result = alligator % 5 / 3 < 0 ;
		System.out.println("i) The expression 'alligator % 5 / 3 < 0' is " 
			+ result );
								
	}
	
}