Question: PLEASE HELP (in C not C++) this is everything i was provided with FALL, 2021 ENGR 200 A3: THERMOCOUPLE ANALYSIS (using input/output files, if structures,



FALL, 2021 ENGR 200 A3: THERMOCOUPLE ANALYSIS (using input/output files, if structures, and a for loop) POINTS: 50 DUE: February 16, 2021 at 11:59 pm, CT INTRODUCTION: A thermocouple is a simple device that is manufactured by joining two dissimilar metals. When the thermocouple is exposed to a temperature gradient, a voltage is produced which can be converted to a temperature value. This makes a thermocouple one of the most versatile temperature measurement sensors. It can measure temperatures as high as 3000 C and as low as -270C. Thermocouples can measure temperatures of liquids, solids, and gases in many environments. The image shown to the right displays an engine exhaust gas application Temperature data has been collected from a set of thermocouples and placed in a data file. The input data file is called temperature_data and is a comma delimited file. As you examine the input file, you notice that the first record line contains the control number. The remaining record lines are the temperatures collected from three thermocouples over a 12-hour period ASSIGNMENT: ASSIGNMENT: Using only the techniques demonstrated in class in the demo programs, write a C program that will Read the control number Using a single for loop the program will: o Read three temperatures simultaneously o Add up the three columns of temperatures. o Find the minimum and maximum temperatures and determine the hour(s) when the minimum and maximum temperatures occurred. This will require a set of if/else structures: If temperature 1 is less than the minimum temperature, then assign temperature I to minimum temperature and assign the row it occurred, else if temperature 2 is less than the minimum temperature, then assign temperature 2 to minimum temperature and assign the row it occurred, else if temperature 3 is less than the minimum temperature, then assign temperature 3 to minimum temperature and assign tise row it occurred. Use a similar process to determine the maximcon temperature and when it occurred . o Print a table containing hours and temperatures The program will compute the average temperature for each sensor and print the averages below each column of temperatures The program will print the minimum and maximum temperatures and the hour that they occurred . Print the output to the computer screen and to an output file called report. Illustrated below is the output style for the computer screen and the output file OI TPTT FORMAT OUTPUT FORMAT: ***** ****** SENSOR TEMPERATURE REPORT Hour Sensor 1 (F) XX.XX Sensor 2 (F) XX.XX Sensor 3 (F) XX.XX XX XOX XX.XX xx, xx XX.XX Averages XX.XX XX. XX xx.xx OTHER STATISTICS Minimum temperature = xx.xx F during hour x Maximum temperature = xx.xx F during hour x ******** ************ SUBMITTING ASSIGNMENTS: Once you have your program working, make sure that you save your C source program file using the following specifications: A#_SH_first_last NOTE: When saving your C source program, you must save it using the .c file extension, not the c++file extension Any program that is submitted with the c++ file extension will be rejected where A# is the programming assignment number (A1, A2,...) Si is your Engr 200 section number (S1, S2, S3) first is your first name lasr is your last name An example for the first assignment would be A3 Sl_steve_canyon 12 68.70,58.11,87.81 65.00,58.52,85.69 70.38,52.62,71.78 70.86,58.83,77.34 66.56,60.59,68.12 73.57,61.57,57.98 73.57,67.22,89.86 69.89,58.25, 74.81 70.98,63.12,83.27 70.52,64.00,82.34 69.44,64.70,80.21 72.18,55.04,69.96
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
