Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

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- 26). 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 y + 5 / cos y, where 0 < y < p/ 2.)

Step by Step Solution

3.40 Rating (159 Votes )

There are 3 Steps involved in it

Step: 1

Code include stdafxh include incl... blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Document Format ( 2 attachments)

PDF file Icon
609604e2d019d_26511.pdf

180 KBs PDF File

Word file Icon
609604e2d019d_26511.docx

120 KBs Word File

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Elementary Surveying An Introduction to Geomatics

Authors: Charles D. Ghilani, Paul R. Wolf

13th Edition

978-0132554343, 132554348, 978-0273751441

More Books

Students also viewed these Programming questions

Question

What do you think?

Answered: 1 week ago