Question: CHALLENGE 29.2: Tree height ACTIVITY Simple geometry can compute the height of an object from the object's shadow length and shadow angle using the formula

 CHALLENGE 29.2: Tree height ACTIVITY Simple geometry can compute the height

CHALLENGE 29.2: Tree height ACTIVITY Simple geometry can compute the height of an object from the object's shadow length and shadow angle using the formula tangent(angleElevation) = treeHeight / shadowength 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 4 public static void main(String [] args) f Scanner scnr new Scanner(System.in); double treeHeight; double shadowLength; double angleElevation; angleElevation-scnr.nextDouble) shadowLength -scnr.nextDouble) 10 12 14 16 Your solution goes here System.out.println (treeHeight); 17 Run

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!