(Pipe 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 Figure 6-19). 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 θ + 5 / cos θ, where 0 < θ < π/2.)
We need at least 10 more requests to produce the solution.
0 / 10 have requested this problem solution
The more requests, the faster the answer.