(Civil eng.) Write a C++ program to calculate and display the maximum bending moment, M, of a beam that’s supported on both ends (see Figure). The formula is M = XW (L - X) / L, where X is the distance from the end of the beam that a weight, W, is placed, and L is the beam’s length. You program should produce this display:
The maximum bending moment is xxxx.xxxx
The xxxx.xxxx denotes placing the calculated value in a field wide enough for four places to the right and left of the decimal point. For your program, assign the values 1.2, 1.3, and 11.2 to X, W, and L.
Figure: Calculating the maximum bending moment
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.