Question: Can you please write a C++ program in codeblocks for this problem? thanks. al eng.) a. The maximum allowable deflection of a beam depends on
Can you please write a C++ program in codeblocks for this problem? thanks.

al eng.) a. The maximum allowable deflection of a beam depends on its function. For a floor, the typical maximum allowable deflection, in inches, is Dmax = L / 240, and for a roof beam, Dmax - L/180, where L is the length of the beam in inches. Using these formulas, write and test a function named maxDeflect() that accepts the length of a beam, in feet, and the type of beam (floor or roof) as a character code and returns the maximum allowable deflection lude the function written in Exercise 9a in a working program. Make sure your function is called from main() and returns a value to main() correctly. Have main() use a cout statement to display the returned value. Test the function by passing various data to it
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
