Problem

If the displacement is positive then output that “The (material name) will expand by” th...

If the displacement is positive then output that “The (material name) will expand by” the displacement in meters. If the displacement is negative then output that “The (material name) will contract by” the displacement in meters. You shouldn’t output the displacement as a negative number.

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 a is a coefficient for linear expansion.

Write a program that inputs α, L0, 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 a for different materials.

Aluminum 2.31 × 10-5


Copper 1.70 × 10-5


Glass 8.50 × 10-6


Steel 1.20 × 10-5

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
ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT