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

Some one helped me earlier but I can\'t use keyword break exceptswitch function

ID: 3613809 • Letter: S

Question

Some one helped me earlier but I can't use keyword break exceptswitch function
Below is the text file

532 43 1 6.0 p R P E FE 110 TGE 20.00
290 88 3 11.30 a W V A SE 212A PPOG 5.0
530 32 2 11.30 a T F G AQQ 112C BETW 40.00
630 50 2 12.0 p M A M DE 220 GHE 10.00
610 55 3 4.0 p R V N PJE 105 RTQ 5.00

Please below is the multi dimensional array I'm trying to input andstore the file data above to, but I'm not sure if my arraydeclaration is okay.

#include<stdio.h>
int main (void)
{
intgroupnum[20][20];         
        intmeetweek[20][20];
        intgroupsize[20][20];
        charmeethalfday[20][20];
        charmeetingday[20][20];
        charpurpose[20][20];
        charmembtype[20][20];
        charmeetbuilt[20][20];                         
        charmeetroom[20][20];                       
        chargroupname[20][20];                    
        floatmeettime[20][20];
        floatgroupcost[20][20];


          FILE*input;
          int i, j,index;

}
    Each array will have 20 elements in it for amaximum of twenty activities
    Please I'm really confuse about how to store thetext file above to the mult-dimensional arrays.

     integer multi-dimensional array
     Column [0] Group/activitynumber
      Column [1] Meeting week
     
Column [2] Group/activitysize
      
     character multi-dimensional array
     Column [0] Meeting half day
    
Column [1] Meeting day
    
Column [2] Group/activitypurpose
    
Column [3] Group/activity membertype
    
Columns [4 through 7] Meetingbuilding
     Columns [8 through 12] Meetingroom
    
Columns [13 through 39] Groupname

   float point multi-dimensional array
  
Column [0] Meeting time   
    
Column [1] Group/activitycost

      PLEASE I CANNOT USE KEYWORD "BREAK"EXCEPT SWITCH FUNCTION. THANKS.









Explanation / Answer

please rate - thanks no breaks cleaned up a bit, I didn't realize I had left some debugging outputin and 1 or 2 things needed correcting #include #include int main() {int iarr[20][3],i,j,k; char carr[20][40]; float farr[20][2]; FILE *f;       f = fopen("input.txt","r"); if(f == NULL)    {printf("Error opening File! ");    return 0;    } i=0; while(fscanf(f,"%d",&iarr[i][0])!=EOF)     //get group #       {for(j=1;j
Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote