72 358
Assignments Done
98,8%
Successfully Done
In April 2019

# Answer to Question #26508 in C++ for John

Question #26508
The fact that most metals expand when heated and contract when cooled has serious implications when the dimensions of a piece of laboratory equipment are critical to an experiment. A typical aluminum bar that is w cm wide at 70 degrees Fahrenheit will be

x = w + (t – 70) * 10-4

cm wide at a nearby temperature t. Write a program that prompts the user for the standard width of a bar at 70 degrees Fahrenheit and for a tolerance for width variation. Then write to a file a table like the one below indicating the bar’s width at temperatures from 60 degrees to 85 degrees in one degree intervals and marking with a star the temperatures at which the bar’s width is within the tolerance.

SAMPLE OUTPUT

Ideal Bar Width (at 70 degrees F): 10.00000 cm

Tolerance for Width Variation: 0.00050

60 9.99900

61 9.99910

62 9.99920

63 9.99930

64 9.99940

65 9.99950 *

.........

70 …………………..

........

84

85

Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!