Question: This file contains wind speed and temperature data for 30 days. The first value on each line is the day - day 1, day 2,
This file contains wind speed and temperature data for 30 days. The first value on each line is the day - day 1, day 2, day 3, etc., up to day 30. The second value on the line is the wind speed in knots - 14 knots for day 1, 12 knots for day 2, etc., up to 14 knots for day 30. The third value on the line is the temperature in Celsius - 25 c for day 1, 31 c for day 2, etc., up to 22 c for day 30. Create a program to read the data in the file and use it to calculate and output the average wind speed and the average temperature. Do not store the data in arrays (or any other structure) - process it as you go.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
