Answered step by step
Verified Expert Solution
Question
1 Approved Answer
WRITTEN IN C CODE ONLY INTRODUCTION Hot tub temperature sensor data has been recorded and placed in an input file called hot tub sensor data.
WRITTEN IN C CODE ONLY
INTRODUCTION Hot tub temperature sensor data has been recorded and placed in an input file called hot tub sensor data. In the input file, the first record line contains the number of rows (size) of the array of structures. The remaining record lines contain the hour of the day (12-hour clock), the A.M. or PM designation, the Fahrenheit temperature, the Fahrenheit letter designator, and the Celsius letter designator respectively ASSIGNMENT Using the techniques demonstrated in the class demo program(s), write a C program that will do the following 1) Develop a defined structure. It must contain the character array for time, the character array for the am. or p.m. designation, a double variable for the Fahrenheit temperature, a double variable for the Celsius temperature, a character variable for the Fahrenheit letter designator, and a character variable for the Celsius letter designator 2) Read the size (nrows) of the array of structures from the input file 3) Using only the array of structures, read time, a.m. or p.m., Fahrenheit temperature, Fahrenheit letter and the Celsius letter respectively 4) Using only the array of structures, compute the Celsius temperatures and place the computed values in the array of structures 5) Using the array of structures, compute the total Fahrenheit temperatures, and the total Celsius temperatures 6) Determine the minimum Fahrenheit temperature and the location in the array 7) Determine the maximum Fahrenheit temperature and the location in the array 8) Determine the number of occurrences when the Fahrenheit temperature was above 105 9) Determine the number of occurrences when the Fahrenheit temperature was below 1020. 10) Compute the average Fahrenheit temperature and the average Celsius temperature NOTE: Except for the two character arrays in the defined structure and the array of structures, no other arrays are allowed. Use of other arrays will be counted as incorrect and significant points will be deducted. Also, use of any C code copied from the internet will be counted as incorrect with significant points deducted Your program will print to the computer screen and to an output file called hot tub_report. The output format is shown on pageStep by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started