-1

Problem requires TRIGONOMETRY: A pipe is to be carried around the right-angled corner of two intersecting corridors. Suppose that the widths of the two intersecting corridors are 5 feet and 8 feet (see below figure). Your objective is to find the length of the longest pipe, rounded to the nearest foot, that can be carried level around the right-angled corner.
Write a program that prompts the user to input the widths of both of the hallways. The program then outputs the length of the longest pipe, rounded to the nearest foot, that can be carried level around the right-angled corner. (Note that the length of the pipe is given by l = AB + BC = 8 / sin

Votes + Comments
lazy homework kiddo...
3
Contributors
3
Replies
23
Views
2 Years
Discussion Span
Last Post by Schol-R-LEA
0

good luck with your homework.

Note that you need to take the diameter of the pipe into consideration, not just the length.
And that the pipe probably should not hit the walls to prevent damage.

-1

Please help me get the right codes for c plus plus i need it right now

0

Assuming you aren't being required to write your own trig functions - a daunting task - then the functions you want are in the legacy C library header, <cmath>. That's about as much assistance as we can give, however, until you have demonstrated some effort on your own part.

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.