(Structural eng.) Three of the most commonly used beams in structural engineering are the I-beam, rectangular beam, and cylindrical beam, shown in Figures through. In determining the stress a given weight places on a symmetrical beam, an important design parameter is the beam’s rectangular moment of inertia, I, which is typically given in units of in4. The computation of I depends on the beam’s geometry, and for the three beam types shown, the values of I are calculated as follows:
For an I-beam:
where all measurements are in inches
For a rectangular beam: 
For a cylindrical beam: 
Figures through shows the variables b, h, B, and r. Using this information, design, write, compile, and run a C++ program that prompts the user for the type of beam and the necessary data (based on the input), and then computes and displays the beam’s rectangular moment of inertia.
Figure 1: An I-beam

Figure 2: A rectangular beam

Figure 3: A cylindrical beam

We need at least 10 more requests to produce the solution.
0 / 10 have requested this problem solution
The more requests, the faster the answer.