1. int numWords = 0;
    2. double lapTime;
    3. boolean over65;
    4. public static final int HOURS_PER_DAY = 24;
  1. The value is:42
    The next value will be421
  2. Open file C:    emp
    ewfile.txt
    1. a == b
    2. b != c
    3. m > 0 && n > 0
    4. x < 0 || y < 0
    5. !resp.equalsIgnoreCase("no")
    6. s1.compareTo(s2) < 0
  3. (Remember, it's not the indentation that Java pays attention to!)
    1. CD
    2. CD
    3. BCD
    4. ACD
  4. String myWord;
    double myDbl;
    
    System.out.print("Enter a word and a double: ");
    myWord = kbd.next();
    myDbl = kbd.nextDouble();
    kbd.nextLine();
    
    System.out.print("Press Enter...");
    kbd.nextLine();
  5. if (vehicleClass == 1) {
        toll = 3.00;
    } else if (vehicleClass == 2) {
        toll = 4.00;
    } else if (vehicleClass == 3 || vehicleClass == 4) {
        toll = 5.00;
    } else {
        toll = 10.00;
    }
  6. int num;
    int sum = 0;
    Sop("Enter numbers below:");
    num = kbd.nextInt();
    while (num > 0) {
        sum += num;
        num = kbd.nextInt();
    }
    kbd.nextLine();
  7. for (int line = 1; line <= 4; ++line) {
        for (int star = 1; star <= line; ++star) {
            Sop("*");
        }
        Sopln();
    }