Question

1.18.2: Tree height.

1.18.2: Tree height.

Image transcription text

CHALLENGE ACTIVITY 1.18.2: 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. Sample output with inputs: 0.4 17.5 Tree height: 7. 398881327917831 AWNP import math 1 test tree_height = 0.0 5 angle_elev - float(input()) 6 shadow_len = float(input()) All tests passed 7 8 &quot; Your solution goes here &quot; 9 10 print('Tree height: ', tree_height) Run

...

Solved by verified expert

nec facili

a. Fusce dui lec

llentesque dapibus efficitur laoreet. Nam ris

usce dui lectus, congue vel

congue vel laoreet ac, di

ipsum dolor sit amet, consectetur adipisci

Fusce dui lectus, congue vel laoreet ac, di

risus ante, dapibu

onec aliquet. Lorem ipsum dolor s

Explore over 16 million step-by-step answers from our library

Step-by-step explanation

trices ac magna. Fusce dui lectus, congue vel laoreet ac, dictum vitae odio. Donec aliquet. Lorem ipsum dolo

iscing elit. Nam lacinia pulvinar tortor nec

e vel laoreet ac, dictum vitae odio. Donec aliquet. Lorem ipsum dolor sit amet, consectetur adipiscing elit.

ia pulvinar

ent

o. D

or nec facilisis. Pellentesque

Student reviews
67% (6 ratings)