Question: QUESTION 2 Part 1: Part 2: Part 3: Part 4: Part 5: CHALLENGE CCTITY2.10.2: Tree height. Simple geometry can compute the height of an object

QUESTION 2

Part 1:

QUESTION 2 Part 1: Part 2: Part 3: Part 4: Part 5:

Part 2:

CHALLENGE CCTITY2.10.2: Tree height. Simple geometry can compute the height of an

Part 3:

object from the object's shadow length and shadow angle using the formula

Part 4:

tan(angleElevation) treeHeight / shadowLength 1. Using simple algebra, rearrange that equation to

Part 5:

solve for treeHeight. 2. Write a statement to assign treeHeight with the

CHALLENGE CCTITY2.10.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 1. Using simple algebra, rearrange that equation to solve for treeHeight. 2. Write a statement to assign treeHeight with the height calculated from an expression using angleElevation and shadowLength. (Notes) 1 #include 2 > #include math.h 1 test passed 4 int main(void) double treeHeight; double shadowLength; 5 All tests passed 7 double angleElevation; g 10 scanf("% f", scanf("%lf", &angleElevation); &shadowLength); 12/* Your solution goes here */ 13 14 printf"%lf n", treeHeight); 15 16 17 return 0

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!