Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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)

image text in transcribed
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

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Data Analysis In Microsoft Excel

Authors: Alex Holloway

1st Edition

B0CCCPKTTX, 979-8852388452

More Books

Students also viewed these Databases questions