Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Hi can someone help me with this C++ program, I'm using Xcode to do it. Metals expand when heated and contract when cooled. For a

Hi can someone help me with this C++ program, I'm using Xcode to do it.image text in transcribed

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 widthAtTemperature 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. Inter the har udth at 'H d': grees F: -1 Enter the tolerance For vidth variationH Tenperature (degrees F> idth .9991 61 62 63 64 65 606 60 69 1H.HMM1 1H.HHM4Mx 1M.MMG 29 1M.MM1MM 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

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

More Books

Students also viewed these Databases questions

Question

=+Is it possible to operate union-free?

Answered: 1 week ago

Question

=+impact member states and MNEs?

Answered: 1 week ago