Question: Steps for For these two assignments ( Program 1 2 and Program 1 3 ) , you will use the same data file but your
Steps for
For these two assignments Program and Program you will use the same data file but your programs will process the file in different ways.
Data file
The data file linked for the assignment is weatherdata.txt
This file contains wind speed and temperature data for days.
The first value on each line is the day day day day etc., up to day
The second value on the line is the wind speed in knots knots for day knots for day etc., up to knots for day
The third value on the line is the temperature in Celsius c for day c for day etc., up to c for day
tableweatherdatatxt Notepad
For Programs and you will read this data and process it to produce the average wind speed and the average temperature once without using arrays and once with using arrays.
In either case your output can be very simple:
C:Users illDesktop Miami Programming Languages dotsProgram For this program you will read the data in the file, using it to calculate and output the average wind speed and the average temperature.Do not store the data in arrays or any other structure You should have not more than one days worth of data stored at any one time. Calculate your sum as you goDo not program this with a hard coded value of used as the divisor to produce your averages. Maintain a count as you go
Program
For this program you will read the data in the file into arrays for the wind speed and for the temperature, then use the stored data to calculate and output the average wind speed and the average temperature.
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
