Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

write a C program that does the following only using arrays along with while and if loops , Struct type is strictly not permitted ,

write a C program that does the following only using arrays along with while and if loops , Struct type is strictly not permitted , detailed instructions are below:

image text in transcribedimage text in transcribedimage text in transcribedimage text in transcribed

Input Format The Vancouver Island School-Based Weather Station Network (VWSN) maintains a set of weather stations at various public sites around Vancouver Island, primarily in elementary and secondary schools, but also at scientific institutions and universities. Each station is identified by a numerical station identifier. For example, there are three weather stations active on the UVic campus: Station 1 is located on the roof of the Ian Stewart Complex, station 143 is located on the Earth, Ocean and Atmospheric Sciences building and station 163 is located on the David Turpin building. Each weather station reports observations of current conditions for a variety of scientific variables temperature, barometric pressure, humidity, wind speed/direction, etc.) to a centralized server at regular intervals, and the collected data is publicly available. For this assignment, we will work with datasets containing temperature observations from all of the active stations in the network (about 150-200 at any given time at a resolution of about five minutes. You should consider that if 150 stations report data every five minutes for an entire day, there will be 150- i800 observations per hour and 150s21 = 43.200 observations for the whole day. Some of our input files will involve multiple days of data, so you wil be writing programs that can handle hundreds of thousands of data points For this assignment, the VWSN temperature data has been converted into text files with a format, where each line describes one temperature observation (at a particular time, from a particular station). Each line of the file has the form month day hour inute station number tperature For example, the following sample contains several temperature observations in the format above. Except for the temperature values (which are real numbers), all of the values in the file are integers. 3 11 12 05 1 8.7 3 11 11 56 143 8.6 3 11 13 01 163 8.9 3 10 18 05 1 7.3 The first line contains an observation of 8.7 degrees Celsius from station number 1 at 12:05 on March 11th. The third line contains an observation of 8.9 degrees Celsius from station number 163 at 13:01 on March 11th. The hour and minute columns will specify a 24-hour time (so 12:05 is five minutes after noon). Notice that the rows are in no particular order (and you should not assume that they will be sorted by date, or by station number, or by temperature) A data file may contain any number of lines, spanning any number of months and days and any set of stations. You may make the following assumptions In any valid file, every line contains all six data felds (month, day, hour, minute, station number and temperature)

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

Recommended Textbook for

Database Design For Mere Mortals

Authors: Michael J Hernandez

4th Edition

978-0136788041

More Books

Students also viewed these Databases questions