It is important to consider the effect of thermal expansion when building a structure that must withstand changes in temperature. For example, a metal beam will expand in hot temperatures. The additional stress could cause the structure to fail. Similarly, a material will contract in cold temperatures. The linear change in length of a material if it is allowed to freely expand is described by the following equation:
L∆ = αL0 T∆
Here, L0 is the initial length of the material in meters, L∆ is the displacement in meters, T∆ is the change in temperature in Celsius, and α is a coefficient for linear expansion.
Write a program that inputs α, L∆, T∆, and the name of the material, then calculates and outputs the material’s name and the amount of linear displacement. Here are some values for α for different materials.
| Aluminum | 2.31 ×10-5 |
| Copper | 1.70 × 10-5 |
| Glass | 8.50 × 10-6 |
| Steel | 1.20 × 10-5 |
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.