// *************************************************************
// Name:         Mohamed Aboutabl
// Date:         10/14/2004
// Assignment:   Lab 16: LazyDays.java
//
// *************************************************************
// References & Acknowledgements: I received no outside help
//
// *************************************************************
// Name of the class:	LazyDays
// Purpose of the class: Demonstrate the use of if-else
// *************************************************************

import cs1.Keyboard ;

public class LazyDays
{
	/**----------------------------------------------------------
	// Test the use of if-else
	// --------------------------------------------------------*/
	public static void main( String[] args)
	{
		// Variables Declarations
		int temperature ;
		char rain ;
		
				
		// First, see if it is raining
		System.out.print("Is it raining right now (Y/N): " );
		rain = Keyboard.readChar() ;
		
		if ( rain == 'Y'  || rain == 'y' )
			System.out.println("I suggest that you Play Bingo in " + 
					"the Activity Center, 2pm today" );
		
		else 
		// Next,	recommend an outdoor activity based on the current temperature
		{
			// Prompt for the current temperature
			System.out.print("Please enter the current temperature: " );
			temperature = Keyboard.readInt() ;

			System.out.print("For today's activity, I recommend ");

			//  Is the temperature too high or too low for an outdoor activity
			if ( temperature > 95   ||  temperature < 20 )
				System.out.println("a visit to our Shops") ;
			
			// So, the temperature is between 20 and 95. Go outdoor
			
			else if ( temperature >= 80 )			// 80 <= temp <= 95
				System.out.println("Swimming");
	
			else if ( temperature >= 60 )			// 60 <= temp < 80
				System.out.println("Tennis");
	
			else if ( temperature >= 40 )			// 40 <= temp < 60
				System.out.println("Golf");
	
			else											// 20 <= temp < 40
				System.out.println("Skiing");
				
		}
	
		System.out.println("\nI hope you enjoy that");
	
	}
	
}