Question: CHALLENGE 2.6.2: Tree height. Simple geometry can compute the height of an object from the object's shadow length and shadow angle using the formula: tangent(angleElevation)
CHALLENGE 2.6.2: Tree height. Simple geometry can compute the height of an object from the object's shadow length and shadow angle using the formula: tangent(angleElevation) - treeHeight/ shadowLength. 1. Using simple algebra, rearrange that equation to solve for treeHeight. (Note: Don't forget tangent) 2. Complete the below code to compute treeHeight. For tangent, use the Math.tan() method, described in the 'math methods' link above. (Notes) 1 import java.util.Scanner; 3 public class TreeHeight { public static void main(String[] args) { Scanner sehr - new Scanner(System.in); double treeHeight: double shadowl.ength; 8 double angleElevation: DILD! 10 11 12 13 15 16 17 } angleElevation='scr.nextDouble(; shadowLength - Schr.nextDouble: /* Your solution goes here. / System.out.println(treeHeight); 14 Java Run
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
