i dont know pascal very well, so can anyone help me with this problem...

for the given matrix A(n*m) with real type of elements:

"create a file and write into it the elements of the matrix"

"create a new integer file and write there only the hole part of the matrix taken out from the first file, if fraction of all the elements are less than 0.5, and write only rounded value if fraction of all elements are greater or equal than 0.5.

thanks in advance...