Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

image text in transcribed

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 10 Open, read from, and close a text file with data 10 Use sscanf to find necessary data fields Use strfind to determine if a substring is present Use sprint or fpr intf 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 Monthly History. htm. The first line is meta-data describing the data fields. You can open the file using fopen, close it with fo lose 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 valucs 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 ES201 Spring 2017-Homework Week 13 Due: 9:30 am Tuesday April. 25, 2016 Learning objectives 10 Open, read from, and close a text file with data 10 Use sscanf to find necessary data fields Use strfind to determine if a substring is present Use sprint or fpr intf 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 Monthly History. htm. The first line is meta-data describing the data fields. You can open the file using fopen, close it with fo lose 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 valucs 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

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Students also viewed these Databases questions

Question

If |A X B| = AB, what is the angle between A and B?

Answered: 1 week ago

Question

Assess three steps in the selection process.

Answered: 1 week ago

Question

Question What is an educational benefit trust and how is it used?

Answered: 1 week ago

Question

Question How are VEBA assets allocated when a plan terminates?

Answered: 1 week ago

Question

Question May a taxpayer roll over money from an IRA to an HSA?

Answered: 1 week ago