/*
 *2013-09-08
 *HW: Unit 2 Practice Assignment: Ch4 Exercise 5c
 *Bradley Forney
 *CIS 127
 *Professor: Craig Sharp
 * 
 */
 
import java.util.Scanner;
import java.util.ArrayList;

public class TestSandwich
{
	public static void main(String[] args)
	{
		Scanner keyboard = new Scanner(System.in);
		
		/*
		String breadType;
		String fillingType;
		int breadCalories;
		int fillingCalories;

		System.out.println("What kind of bread do you want? Wheat, White, Rye? ");
		breadType=keyboard.nextLine();
		
		System.out.println("How many calories does "+breadType+" have per slice? ");
		breadCalories=keyboard.nextInt();
		
		System.out.println("What kind of sandwich filling do you want? Cheese, Egg Salad, Salami? ");
		fillingType=keyboard.nextString();
		
		System.out.println("How many calories does "+fillingType+" have per sandwich? ");
		fillingCalories=keyboard.nextInt();
		*/
		
		Array sandwiches = new ArrayList(); //Holds names of sandwiches for the order
		Array calories = new ArrayList();	//Holds calories for each sandwich for the order
		
		
		int choice=-1;

		//Introduction output
		System.out.println("\n"+"Welcome to the Sandwich Shop");
		System.out.println("Our bread available today is:"+"\n");
		System.out.println("1) Wheat"+"\n"+"2) White"+"\n"+"3) Rye"+"\n");
		System.out.println("Our sandwich fillings available today are:"+"\n");
		System.out.println("1) Cheese"+"\n"+"2) Egg Salad"+"\n"+"3) Salami"+"\n");
		
		//***Begin sandwich decisions***
		while (choice<1 || choice>3)
		{ 
			System.out.println("Please choose your first sandwich (type 1-3 only):");
			choice=keyboard.nextInt();
		}
		Sandwich sandwich1 = new Sandwich(choice);//Create object Sandwich 1
		
		choice=-1;//Reset choice for new sandwich
		while (choice<1 || choice>3)
		{ 
			System.out.println("Please choose your second sandwich (type 1-3 only):");
			choice=keyboard.nextInt();
		}
		Sandwich sandwich2 = new Sandwich(choice);//Create object Sandwich 2

		choice=-1; //Reset choice for new sandwich
		while (choice<1 || choice>3)
		{ 
			System.out.println("Please choose your third sandwich (type 1-3 only)");
			choice=keyboard.nextInt();
		}
		Sandwich sandwich3 = new Sandwich(choice);//Create object Sandwich 3
		//***End sandwich decisions***
			
		
		//***Begin sandwich outputs***
		System.out.println("Your first sandwich is: "+sandwich1.getSandwichName()+" and has "+sandwich1.getSandwichCalories()+" calories.");	
		System.out.println("Your second sandwich is: "+sandwich2.getSandwichName()+" and has "+sandwich2.getSandwichCalories()+" calories.");
		System.out.println("Your third sandwich is: "+sandwich3.getSandwichName()+" and has "+sandwich3.getSandwichCalories()+" calories.");
		//***End sandwich outputs***
		
	}
	
	public void breadChoice()
	{
		while (choice<1 || choice>3)
		{ 
			System.out.println("Please choose your second sandwich (type 1-3 only):");
			System.out.println("1) Wheat"+"\n"+"2) White"+"\n"+"3) Rye"+"\n");
			choice=keyboard.nextInt();
		}
		
		
	}
	
	public void fillingChoice()
	{
	}
}