Question: zyBooks java Tree Height. Simple geometry can compute the height of an object from the object's shadow length and shadow angle using the formula: tan(angleElevation)
zyBooks java Tree Height.
Simple geometry can compute the height of an object from the object's shadow length and shadow angle using the formula: tan(angleElevation) treeHeight/ shadowLength. Given the shadow length and angle of elevation, compute the tree height. 1 import Java.util.Scanner; 2 import java.lang.Math 4 public class TreeHeight C 5 public static void main(String ares) double trecHeight double shacouLengtn double angleelevation -e.; -. 10 angleElevation .11693706; 8.116936 radians 6.7 degrees shadouLength17.5; 12 13 14 15 16 17 18 19 System.out.print("Tree height: "); System.out.printin(treeeight); return
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
