#include {printf(“%c”, ij[i][j]);}}{j=d; for(i=m;ic &

#include #include #include int main(){int a=0, b=0, i, j, z=0, p=0, m, n, c, d,e,f,dist2,dist1; float q; char code1, code2, code3;double dist; FILE *myfilehandle; myfilehandle = fopen(“buildingmap.txt”, “r”);if(myfilehandle !=NULL) {printf(“________________________________________
“);printf(“KNOW YOUR BUILDING ADDRESS-
“);printf(“—————————————-
“); printf(“ENTER BUILDING CODE:
“);scanf(” %c”, &code3);printf(“________________________________________”);printf(”
KNOW DISTANCE & PATH B/W BUILDINGS-“);printf(”
—————————————-
“);printf(”
ENTER 1st BUILDING CODE:
“);scanf(” %c”, &code1);printf(”
ENTER 2nd BUILDING CODE:
“);scanf(” %c”, &code2);printf(“—————————————-
“); char ij9999;for(j=0;j<99;j++) { for(i=0;i<99;i++){   fscanf(myfilehandle," %c",&ijij);   if(feof(myfilehandle)){break;}  if(ijij=='#'){a++;}if(ijij==code1){m=i;n=j;}if(ijij==code2){c=i;d=j;}if(ijij==code3){e=i;f=j;}if(ijij=='x'){p++;}if(ijij=='E'|| ijij=='I' || ijij=='L' || ijij=='F' || ijij=='C' || ijij=='H' || ijij=='P' || ijij=='M' ||  ijij=='B'|| ijij=='o'|| ijij=='h' || ijij=='s'){b++;}z++;  }}q=p/(float)z*100;dist1=m-c;dist1*=dist1; dist2=n-d;dist2*=dist2;dist=dist1+dist2;printf(" THE CO-ORDINATES OF YOUR REQUESTED BUILDING IS (%d,%d) ", e, f);printf(" THE DIST B/W THE BUILDINGS IS (%.*f) ",0,sqrt(dist));printf(" THE PATH B/W THE BUILDINGS IS: ");if(md){{i=m;     for(j=n-1;j>d;j–)    {printf(“%c”, ijij);}}{j=d;   for(i=m;ic && nc;i–)    {printf(“%c”, ijij);}}   }if(m>c && n>d){{i=m;     for(j=n-1;j>d;j–)    {printf(“%c”, ijij);}}{j=d;   for(i=m;i>c;i–)    {printf(“%c”, ijij);}}   }if(m