Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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); returnStep by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started