Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Summary: compute a metals ultimate tensile strength for different temperatures. Most metals weaken as temperature increases. The Ultimate Tensile Strength (UTS) of most metals is

Summary: compute a metals ultimate tensile strength for different temperatures. Most metals weaken as temperature increases. The Ultimate Tensile Strength (UTS) of most metals is accurately predicted by the following equation UTS = 1.0 - (T/1000)^EXP where T is the current temperature (degrees Celsius) and EXP is a real number based on the type of metal. UTS is expressed as a value in the range 0.0 to 1.0, where 1.0 means the metal is at full strength, and 0.0 means the metal has no strength whatsoever. You can think of UTS as a percentage: 1.0 = 100%, and 0.0 = 0%. For example, a particular type of stainless steel has an EXP value of 2.0. When the temperature reaches 300 degrees (Celsius), this type of stainless steel has a UTS of 0.91, or 91%. Your assignment is to write a complete C++ program that inputs the EXP value for a particular metal (as a real number), and outputs the UTS for this metal starting at the temperature of 100 degrees (Celsius), and every 25 degrees thereafter. Stop after 1000 degrees. This implies you are computing the UTS for the temperatures 100, 125, 150, 175, 200, 225, 250, 275, 300, 325, , 975, 1000. Example: given the following EXP value as input 2.0 Your program should output 100: 0.99 125: 0.984375 150: 0.9775 175: 0.969375 200: 0.96 225: 0.949375 250: 0.9375 275: 0.924375 300: 0.91 325: 0.894375 350: 0.8775 375: 0.859375 400: 0.84 425: 0.819375 450: 0.7975 475: 0.774375 500: 0.75 525: 0.724375 550: 0.6975 575: 0.669375 600: 0.64 625: 0.609375 650: 0.5775 675: 0.544375 700: 0.51 725: 0.474375 750: 0.4375 775: 0.399375 800: 0.36 825: 0.319375 850: 0.2775 875: 0.234375 900: 0.19 925: 0.144375 950: 0.0975 975: 0.049375 1000: 0 Use a loop, do not write out the program as a long sequence of statements.

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

Data Management Databases And Organizations

Authors: Richard T. Watson

3rd Edition

0471418455, 978-0471418450

More Books

Students also viewed these Databases questions