Question: Name the program one.c . The program will read in an array of N integers that represent temperatures collected from a thermometer. The thermometer is
Name the program one.c
The program will read in an array of integers that represent temperatures collected from a thermometer.
The thermometer is prone to faulty readings, however, we know the range of expected temperatures from an independent weather service.
The function:
double countfaultyReadsReturnGoodAvgint n int temperatures int low, int high, intlowCount
inthighCount;
will compute the number of temperature readings that fall outside below and above the range defined by the parameters low and high and
return these counts via lowCount and highCount
The function returns the average of the temperature readings that fell within the range.
Part of main input has been provided. You will be responsible for everything remaining. That will be calling the function, implementing the
functions, and printing the results.
An example execution:
aout
How many readings?
Enter actual low temperature?
Enter actual high temperature?
Enter temperatures readings:
The average of good readings is
temperature readings below range
temperature readings above range
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
