This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

ONLY THIS HELP PLEASE

Anyone of you guys can help me writing a programe usuing the foor loop twice or more and that will add the two matrices

(A):-

|A11 A12 . . .A1m|
| |
|A21 . | m*m
| . |
|Am1 . |


and


(B):-

|B11 B12 . . .B1n|
| |
|B21 . | m*m
| . |
|Bn1 . |


M: POSITIVE INTEGER

Please send it to my email
( maxe5000@hotmail.com )
and Thanx very much.

Parents
  • "posting homework questions on forums generally isn't a great way to make friends"

    Neither is it a terribly effective way for you to achieve the objective of the excercise - which is for you to practice what you have been taught in class.

    When it comes to exam time, you will not be able to post the questions on a forum and wait for a reply - you wil have to do it all by yourself.
    Similarly when it comes to interview time for a job.

    You need to practice the art of sitting down, analysing a problem, and designing a solution. The only way to gain this experience is to actually do it yourself.

    It's the same as physical exercise - you won't build any muscles unless you actually do the workout!

    For this particular assignment, you should start by thinking how you would do matrix addition by hand: it's a matter of considering each element in a row, and then repeating that for each row. The two occurrences of "for each" just then should immediately suggest to you where the two 'for' loops should come.

    Now that Jay has given you a solution, why don't you try writing out a plain-English description of what it actually does?
    At least that would give you some exercise.

    And beware - teachers can read forums, too: http://www.8052.com/forum/read.phtml?id=60122

Reply
  • "posting homework questions on forums generally isn't a great way to make friends"

    Neither is it a terribly effective way for you to achieve the objective of the excercise - which is for you to practice what you have been taught in class.

    When it comes to exam time, you will not be able to post the questions on a forum and wait for a reply - you wil have to do it all by yourself.
    Similarly when it comes to interview time for a job.

    You need to practice the art of sitting down, analysing a problem, and designing a solution. The only way to gain this experience is to actually do it yourself.

    It's the same as physical exercise - you won't build any muscles unless you actually do the workout!

    For this particular assignment, you should start by thinking how you would do matrix addition by hand: it's a matter of considering each element in a row, and then repeating that for each row. The two occurrences of "for each" just then should immediately suggest to you where the two 'for' loops should come.

    Now that Jay has given you a solution, why don't you try writing out a plain-English description of what it actually does?
    At least that would give you some exercise.

    And beware - teachers can read forums, too: http://www.8052.com/forum/read.phtml?id=60122

Children
No data