Instructor: Yasin Nasir Thursday, November 22,2018
Coal Lab 8
(BCS-F17-AFt)
Instructions:
Attempt all tasks in the given order.
Discussion with each other is not allowed.
Indent your code properly
Must Validate your input
Matrix Operations (2D Arrays)
Declare 2D Array in data segment as
Matrix DW ?,?,?
DW ?,?,?
DW ?,?,?
(Matrix of order: 3x3)
Task 1: Write a Procedure that takes Input from user and store values in matrix.
Sample Execution:
Enter values for row1: 8 9 7
Enter values for row2: 3 1 6
Enter values for row3: 14 4 3
Instructor: Yasin Nasir Thursday, November 22,2018
Task 2: Write a Procedure to Display matrix values on screen.
Sample Execution:
8 9 7
3 1 6
14 4 3
Task 3: Write a Procedure to take Transpose of matrix.
Sample Execution:
8 3 14
9 1 4
7 6 3
Task 4: Write a Procedure to ADD two matrices.
Matrix Addition: