//Eating.java
//Scott Dyl
//9 July 2008
//UCF BHCSI 2008 Day 3

import java.util.Scanner;

public class Eating {
	
	public static void main(String args[]) {
		
		final int b_time = 7;
		final int l_time = 12;
		final int d_time = 7+12;
		
		Scanner input = new Scanner(System.in);
		
		int time;
		boolean am;
		
		System.out.println("Looks like you are eating!");
		
		System.out.print("What time is it?  ");
		time = input.nextInt();
		
		System.out.print("Is it AM? Answer true or false: ");
		am = input.nextBoolean();
		
		//there is a bug here which will (incorrectly) add 12 to noontime!
		if(!am)
			time = time + 12;
		
		if(time == b_time)
			System.out.println("You are (hopefully) eating breakfast!");
		
		else if(time == l_time)
		{
			System.out.println("You are (hopefully) eating lunch!");
		}
		
		else if(time == d_time)
			System.out.println("You are (hopefully) eating dinner!");
		
		else
			System.out.println("You are snacking...fatty!");
			
			//this is improperly indendted and will ALWAYS print! 
			System.out.println("does this print?");
		
	}//end main
	
}//end Eating