Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

x. Solution x.0mlor=\"red\">please rate - thanks this time I printed 2 columns t

ID: 3614308 • Letter: X

Question

x.

Explanation / Answer

x.0mlor="red">please rate - thanks this time I printed 2 columns to show the entire thing was sorted. Once you get printall working everything will print--which I thought you had said was working (it was before you added the malloc) #include #include #include #define MAXGROUP 20 #define MINCOUNT 12 #define MAXCOUNT 20 #define ZERO 0 struct activities {         int groupnum;         char *groupname;         float meettime;         char mthalfday;         char meetday;         int meetweek;         char nextdate[6];         char buildingloc[4];         char meetroom[5];         char purpose;         char memtype;         int groupsize;         float groupcost; }; void printallinput(struct activities fungroup[MAXGROUP], int xindex); void selectionsort(struct activities recgroup[MAXGROUP], int xxindex); int findMinimum(struct activities recgroup[], int first, int xxindex); void swap(struct activities recgroup[], int x, int y); void bubblesort(struct activities recgroup[], int xxindex); int main(void) {         FILE *groupfile;         struct activities group[MAXGROUP];         int iindex, jindex, kindex, count,i;         int intro, index, len;         int choose, xindex, xcount;         char chflush;         char temparr[100];                 printf(" Activities which you are interested in must be between 12 and 20. ");                 printf("Please enter your choice:>>> ");                 scanf("%d", &count);                 while((count MAXGROUP))                 {                         printf(" Wrong input: Please reenter the number of activities you interested in ");                         printf(" Must be between %d and %d ", MINCOUNT, MAXCOUNT);                         scanf("%d", &count);                 }                 groupfile = fopen("file.dat", "r");                 if(groupfile == NULL)                 {                         printf(" Error opening File! ");                         return 0;                 }                 iindex = 0;                 while(iindex