Question: i need to answer this code in python. this needs to work with other numbers too CHALLENGE ACTIVITY 3.9.2: Tree height Simple geometry can compute
CHALLENGE ACTIVITY 3.9.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 import math 3 tree_height = 0.0 lalia 5 ongle_elev - float(input) 6 shadow.len - float(input) 8 print('Tree height:', tree_height) Run X Testing with inputs: 0.417.5
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
