Question: Please code this in c++ and add a psuedocode 2. Three commonly used beams in structural engineering are the I-beam, rectangular beam, and cylindrical beam.
Please code this in c++ and add a psuedocode

2. Three commonly used beams in structural engineering are the I-beam, rectangular beam, and cylindrical beam. The beam's moment of inertia, I (you can think of it as resistance to bending based on size and shape) is given below. Moment of inertia has units of in 4 and all dimensions are in inches. r is the radius of the cylindrical beam. Write a C++ program(using a switch-case structure) that prompts the user for the beam type, and all the necessary data to calculate I, and returns the following: "Based of the data supplied, the moment of inertia of the beam is (in4) Set the precision to the hundredths position. For the video run two test cases: Case 1: I-beam, H=6in,h=4in,B=4in,b/2=1in Case 2: Cylindrical beam, r=5 in
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
