@@ -0,0 +1,2765 @@
+/** A program to calculate the estimated height of a child based on the heights%0A *  of the parents or persons contributing genes. Program assumes that a child %0A *  is made from one male and one female. %0A */%0A%0Apackage howtallwillmykidbe.java;%0A%0A/**%0A *%0A * @author k8port%0A */%0Aimport java.util.Scanner;%0A%0Apublic class HowTallWillMyKidBeJava %7B%0A%0A    /**%0A     * @param args the command line arguments%0A     */%0A    %0A    %0A    public static void main(String%5B%5D args) %7B%0A        %0A        // instance variables%0A        /** Scanner object to gather input from the console */%0A        Scanner scan = new Scanner(System.in);%0A        /** flag is set to true if child is male */%0A        boolean aBoy;%0A        /** height in inches of each parent */%0A        int maHi, paHi; %0A        /** holds height inputs */%0A        int ft, in;%0A        /** variables used to output estimated height of the child */%0A        int babyFt, babyIn;%0A        /** flag to determine whether to keep using or stop - default to true */%0A        boolean use = true;%0A        System.out.println(%22This program will calculate the adult height of your %22%0A                        + %22child. %22);%0A        do %7B            %0A            // gather input from user%0A            System.out.println(%22Enter the height of the father in feet and inches.%22%0A                        + %22%5CnUse a space between each value.%22);%0A            ft = scan.nextInt();%0A            in = scan.nextInt();%0A            paHi = (ft * 12) + in; // calculate height in inches%0A            System.out.println(%22Father is %22 + paHi + %22 inches.%22);%0A            %0A            System.out.println(%22Now enter height of the mother.%22);%0A            ft = scan.nextInt();%0A            in = scan.nextInt();%0A            maHi = (ft * 12) + in; // calculate height in inches%0A            System.out.println(%22Mother is %22+ maHi + %22 inches.%22);%0A            %0A            System.out.println(%22True or false: My child is a boy.%22);%0A            aBoy = scan.nextBoolean();%0A            System.out.println(%22My child is a boy: %22 + aBoy);%0A            %0A            System.out.println(%22Calculating height of your child...%22);%0A            if (aBoy) %7B%0A                babyIn = (int) (paHi * 13) / 12;%0A                babyIn += maHi;%0A                babyIn /= 2;%0A            %7D %0A            else %7B %0A                babyIn = (int)(maHi * 12) / 13;%0A                babyIn += paHi;%0A                babyIn /= 2;%0A            %7D%0A            %0A            // convert to feet and inches%0A            babyFt = babyIn / 12;%0A            babyIn %25= 12;%0A            System.out.printf(%22Your child is estimated to be %25d %25d tall.%25n%22,babyFt, babyIn);%0A            System.out.println(%22Would you like to perform another estimation?%22);%0A            use = scan.nextBoolean();%0A        %7D while (use);%0A        %0A        %0A        %0A    %7D%0A    %0A%7D%0A

Create HowTallWillMyKidBe.java