(Hydraulics) The mass, m2, that can be lifted by the system shown in Figure 3.14 can be determined by this formula:

m2 is the mass (kg) placed on the second piston.
m1 is the mass (kg) placed on the first piston.
r2 is the radius of the piston supporting mass m2 (cm).
r1 is the radius of the piston supporting mass m1 (cm).
Figure: A hydraulic piston system

Using this formula, write, compile , and run a C++ program that displays the following prompts:
Enter the mass supported by the first piston (kg):
Enter the radius of the first piston (cm):
Enter the radius of the second piston(cm):
Using the entered data, your program should compute and display the value of the mass supported by the second piston. When you have verified that your program is working correctly, use it to complete the following chart:
m1 (kg) | r1 (cm) | r2 (cm) | m2 (kg) |
50 | 5 | 5 |
|
50 | 5 | 10 |
|
50 | 10 | 5 |
|
50 | 10 | 10 |
|
100 | 10 | 20 |
|
100 | 10 | 30 |
|
100 | 20 | 10 |
|
100 | 30 | 10 |
|
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.