Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

copy and paste this into a text file for the code. here is the text file: AKST,M

ID: 2082397 • Letter: C

Question

copy and paste this into a text file for the code.

here is the text file:

AKST,Max TemperatureF,Mean TemperatureF,Min TemperatureF,Max Dew PointF,MeanDew PointF,Min DewpointF,Max Humidity, Mean Humidity, Min Humidity, Max Sea Level PressureIn, Mean Sea Level PressureIn, Min Sea Level PressureIn, Max VisibilityMiles, Mean VisibilityMiles, Min VisibilityMiles, Max Wind SpeedMPH, Mean Wind SpeedMPH, Max Gust SpeedMPH,PrecipitationIn, CloudCover, Events, WindDirDegrees 2015-10-1,33,27,20,29,24,20,96,85,70,30.51,30.40,30.13,10,9,4,10,6,,T,5,Snow,35
2015-10-2,37,32,27,32,27,23,92,80,67,30.35,30.31,30.28,10,10,7,7,4,,T,8,Rain-Snow,19
2015-10-3,39,36,32,35,33,29,100,90,79,30.30,30.17,30.11,10,7,0,8,3,,0.21,8,Fog-Rain,13
2015-10-4,40,37,34,38,36,33,100,96,92,30.23,30.19,30.14,2,1,0,6,0,,0.13,8,Fog-Rain,27
2015-10-5,46,38,30,38,34,30,100,91,61,30.19,30.08,29.93,10,7,0,6,2,,T,6,Fog-Rain,23
2015-10-6,47,37,26,33,29,25,96,82,44,29.92,29.88,29.83,10,10,10,6,1,,0.00,3,,42
2015-10-7,46,36,25,31,27,23,89,73,44,29.83,29.79,29.74,10,10,10,8,4,,0.00,5,,36
2015-10-8,49,39,29,29,26,24,75,61,35,29.74,29.56,29.44,10,10,10,15,9,,0.00,6,,32
2015-10-9,45,38,31,26,24,21,75,58,34,29.43,29.24,29.06,10,10,10,20,9,,0.00,6,,22
2015-10-10,38,33,28,26,21,18,73,62,45,29.21,29.10,29.05,10,10,9,13,9,,T,5,Rain,29
2015-10-11,50,38,26,26,23,20,78,60,26,29.32,29.27,29.22,10,10,10,10,7,,0.00,2,,25
2015-10-12,36,29,22,24,21,17,85,70,49,29.39,29.25,29.21,10,10,10,10,5,,0.00,3,,38
2015-10-13,35,28,21,23,21,18,92,77,44,29.94,29.66,29.41,10,10,10,5,2,,0.00,4,,27
2015-10-14,38,31,23,26,24,21,89,76,53,30.22,30.13,29.96,10,10,10,4,1,,0.00,6,,71
2015-10-15,46,33,19,29,23,17,92,77,41,30.22,30.08,29.90,10,10,10,7,2,,0.00,2,,37
2015-10-16,47,35,23,31,25,19,85,68,31,29.88,29.61,29.36,10,10,10,13,7,,0.01,5,Rain-Snow,38
2015-10-17,38,36,34,34,32,29,92,82,63,29.41,29.31,29.25,10,10,7,12,8,,0.13,8,Rain,16
2015-10-18,48,39,30,38,33,29,100,91,68,29.61,29.51,29.41,10,6,0,8,2,,T,5,Fog-Rain-Snow,161
2015-10-19,35,32,28,32,31,29,96,93,84,29.83,29.75,29.61,6,2,0,8,1,,0.14,8,Fog-Rain-Snow,47
2015-10-20,41,33,24,34,27,22,96,85,68,29.79,29.67,29.53,10,8,0,9,3,,T,4,Fog,15
2015-10-21,38,32,25,29,25,20,89,78,63,29.61,29.54,29.51,10,10,10,12,6,,0.00,6,,22
2015-10-22,34,32,30,27,24,22,85,71,55,29.84,29.72,29.62,10,10,10,9,5,,0.00,7,,360
2015-10-23,41,33,25,27,25,20,89,77,53,29.89,29.86,29.83,10,10,10,8,2,,0.00,5,,42
2015-10-24,36,30,24,25,21,19,81,73,59,29.83,29.77,29.71,10,10,10,9,6,,0.00,4,,45
2015-10-25,37,30,23,27,22,19,88,79,60,30.07,30.01,29.84,10,10,10,5,1,,0.00,4,,35
2015-10-26,33,28,23,29,25,20,92,87,79,30.08,30.00,29.90,10,10,10,5,1,,0.00,7,,56
2015-10-27,36,33,29,30,28,27,89,84,71,29.89,29.75,29.58,10,10,10,7,3,,0.00,7,,33
2015-10-28,34,29,23,26,23,20,92,78,55,29.57,29.45,29.39,10,10,10,8,4,,0.00,6,,18
2015-10-29,30,25,20,27,23,18,96,88,69,29.41,29.39,29.36,10,5,1,9,5,,0.07,8,Snow,339
2015-10-30,25,23,20,21,19,17,96,88,78,29.73,29.54,29.40,8,3,2,8,1,,0.13,8,Snow,339
2015-10-31,20,10,-1,17,9,-2,96,86,77,30.04,29.93,29.72,10,8,2,9,4,,0.01,5,Snow,308

ES201-Spring 2017-Homework-Week 13 Due: 9:30 am Tuesday April 25, 2016 Learning objectives o Open, read from, and close a text file with data O Use sscanf to find necessary data fields o Use str find to determine ifa substring is present o Use sprint or fprintf to format string output Background Often you will need to process large amounts of data from text files, and often only need some small amount of the data present in the file. These data files may come from a data logger, the internet, or even an unknown source. One good source of weather data is wunderground.com, which has recorded weather history from every National Weather Service (NWS) site and many personal weather stations (PWS), going back decades. In this assignment, you will process a month of daily recorded weather data from the PAFANWS site in Fairbanks. Instructions In this assignment, you will create a Matlab script called hw13. m, which reads in a text file of weather information, parses it, and writes formatted summary information to the screen. The text file is called MonthlyHistory.htm. The first line is meta-data describing the data fields. You can open the file using fopen, close it with fclose and read one line at a time with fgets. Use the Matlab documentation to learn how to use these functions. Your script will determine several things and output something like the following. Maximum temperature is 50 F on day 11 Average daily temperature: 32.00 F Precipitation occurred on 13 days The underlined values will be different in your program, but everything else will be the same. Note: make sure fclose is run every time fopen occurs; otherwise new files will continually be opened. This "problem" often occurs if your program crashes somewhere between fopen and fclose.

Explanation / Answer

<p>AKST,Max TemperatureF,Mean TemperatureF,Min TemperatureF,Max Dew PointF,MeanDew PointF,Min DewpointF,Max Humidity, Mean Humidity, Min Humidity, Max Sea Level PressureIn, Mean Sea Level PressureIn, Min Sea Level PressureIn, Max VisibilityMiles, Mean VisibilityMiles, Min VisibilityMiles, Max Wind SpeedMPH, Mean Wind SpeedMPH, Max Gust SpeedMPH,PrecipitationIn, CloudCover, Events, WindDirDegrees 2015-10-1,33,27,20,29,24,20,96,85,70,30.51,30.40,30.13,10,9,4,10,6,,T,5,Snow,35
<br />
2015-10-2,37,32,27,32,27,23,92,80,67,30.35,30.31,30.28,10,10,7,7,4,,T,8,Rain-Snow,19
<br />
2015-10-3,39,36,32,35,33,29,100,90,79,30.30,30.17,30.11,10,7,0,8,3,,0.21,8,Fog-Rain,13
<br />
2015-10-4,40,37,34,38,36,33,100,96,92,30.23,30.19,30.14,2,1,0,6,0,,0.13,8,Fog-Rain,27
<br />
2015-10-5,46,38,30,38,34,30,100,91,61,30.19,30.08,29.93,10,7,0,6,2,,T,6,Fog-Rain,23
<br />
2015-10-6,47,37,26,33,29,25,96,82,44,29.92,29.88,29.83,10,10,10,6,1,,0.00,3,,42
<br />
2015-10-7,46,36,25,31,27,23,89,73,44,29.83,29.79,29.74,10,10,10,8,4,,0.00,5,,36
<br />
2015-10-8,49,39,29,29,26,24,75,61,35,29.74,29.56,29.44,10,10,10,15,9,,0.00,6,,32
<br />
2015-10-9,45,38,31,26,24,21,75,58,34,29.43,29.24,29.06,10,10,10,20,9,,0.00,6,,22
<br />
2015-10-10,38,33,28,26,21,18,73,62,45,29.21,29.10,29.05,10,10,9,13,9,,T,5,Rain,29
<br />
2015-10-11,50,38,26,26,23,20,78,60,26,29.32,29.27,29.22,10,10,10,10,7,,0.00,2,,25
<br />
2015-10-12,36,29,22,24,21,17,85,70,49,29.39,29.25,29.21,10,10,10,10,5,,0.00,3,,38
<br />
2015-10-13,35,28,21,23,21,18,92,77,44,29.94,29.66,29.41,10,10,10,5,2,,0.00,4,,27
<br />
2015-10-14,38,31,23,26,24,21,89,76,53,30.22,30.13,29.96,10,10,10,4,1,,0.00,6,,71
<br />
2015-10-15,46,33,19,29,23,17,92,77,41,30.22,30.08,29.90,10,10,10,7,2,,0.00,2,,37
<br />
2015-10-16,47,35,23,31,25,19,85,68,31,29.88,29.61,29.36,10,10,10,13,7,,0.01,5,Rain-Snow,38
<br />
2015-10-17,38,36,34,34,32,29,92,82,63,29.41,29.31,29.25,10,10,7,12,8,,0.13,8,Rain,16
<br />
2015-10-18,48,39,30,38,33,29,100,91,68,29.61,29.51,29.41,10,6,0,8,2,,T,5,Fog-Rain-Snow,161
<br />
2015-10-19,35,32,28,32,31,29,96,93,84,29.83,29.75,29.61,6,2,0,8,1,,0.14,8,Fog-Rain-Snow,47
<br />
2015-10-20,41,33,24,34,27,22,96,85,68,29.79,29.67,29.53,10,8,0,9,3,,T,4,Fog,15
<br />
2015-10-21,38,32,25,29,25,20,89,78,63,29.61,29.54,29.51,10,10,10,12,6,,0.00,6,,22
<br />
2015-10-22,34,32,30,27,24,22,85,71,55,29.84,29.72,29.62,10,10,10,9,5,,0.00,7,,360
<br />
2015-10-23,41,33,25,27,25,20,89,77,53,29.89,29.86,29.83,10,10,10,8,2,,0.00,5,,42
<br />
2015-10-24,36,30,24,25,21,19,81,73,59,29.83,29.77,29.71,10,10,10,9,6,,0.00,4,,45
<br />
2015-10-25,37,30,23,27,22,19,88,79,60,30.07,30.01,29.84,10,10,10,5,1,,0.00,4,,35
<br />
2015-10-26,33,28,23,29,25,20,92,87,79,30.08,30.00,29.90,10,10,10,5,1,,0.00,7,,56
<br />
2015-10-27,36,33,29,30,28,27,89,84,71,29.89,29.75,29.58,10,10,10,7,3,,0.00,7,,33
<br />
2015-10-28,34,29,23,26,23,20,92,78,55,29.57,29.45,29.39,10,10,10,8,4,,0.00,6,,18
<br />
2015-10-29,30,25,20,27,23,18,96,88,69,29.41,29.39,29.36,10,5,1,9,5,,0.07,8,Snow,339
<br />
2015-10-30,25,23,20,21,19,17,96,88,78,29.73,29.54,29.40,8,3,2,8,1,,0.13,8,Snow,339
<br />
2015-10-31,20,10,-1,17,9,-2,96,86,77,30.04,29.93,29.72,10,8,2,9,4,,0.01,5,Snow,308
</p>
<p>The new <a href="https://4html.net/Advanced-HTML-Editor-869.html?v=4" target="_blank" rel="nofollow"> HTML editor </a> allows you to organize your HTML code.</p>