Question: language C++ Part C: Determine materials/substances The determine Substance() function will return a string value indicating the substance. Here is the function prototype: string determineSubstance(const
language C++

Part C: Determine materials/substances The determine Substance() function will return a string value indicating the substance. Here is the function prototype: string determineSubstance(const double &); The table below shows the normal boiling points in degrees Celsius for various substances. Write a function to determine the type of substance from an observed boiling point. Please make sure that your program checks the range of plus or minus 5-percent around each boiling point. Boiling Point Table Water 100 Mercury 357 Copper 1187 EECE1080C/CS1021C Lab Functions 1 Topics covered: CH Program Development, Functions Silver 2193 Gold 2660 If the boiling point matches one of the substances (including +/- 5% tolerance) return that value as the answer. For example, for a specified boiling point equal to 369.5C your function should return the string "Mercury". If the boiling point does not match any substance return the string "Unknown Substance". TESTING - Test your code using the specified substances and complete the following table (NOTE - this table is for your use only. It need not be submitted for grading): Specified BP, deg C Substance from Code 98.2 ? 1200 ? 2600 ? 3265 ? Table 3 Determine Substance Test Table
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
