@@ -0,0 +1,2432 @@
+/** A program that calculates ideal body weight given someone's height.%0A */%0A%0Apackage idealbodyweight;%0A%0A/**%0A *%0A * @author k8port%0A */%0Aimport java.util.Scanner;%0Aimport java.io.FileInputStream;%0Aimport java.io.FileNotFoundException;%0A%0Apublic class IdealBodyWeight %7B%0A%0A    /**%0A     * @param args the command line arguments%0A     */%0A    public static void main(String%5B%5D args) %7B%0A        %0A        // declare variables%0A        String name;%0A        int feet, inches;  // for a person's height%0A        Scanner tenneile = new Scanner(System.in);%0A        Scanner captain = new Scanner(System.in);%0A        %0A        // gather user info%0A        System.out.println(%22Please enter your height in first in feet and then %22%0A                + %22in inches.%5CnPut a space between the two variables.%22);%0A        feet = tenneile.nextInt();%0A        inches = tenneile.nextInt();%0A        %0A        // calculate ideal weight   %0A        int ideal = 110 + ((feet - 5) * 110) + (inches * 5);%0A        // output result%0A        System.out.println(%22Your ideal body weight is: %22 + ideal);%0A        %0A        System.out.println(%22Now let's gather info from the database file.%22);%0A        try %7B%0A            captain = new Scanner(new FileInputStream(%22heights.txt%22));%0A            name = captain.nextLine();%0A            feet = captain.nextInt();%0A            inches = captain.nextInt();%0A            ideal = 110 + ((feet - 5) * 110) + (inches * 5);%0A            System.out.printf(%22%25s's ideal body weight at %25d feet and %22%0A                        + %22%25d inches is %25d.%25n%22, name, feet, inches, ideal);%0A            String clear = captain.nextLine();%0A            name = captain.nextLine();%0A            feet = captain.nextInt();%0A            inches = captain.nextInt();%0A            ideal = 110 + ((feet - 5) * 110) + (inches * 5);%0A            System.out.printf(%22%25s's ideal body weight at %25d feet and %22%0A                        + %22%25d inches is %25d.%25n%22, name, feet, inches, ideal);  %0A            clear = captain.nextLine();%0A            name = captain.nextLine();%0A            feet = captain.nextInt();%0A            inches = captain.nextInt();%0A            ideal = 110 + ((feet - 5) * 110) + (inches * 5);%0A            System.out.printf(%22%25s's ideal body weight at %25d feet and %22%0A                        + %22%25d inches is %25d.%25n%22, name, feet, inches, ideal);  %0A        %7D catch (FileNotFoundException e) %7B%0A            System.out.println(%22File not found%22);%0A            System.exit(0);%0A        %7D%0A       %0A    %7D%0A    %0A%7D%0A

Create IdealBodyWeight.java