Question: Would anyone be able to write this in c language or be able to help me? Thanks, Question b: When a structural member is exposed
Would anyone be able to write this in c language or be able to help me?
Thanks,
Question b: When a structural member is exposed to a significant change in temperature, it may contract (if the temperature decreases) or expand (if the temperature increases) longitudinally. This change in length, dT, can be described with the following equation: dT = aDTL Where dT = change in length of the member (m) a = linear coefficient of thermal expansion ( /oC) DT= change in temperature of the member, T2-T1(oC) L = original length of the member (m) Write a program that allows a user to input the original lengths of two Structural A-36 steel rods (a = 1.2x10- 6/oC) to be used in an outdoor display, plus the possible temperature swing in a given day, i.e., the starting temperature and the final temperature. Write a function that computes the change in length dT. You will reference this function twice to calculate changes in both members. The values should then be printed to the screen (print statement should remain in the main function). If the temperature increases, the print statement should indicate The rod lengthened by x mm..., but if it contracts, the print statement should read The rod contracted by x mm....If the temperature change isnt significant (i.e., less than 0.5 oC), a message indicating no change in length occurred should be displayed. Convert dT to mm for the print statement.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
