typedef struct { unsigned int day; unsigned int month; float levelF; } measure; typedef struct { municipality char[20]; measure surveys[365]; int nSurveys; } measuresMunicipality; typedef measuresMunicipality surveysGlobal[100]; surveysGlobal dg; float thresholdF; int i,j,n,found; float totalF, average; for (i=0; i<100; i++) { n=dg[i].nSurveys; found=0; totalF=0.0; for (j=0; j thresholdF)) found=1; } if (found) { average = totalF/n; printf("The municipality of %s recorded an average level of rainfall of %f", dg[i].municipality, average); } }