Make a program to compute the ladder length.

C++ for Engineers and Scientists
4th Edition
ISBN:9781133187844
Author:Bronson, Gary J.
Publisher:Bronson, Gary J.
Chapter14: Numerical Methods
Section14.4: The Secant Method
Problem 3E
icon
Related questions
Question

C Programming "Functions"

(See Fig. 5.1) A student is trapped in a room of a burning building. How long should a
ladder be in order for a fireman to reach him through the window located at the 4th floor?
The window is 8 ft high and the ladder's base must be 6 ft from the edge of the building
since there is an obstruction. Make a program to compute the ladder length.
Hint: Use pow(x,y) and sqrt(x) functions to apply Pythagorean's Theorem of Fig. 5.2
Hypotenuse (H)
8 ft
Opposite (O)
Angle
90
Adiacent (A)
6 ft
Fig. 5.1 Ladder
Fig. 5.2 Pythagorean Theorem: H² = A? + O?
Transcribed Image Text:(See Fig. 5.1) A student is trapped in a room of a burning building. How long should a ladder be in order for a fireman to reach him through the window located at the 4th floor? The window is 8 ft high and the ladder's base must be 6 ft from the edge of the building since there is an obstruction. Make a program to compute the ladder length. Hint: Use pow(x,y) and sqrt(x) functions to apply Pythagorean's Theorem of Fig. 5.2 Hypotenuse (H) 8 ft Opposite (O) Angle 90 Adiacent (A) 6 ft Fig. 5.1 Ladder Fig. 5.2 Pythagorean Theorem: H² = A? + O?
Expert Solution
steps

Step by step

Solved in 2 steps with 1 images

Blurred answer
Knowledge Booster
Time complexity
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
C++ for Engineers and Scientists
C++ for Engineers and Scientists
Computer Science
ISBN:
9781133187844
Author:
Bronson, Gary J.
Publisher:
Course Technology Ptr