Question: (c++)The company, HeatTransfer, has expanded its study to include more formulations and plants. They have automated the data collection so that the thermal conductivities are

(c++)The company, HeatTransfer, has expanded its study to include more formulations and plants. They have automated the data collection so that the thermal conductivities are stored in a file containing a table (2-D array). Each row of the table represents a specific formulation and each column represents a specific plant. Your program should have a main function and 4 other functions as described below. The manufacturer has stated that there will not be more than 50 formulations and not more than 12 plants. One function should open the file thermalconduct.dat and read the first line that contains the number of formulations (the first value) and number of plants (the second value). Using these values, your function should then read the rest of the data and store the values in a 2-dimensional array. As the thermal conductivities are being stored, a message should be output if any thermal conductivity is not in the range of 3 to 10. The message should output the formulation, plant and thermal conductivity as the example below. The value of 14.56 from plant 1 for formulation 8 is suspect.

The thermal conductivity should still be stored in the array. The number of formulations and number plants should be sent back to the function call

One function should accept the 2-dimensional array, the number of formulations and number of plants then create a 1-dimensional array containing the minimum thermal conductivities for each formulation and create a 1-dimensional array containing the maximum thermal conductivities for each formulation. This function should call the function to output a 1-dimensional array for the minimum and maximum values before sending these arrays back to the function call. One function should accept the 2-dimensional array and determine the average thermal conductivity for each formulation. The average thermal conductivity for each formulation should be calculated without including the maximum and minimum thermal conductivity for that formulation, therefore this function will need to call the function that calculates the minimum and maximum thermal conductivities for each formulation. The average thermal conductivities for the formulations should be stored in another 1-dimensional array which is sent back to the function call. One function that will accept a 1-dimensional array, the number of values stored in the array and a description of what is stored in the array, e.g minimum thermal conductivity for each formulation, average thermal conductivity for each formulation, etc. The function will then output the description and the values. The values should be output to 4 significant digits;

The main function should prompt the user to enter the filename for the data file and call the function to import the data from the file into a 2-dimensional file. Next main should call the function to calculate the averages of the formulations. The main function should then call the function to output a 1-dimensional array sending the array of averages to the function to calculate the 1-dimensional array. A data file, thermalconduct.dat, has been posted

Do not use pointers, dynamic arrays and/or vectors to complete this project.

thermalconduct.dat:

(c++)The company, HeatTransfer, has expanded its study to include more formulations andplants. They have automated the data collection so that the thermal conductivities

9236037' 6 4 4 7 8 8 8217806185688 05656895115635486573388906 67659885799747357986859995 00612602090948855052153172 9029825518345 4680906996312 8000 2 2 7 5 8 3 7 5 6 5 5 8661489286 368098981416419865966112 8 78566 67588565885798735763 479972 55723158822023001045 453539 39535886793534889739 783696 890852 72156212954665240860 94423087272527315277 960665 56393685789944976786 918 918881 27007219065793830407 56541417282607437058 4, 8 3 8 3 7 5 8 6 6 9 5 6 9 3 9 4777578339 24, 3 4 2 2 6 5 9 1 2 3 5 8 0 0 6656307268 70077 26358977, 5 6 7 0 7 8 8350209 76638545566556798583334552 1503 0 3 8 1 6 2 7 6 4 9 8 2 3541587224 9863273514158|723-19677613 03 9 3 1 3 3 3 2 9 7 6788093864 202 67396 4989477354, 8 4 9 8 5 6 7 8 7 7 5

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!