Answered step by step
Verified Expert Solution
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:
- How was the work distributed and tasks assigned to each member?
- Thoroughly account for or describe your contribution towards the solution:
- List all the functions you created or significantly contributed to.
- Overall, what percentage do you feel represents your contribution towards the solution?
- What data structures did you use in the application?
- Explain why these were created and highlight the advantages or disadvantages each data structure has attributed to your solution.
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started