1.18.2 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...


1.18.2


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.5Tree height: 7.398881327917831


import math


tree_height = 0.0


angle_elev = float(input())
shadow_len = float(input())


''' Your solution goes here '''


print('Tree height:', tree_height)



Jun 07, 2022
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here