title: Beginner Java - Cannot Find Symbol Errors?
body: <p>I've been trying to figure out why this basic java program wont run. I get about 7 cannot find symbol errors. Any help would be much appreciated. I'd love to know what I'm doing wrong.</p>
  
  <p>The program is just some basic calculations that prompt for some input and output data that show what a speeder's fine would be.</p>
  
  <pre><code>import java.io.*;
  import java.util.*;
  
  public class Lab1 {
  public static void main (String args[]) {
  
      // Create a scanner to read from keyboard
      Scanner kbd = new Scanner(System.in);
  
      System.out.print("\nEnter Driver's FIRST Name.");
      String firstName = kbd.next();
  
      System.out.print("\nEnter Driver's LAST Name.");
      String lastName = kbd.next();
  
      System.out.print("\nEnter Driver's Age.");
      int age = Integer.parseInt(kbd.next());
  
      System.out.print("\nEnter the Speed Limit.");
      int speedLimit = Integer.parseInt(kbd.next());
  
      System.out.print("\nEnter Driver's Actual Speed");
      int actualSpeed = Integer.parseInt(kbd.next());
  
      System.out.print("\nDid violation occur in construction zone? (yes/no)");
      String constructionZone = kbd.next();
  
      int speedDifference = (actualSpeed - speedLimit);
  
  
  
      if (speedDifference &lt;= 5) {
          int baseFine = 0;
      }
      else if(speedDifference &gt;= 20) {
          int baseFine = (speedDifference / 5) * 50;
      }
      else {
          int baseFine = (speedDifference / 5) * 30;
      }
  
  
  
      if(constructionZone.equals("yes")) {
          int constructionFine = 10;
      }
      else {
          int constructionFine = 0;
      }
  
  
  
      if(age &lt;= 21 &amp;&amp; speedDifference &gt;= 20) {
          int underageFine = 300;
      }
      else {
          int underageFine = 0;
      }
  
  
  
      int totalFine = baseFine + constructionFine + underageFine;
  
      System.out.println("Last Name: " + lastName);
      System.out.println("First Name: " + firstName);
      System.out.println("Driver Age: " + age);
      System.out.println("Speed Limit: " + speedLimit);
      System.out.println("Actual Speed: " + actualSpeed);
      System.out.println("MPH Over Limit: " + speedDifference);
      System.out.println("Base Fine: $" + baseFine);
      System.out.println("Construction Zone Fine: $" + constructionFine);
      System.out.println("Underage Fine: $" + underageFine);
      System.out.println("Total Fine: $" + totalFine);
  
  }
  }
  </code></pre>