0

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...

2
Contributors
5
Replies
6
Views
8 Years
Discussion Span
Last Post by LizR
0

OK, that reads like your course work. What part specifically are you struggling with - and what do you have so far?

0

thanks for replying, i just want the first part how to write the elements into the file type...
the second is easily done if i know the first part...thank you!

0

assign
rewrite
reset
...etc. and i know how to form a matrix but how to write it in the file thats the problem..

0

well a matrix is made up of a number of numbers.. simply write them in turn and then when you read them back, read them the same way as you wrote them

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.