Question: 16- A file named input.dat contains temperatures (we do not know how many but at least one). These temperatures are from a weather station located

16- A file named input.dat contains temperatures (we do not know how many but at least one). These temperatures are from a weather station located on the Toronto Islands. You are to write a complete C program that will calculate the average temperature for that weather station and displays this average on the screen. Consider only the temperatures between -40 and +40 and disregard the rest. For example if the file contains the following numbers: 10.0-47.0 20.0, the average displayed is 15.0
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
