Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

image text in transcribed
image text in transcribed
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. A function to convert the L/H user input value in feet to inches Separate functions to compute the Dmax in all of the four cases. d. e. All of the above functions, with the exception of the validation function must be called or invoked from within int mainO. (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; H110 feet 5. Case: Regular roof beams; L-63 feet

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_2

Step: 3

blur-text-image_3

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

More Books

Students also viewed these Databases questions

Question

Explain the skill/knowledge bonus plan.

Answered: 1 week ago