import java.util.Scanner;

class Exam1 {
	public static void main(String[] args) {

		System.out.println("Exam 1");
		System.out.println("------");

		Scanner kb = new Scanner(System.in);

		System.out.println("Please enter a state name");
		String name = kb.nextLine();

		boolean match = (name.equals("Virginia")) ? true : false;

		char firstInitial = name.charAt(0);

		System.out.println("Please enter height, weight, and length");
		double height = kb.nextDouble();
		double width = kb.nextDouble();
		double length = kb.nextDouble();

		double volume = height * width * length;
		System.out.println("volume: " + volume);

		double largestDimension = height;
		if (width > largestDimension) {
			largestDimension = width;
		}
		if (length > largestDimension) {
			largestDimension = length;
		}

		int i = 0;
		while(i <= 25) {
			System.out.print(i + " ");
			i++;
		}
		System.out.println();
		
		for(i = 0; i <= 25; i++) {
			System.out.print(i + " ");
		}
		System.out.println();

		int count = 0;
		while(true) {
			System.out.println("Please enter an integer");
			int input = kb.nextInt();
			if(input == 0) {
				break;
			}
			count++;
		}
		System.out.println("count: " + count);
	}
} 
