Four Substrings to Matrix
Four Substrings to Matrix PROBLEM STATEMENT : The program must accept N string values of equal length L as the input. The program must divide each string into four substrings of equal length. Then the program must form a character matrix of size R*C , where R = (N*3) and C = (L/4)*3. Then the program must fill the character matrix based on the following conditions. - The top-left, top-right, bottom-left, bottom-right and middle submatrices of size (R/3)*(C/3) must be filled with the asterisks. - The top-middle submatrix of size (R/3)*(C/3) must be filled with the 1st substrings of the N string values. - The middle-right submatrix of size (R/3)*(C/3) must be filled with the 2nd substrings of the N string values. - The bottom-middle submatrix of size (R/3)*(C/3) must be filled with the 3rd substrings of the N string values. - The middle-left submatrix of size (R/3)*(C/3) must be filled with the 4th substrings of the N string values. Finally...