@@ -0,0 +1,1156 @@
+package WarmUp;%0A%0Aimport java.util.Scanner;%0A%0A/**%0A * Created by zuhayrelahi1 on 4/11/15.%0A */%0Apublic class UtopianTree %7B%0A%0A    /*%0A     * Calculate the height of the tree%0A     *%0A     * @param numOfGrowthCycles - # of growth cycles%0A     */%0A    public static int calcTreeHeight(int numOfGrowthCycles)%7B%0A        //calculate the height of the tree%0A        int treeHeight = 1;%0A%0A        //no growth cycles%0A        if(numOfGrowthCycles == 0)%7B%0A            return treeHeight;%0A        %7D%0A%0A        for(int i = 1; i %3C= numOfGrowthCycles; i++)%7B%0A            //double the height if we are on an odd growth cycle%0A            if(i %25 2 != 0)%7B%0A                treeHeight = treeHeight * 2;%0A            %7Delse %7B%0A                //increment the height%0A                treeHeight += 1;%0A            %7D%0A        %7D%0A        return treeHeight;%0A    %7D%0A%0A    //test function%0A    public static void main(String args%5B%5D)%7B%0A        Scanner sc = new Scanner(System.in);%0A        int numOfTestCases = sc.nextInt();%0A%0A        for(int i = 0; i %3C numOfTestCases; i++)%7B%0A            int numOfTrees = sc.nextInt();%0A            System.out.println(calcTreeHeight(numOfTrees));%0A        %7D%0A        sc.close();%0A    %7D%0A%7D%0A

Create UtopianTree.java