Question: Simple geometry can compute the height of an object from the object's shadow length and shadow angle using the formular tan(angleElevation) = treeHeight / shadowLength

 Simple geometry can compute the height of an object from the

Simple geometry can compute the height of an object from the object's shadow length and shadow angle using the formular tan(angleElevation) = treeHeight / shadowLength 1. Using simple algebra, rearrange that equation to solve for treeHeight (Note: Don't forget tangent) 2. Complete the below code to compute treeHeight. For tangent, use the tan() function, described in the 'math functions" link above (Notes) 1 Winclude 2 Winclude 3 using namespace std; Sint main() 6 double treeHeight; double shadowlength; double angletlevation; cin >> angleElevation; cin >> shadowlength; 11 12 13 Your Solution Boos here cout

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!