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 " Your solution goes here " 9 10 print('Tree height: ', tree_height) Run
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
Unlock full access to Course Hero
Explore over 16 million step-by-step answers from our library
Subscribe to view answertrices 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
nec facili
facilisis. Pel
usce dui lectus, congue vel
congue vel laoreet ac, di
Fusce dui lectus, congue vel laoreet ac, di
onec aliquet. Lorem ipsum dolor s
consectetur adipiscing elit. Nam lacinia pulvinar tortor nec facilisis. Pellentesque dapibus efficiturUnlock full access to Course Hero
Explore over 16 million step-by-step answers from our library
Subscribe to view answer