Question: Goals: Developing problem-solving skills, using functions Problem: The company, HeatTransfer, for which your analyzed data in Lab 5 is developing 8 new formulations to use

Goals: Developing problem-solving skills, using functions Problem: The company, HeatTransfer, for which your analyzed data in Lab 5 is developing 8 new formulations to use for their widgets. To ensure that the formulations produce similar results when they are prepared by 6 plants in different locations, the company has asked each of the six plants to prepare each formulation and measure the thermal conductivity of the different formulations. You have been asked to develop a program to help analyze the data. Your program should have a main function and 3 other functions as described below. One function should confirm that the entered value for thermal conductivity is between 3 and 10 inclusive. This function should accept the thermal conductivity to be checked and the plant number that measured this thermal conductivity and prompt the user to re-enter the thermal conductivity for that plant until a valid value is entered. This function should return a valid value to the function call. One function should accept all 6 thermal conductivities (one for each of the plants) for a specific formulation at one time and send back to function call the highest and lowest of the 6 thermal conductivities to the function call. One function should accept all the thermal conductivities of a specific formulation and calculate the average of the thermal conductivities for that formulation without the highest and lowest thermal conductivity. This function should call the function to determine the lowest and highest thermal conductivity for a plant, then calculate the average. The average should be returned to the function call. The main function should prompt the user to enter the thermal conductivity for a formulation from each plant one at a time and call the function to ensure the entered value was valid . Next main should call the function to calculate the average of the values from the plants. This process should be repeated for each of the 8 formulations. The main function should output the average for each formulation to two decimal places. Sample output is given below for first 2 formulations (your code should work for all 8).

Enter the information for formulation 1. Enter the thermal conductivity for formulation 1 from plant 1 in W/mK 7 Enter the thermal conductivity for formulation 1 from plant 2 in W/mK 3.8 Enter the thermal conductivity for formulation 1 from plant 3 in W/mK 9.9 Enter the thermal conductivity for formulation 1 from plant 4 in W/mK 5.3 Enter the thermal conductivity for formulation 1 from plant 5 in W/mK 8.7 Enter the thermal conductivity for formulation 1 from plant 6 in W/mK 9.5 The average thermal conductivity for formulation 1 was 7.63 W/mK. Enter the information for formulation 2. Enter the thermal conductivity for formulation 2 from plant 1 in W/mK 2.5 The thermal conductivity should be between 3 and 10 W/mK inclusive! Enter the thermal conductivity from plant 1 3.8 Enter the thermal conductivity for formulation 2 from plant 2 in W/mK 8 Enter the thermal conductivity for formulation 2 from plant 3 in W/mK 11 The thermal conductivity should be between 3 and 10 W/mK inclusive! Enter the thermal conductivity from plant 3 10.5 The thermal conductivity should be between 3 and 10 W/mK inclusive! Enter the thermal conductivity from plant 3 9.2 Enter the thermal conductivity for formulation 2 from plant 4 in W/mK 5.3 Enter the thermal conductivity for formulation 2 from plant 5 in W/mK 6.8 Enter the thermal conductivity for formulation 2 from plant 6 in W/mK 7.9 The average thermal conductivity for formulation 2 was 7.00 W/mK.

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!