Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

This question can be done by a group of students from 1 to 3 members. Groups of 4 members or larger will all receive zero

This question can be done by a group of students from 1 to 3 members. Groups of 4 members or larger will all receive zero on this portion of the final assessment. The Ontario weather service manages precipitation data for various regions in the province. The weather data is stored in a file (partially shown below  there are 96 records in total) and a program is needed that will summarize the contents of the file in various ways. Your job is to write the program (create the necessary modules, functions, macro\'s, logic, etc.) that will produce correct data summaries and formatted output similar to that shown in the provided sample output text file attached to this question. Your program should be able to accommodate varying data file sizes up to a maximum 250 records. You MUST use the following function to read the data file and you are not allowed to make any changes to the function. This means that you will have to create the correct data structures required by the function. File Reading Function int importWeatherDataFile(FILE* fp, struct WeatherRecord* data, int max) { int recs = 0; if (fp != NULL) { while (recs fscanf(fp, \"%d ,96d,%lf,%c,%d,%15[A ] \", &data[recs] .date.year, &data[recs].date.month, &data[recs] .precipAmt, &data[recs].unit, &data[recs] .location.regionCode, data[recs]. location.name) == 6) { recs++; } } return recs; 1. If you were in a group for the coding question, answer a), otherwise, answer b). If you answer the wrong question based on your situation, you will receive a zero grade for this question. a. If you were in a group for the coding question: 
  1. How was the work distributed and tasks assigned to each member?
  2. Thoroughly account for or describe your contribution towards the solution:
  1. List all the functions you created or significantly contributed to.
  2. Overall, what percentage do you feel represents your contribution towards the solution?
Note This evaluation is not based on the number of functions you created relative to the overall number of functions! This should be based on the logic and functionality that your contribution made towards the solution. b. If you were NOT in a group for the coding question: 1. Describe how you approached the coding question with respect to preplanning and how you would ensure completion of all the work to be done on time. If you didn\'t do any preplanning, how could you have improved on your experience if you had applied a plan for time management? 2. Explain your coding process from the reading of the overall coding question to the production of your completed code. 3. The application you had to develop was centered on data. This required the use of structures to manage the information in an organized way.
  1. What data structures did you use in the application?
  2. Explain why these were created and highlight the advantages or disadvantages each data structure has attributed to your solution.
4. Describe the most difficult/challenging part of logic you coded. Provide a full detailed account of the process you took to overcome this challenge.

 



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_2

Step: 3

blur-text-image_3

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

Introduction to Wireless and Mobile Systems

Authors: Dharma P. Agrawal, Qing An Zeng

4th edition

1305087135, 978-1305087132, 9781305259621, 1305259629, 9781305537910 , 978-130508713

More Books

Students also viewed these Programming questions