Question: ` ` ` ### Sample Output: Case 2 This is the Question C 2 of Assignment 2 . The submitted code is created by Chan

```
### Sample Output: Case 2
This is the Question C2 of Assignment 2.
The submitted code is created by Chan Siu Ming. SID: 40202425.
In submitting this assignment, I understand the AI tools should be used as supporting purposes
instead of direct copy-and-paste.
Any suspicious submission may result in a deduction of marks or disqualification in this question.
My SID is 40202425, and after splitting it into individual integers, it becomes [4,0,2,0,2,4,
2,5].
There are 8 items on the list.
Available reconstruction 2-D sizes (rows x columns):
1: 1 x 8
2: 8 x 1
3: 2 x 4
4: 4 x 2
```
For demonstration, the integers will be hard coded to be reconstructed into a \(2\mathbf{x}4\) matrix:
\[
[[4,0,2,0],[2,4,2,5]]
\]
What is your student ID?12345678
Your SID is 12345678, and after splitting it into individual integers, it becomes [1,2,3,4,5,6,7,8].
There are 8 items on the list.
Available reconstruction 2-D sizes (rows x columns):
1: \(1\times 8\)
2: \(8\times 1\)
3: \(2\times 4\)
4: \(4\times 2\)
Please choose the option for reconstruction. Enter the integer representing that option:
You selected option [4], i.e.,\(4\times 2\). The matrix becomes:
\([[1,2],[3,4],[5,6],[7,8]]\)
Let's try performing matrix multiplication between the two matrices, 1 st \(\mathbf{x}\)2nd...
The resultant matrix is:
[[14,20],[59,72]]
Congratulations.
This is the end of this programme, but you are welcome to try other student IDs or numbers. 6. Formulate the rest of your program according to the provided sample output. (user inputs are indicated with text highlighted in blue color)
```
### Sample Output: Case 1
This is the Question C2 of Assignment 2.
The submitted code is created by Chan Siu Ming. SID: 40202425.
In submitting this assignment, I understand the AI tools should be used as supporting purposes
instead of direct copy-and-paste.
Any suspicious submission may result in a deduction of marks or disqualification in this question.
My SID is 40202425, and after splitting it into individual integers, it becomes [4,0,2,0,2,4,
2,5].
There are 8 items on the list.
Available reconstruction 2-D sizes (rows x columns):
1: 1 x 8
2: 8 x 1
3: 2\times4
4: 4 x 2
```
For demonstration, the integers will be hard coded to be reconstructed into a \(2\mathbf{x}4\) matrix: \([[4,0,2,0],[2,4,2,5]]\)
What is your student ID?01234567890
Your SID is 01234567890, and after splitting it into individual integers, it becomes [0,1,2,3,\(4,5,6,7,8,9,0]\).
There are 11 items on the list.
Available reconstruction 2-D sizes (rows x columns):
```
1: 1 x 11
2: 11 x 1
Please choose the option for reconstruction. Enter the integer representing that option: 1
You selected option [1], i.e.,1 x 11. The matrix becomes:
[[0,1,2,3,4,5,6,7,8,9,0]]
Let's try performing matrix multiplication between the two matrices, 1st x 2nd ...
Invalid. The number of columns in the first matrix must equal the number of rows in the second
matrix.
Unfortunately, matrix multiplication cannot be processed; please try again using other student IDs
or numbers.
Do not forget the size of the matrix also matters.
See you.
```
` ` ` ### Sample Output: Case 2 This is the

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!