Answered step by step
Verified Expert Solution
Link Copied!

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)

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

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

Step: 3

blur-text-image

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

Database Programming Languages 12th International Symposium Dbpl 2009 Lyon France August 2009 Proceedings Lncs 5708

Authors: Philippa Gardner ,Floris Geerts

2009th Edition

3642037925, 978-3642037924

More Books

Students also viewed these Databases questions

Question

LO2 Explain the major laws governing employee compensation.

Answered: 1 week ago