Question: Hello, Can you please help me with this. I am using C++ on Xcode. Thank you. Metals expand when heated and contract when cooled. For

Hello,

Can you please help me with this. I am using C++ on Xcode. Thank you.Hello, Can you please help me with this. I am using C++

on Xcode. Thank you. Metals expand when heated and contract when cooled.

Metals expand when heated and contract when cooled. For a typical aluminum bar, if you know the width at 70 degrees F, the new width at a temperature can be calculated with the following formula: new width width(at 70 degrees F) (temperature 70)* 10 Write a function named widthAtTemperature, that takes two parameters: 1. a double value that represents the width of a bar at 70 degrees F 2. a double value that represents a temperature widthAt Temperature should return a double value that represents the width at the given temperature A researcher is performing an experiment, and the size of the bar can only vary within a given tolerance. Your goal is to output a chart showing the width of a bar at a series of temperatures and indicating which widths are within the tolerance range. For example, the following shows the output for a bar of width 10.0 cm at 70 degrees F and a tolerance of 0.00050. The symbol is used to mark the usable temperature range Enter the bar width at 70 degrees F: 10 Enter the tolerance for width variation .0005 Width emperature degrees F 60 9.99900 61 9.999 10 62 9.99920 63 9.99930 9.99940 64 65 9.99950 66 9.99960 67 9.99970 68 9.99980 69 9.99990 10.00000 71 10.00010 10.00020 73 10.00030 74 10.00040 75 10.00050 76 10.00060 77 10.00070 78 10.00080 79 10.00090 80 10.001.00 Your main function should do the following: input values for the width at 70 degrees F and the width tolerance

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!