Question: for this i have used this code: #include const int NUMS = 3; int main(void) { int i, Total_H = 0, Total_L = 0; int

for this i have used this code:
#include
int main(void) { int i, Total_H = 0, Total_L = 0; int High[3]; int Low[3]; float Total_Temp, Mean_Temp; printf("---=== IPC Temperature Analyzer ===--- ");
for (i = 0; i
printf("Enter the low value for day %d: ", i + 1); scanf("%d", &Low[i]);
while (High[i] > Low[i] && High[i]-40 && Low[i] > -40) { Total_H = Total_H + High[i]; Total_L = Total_L + Low[i]; break; }
while (High[i] 40 || High[i]
printf(" ");
printf("Enter the high value for day %d: ", i + 1); scanf("%d", &High[i]);
printf("Enter the low value for day %d: ", i + 1); scanf("%d", &Low[i]);
while (High[i] > Low[i] && High[i]-40 && Low[i] > -40) { Total_H = Total_H + High[i]; Total_L = Total_L + Low[i]; break; }
} Total_Temp = (Total_H + Total_L); Mean_Temp = (Total_Temp / 6); } printf("The average (mean) temperature was : %.2f", Mean_Temp); printf(" "); return 0; }
but while trying to submit its showing
![int High[3]; int Low[3]; float Total_Temp, Mean_Temp; printf("---=== IPC Temperature Analyzer ===---](https://dsd5zvtm8ll6.cloudfront.net/si.experts.images/questions/2024/09/66f3d3b979906_48166f3d3b91813b.jpg)
can you please help me with this ASAP . i will upvote you for sure .
Part 1 (IN-LAB 30%): Code a program in temps.c that does the following: 1- Before the declaration of main define NUMS as 3: #define NUMS 3 2- Print the title of the application. === IPC Temperature Analyzer 3- Using a for loop, prompt the user to enter the high and low values for each of NUMS days. The values entered must be between -40 and 40, and high must be greater than low. Print the following messages: >Enter the high value for day 1: Enter the low value for day 1: Incorrect values, temperatures must be in the range -40 to 40, high must be greater than low. The average (mean) temperature was:
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
