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 N 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 countfaultyReadsReturnGoodAvg(int n, int temperatures[], int low, int high, int*lowCount,
int*highCount);
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:
./a.out
How many readings? 10
Enter actual low temperature? 50
Enter actual high temperature? 100
Enter 10 temperatures readings:
74
107
105
10
13
100
65
23
91
50
The average of good readings is 76.00
3 temperature readings below range
2 temperature readings above range
 Name the program one.c. The program will read in an array

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!