Problem 2: Write a FORTRAN 90 subroutine named c that takes as ts first argument a two
Question:
Problem 2: Write a FORTRAN 90 subroutine named c that takes as ts first argument a two dimensional array of characters named arr with NR rows and NC comns where NR and NC are parameters. The second argument to the subroutie is a character string of length 1 named ch. The subroutine source code is in a module in a separate file from the file containing the main pro For each row the subroutine prints (on a single line) at the screen the characters in the row up to but not including the first occurrence of the character in ch. If the character in ch does not occur in a row, then all characters in the row are printed on a single line on the screen. Write a main program that uses the subroutine cc Provide test results for the following data file which the main program opens and reads. (Use values of 5 and 6 for NR and NC respectively) 231x56 s3fgtr wxr56t 12x3xx xf3f3e Provide a run with ser iput character "3" and another run when the input character "1 NOTES: In addition to the above requiements, also satisfy the following: 1. Whenever you write a program that gets interactive input from the user running the program, your program st prompt the user (with the appropriate print statement asking for the required input) just before the related read stateme 2. Include IMPLICIT NONE ina your progras 3. The first line of your .f90 source file must be a comment which includes your name 4. The first line of output from your program must include your name