Problem

(Civil eng.) Write a C++ program to calculate and display the maximum bending moment, M, o...

(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

Step-by-Step Solution

Request Professional Solution

Request Solution!

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.

Request! (Login Required)


All students who have requested the solution will be notified once they are available.
Add your Solution
Textbook Solutions and Answers Search
Solutions For Problems in Chapter 3.2