Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

three of the most common beams in structural engineering are the i-beam,retangul

ID: 3621825 • Letter: T

Question

three of the most common beams in structural engineering are the i-beam,retangular beam, and the cyliundrical beam.in determining the stress a given weight places on a symmetrical beam, an important design parameter is the beams retangular moment of intertia,I, which is typically given in units of in^4. the computation of I depends on the beams geometry, and for the three beams types mentioned the values of I are calculated as such
for an i-beam I=BH^3-bh^3/12
for a retangular beam I=bh^3/12
for a cylindrical beam I= pie(r)^4/4

using this information write a c++ program that prompts the user for the type of beam and the necessary data(based on input)and then computes and displays the beams retangular moment of inertia.

Explanation / Answer

I am assuming that b,h,B,H are all breadths and heights. If they are something else just change the word in the corresponding cout statements. Again the formulas i assumed are : I = (BH^3-bh^3)/12 I = (pie * r^4)/4 If my assumptions are wrong you can easily change the code at the appropriate place. Here it is: #include #include //or #include using namespace std; void i_beam() { double B,H,b,h,result; cout > B; cout > H; cout > b; cout > h; result = (pow(B*H,3)-pow(b*h,3))/12; cout