Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

In Civil/Structural engineering, the concept of Deflection is known as the bending caused by loading. The allowable deflection is usually expressed in terms of fraction

In Civil/Structural engineering, the concept of Deflection is known as the bending caused by loading. The allowable deflection is usually expressed in terms of fraction of the span (length or height) in inches. All structural materials deflect under a given amount of load. The magnitude of such deflection depends on the amount of load applied, the type of material used, span of the material (its length/height), and so forth. Typically for better performing floors, roofs, or walls, a minimum amount of deflection is desired. For example, the maximum allowable deflection (Dmax) of a 12 feet span exterior wall beam with plaster finish is computed as (H/360), where H is the length of beam in inches and yields a Dmax output of 0.4 inches. The maximum allowable deflection of a beam depends on its function. For example, for a regular roof beam, Dmax = L / 180, where L is the length of the beam in inches. A comprehensive list of allowable deflection computation formulas for different structural elements is given in the table below: Structural Element type Allowable Deflection (computed in inches) Interior walls and partitions H/180 Exterior walls with plaster finish H/360 Regular roof beams L/180 All other structural elements L/240 Where L is the span length of the beam and H is its span height in inches. Using these formulas, write a C++ program which will compute and print the maximum deflection (Dmax) of a beam given its structural element type and length (or height) of beam as user input. Note that the user input of length or height of the beam will be in feet, whereas the options for the structural element type must be a character encoding. Your program should be written using functions and the following functionalities must be present in your program: a. A function to receive length (L) or height (H) of the beam from the user. b. A function to receive the structural element type character option input from the user. c. Two separate validation functions for each of the two inputs. The input for L/H should be greater than 10 feet, and the character option input should be one of the four valid characters that you have used in your program. If either one (or both) of the inputs are invalid, your program should ask the user to re-enter a valid input. d. A function to convert the L/H user input value in feet to inches. e. Separate functions to compute the Dmax in all of the four cases. All of the above functions, with the exception of the validation function must be called or invoked from within int main(). (If you choose, you may call the validation function from inside int main() as well). In addition to the above, you may use any other function that you may deem appropriate for your program. You can use call-by-value or call-by-reference as per your choice. There are no specific restrictions to the use of loops; you may use any loop syntax of your choosing (while, do-while, or for loops). Finally, your program should be able to run as many times as the user wants. Input Cases: 1. An input case of your choosing to show that your input validation operations works properly. 2. Case: All other structural elements; L = 45 feet 3. Case: Exterior walls with plaster finish; H = 73 feet 4. Case: Interior walls and partitions; H = 110 feet 5. Case: Regular roof beams; L = 63 feet

This is a beginners question and should use simple and , and std.

Step by Step Solution

There are 3 Steps involved in it

Step: 1

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

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

AWS Certified Database Study Guide Specialty DBS-C01 Exam

Authors: Matheus Arrais, Rene Martinez Bravet, Leonardo Ciccone, Angie Nobre Cocharero, Erika Kurauchi, Hugo Rozestraten

1st Edition

1119778956, 978-1119778950

More Books

Students also viewed these Databases questions