blob: dc14e18b161ca8b089ff5be0af9e49606178d597 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
|
Project3_Hernadez_Schroeder_RUNS.txt
*****************************************************
3x3 Matrix Calculator
*****************************************************
(Before we start, we need two 3x3 Matrices, A and B)
Enter the elements of Matrix A (by row):
row 1
element 1: 1.23
element 2: 1.345
element 3: 2.65
row 2
element 1: 2.54
element 2: 123.65
element 3: 235
row 3
element 1: 5.876
element 2: 2.654
element 3: 12324.6
Enter the Elements of Matrix B (by row):
row 1
element 1: 1
element 2: 4.6
element 3: 7
row 2
element 1: 43
element 2: 65
element 3: 98
row 3
element 1: 100
element 2: 200
element 3: 300
Matrix A:
1.23 1.345 2.65
2.54 123.65 235
5.876 2.654 12324.6
Matrix B:
1 4.6 7
43 65 98
100 200 300
1) Get New Matrices
2) Multiply Matrices
3) Add Matrices
4) Exit
Select from the menu above: 2
MATRIX MULTIPLICATION
Matrix A:
1.23 1.345 2.65
2.54 123.65 235
5.876 2.654 12324.6
Matrix B:
1 4.6 7
43 65 98
100 200 300
A X B = C:
324.065 623.083 935.42
28819.5 55048.9 82635.5
1.23258e+06 2.46512e+06 3.69768e+06
1) Get New Matrices
2) Multiply Matrices
3) Add Matrices
4) Exit
Select from the menu above: 3
MATRIX ADDITION
Matrix A:
1.23 1.345 2.65
2.54 123.65 235
5.876 2.654 12324.6
Matrix B:
1 4.6 7
43 65 98
100 200 300
A + B = C:
2.23 5.945 9.65
45.54 188.65 333
105.876 202.654 12624.6
1) Get New Matrices
2) Multiply Matrices
3) Add Matrices
4) Exit
Select from the menu above: 1
Enter the elements of Matrix A (by row):
row 1
element 1: 1
element 2: 2
element 3: 3
row 2
element 1: 4
element 2: 5
element 3: 6
row 3
element 1: 7
element 2: 8
element 3: 9
Enter the Elements of Matrix B (by row):
row 1
element 1: 2
element 2: 4
element 3: 6
row 2
element 1: 8
element 2: 10
element 3: 12
row 3
element 1: 14
element 2: 16
element 3: 18
Matrix A:
1 2 3
4 5 6
7 8 9
Matrix B:
2 4 6
8 10 12
14 16 18
1) Get New Matrices
2) Multiply Matrices
3) Add Matrices
4) Exit
Select from the menu above: 3
MATRIX ADDITION
Matrix A:
1 2 3
4 5 6
7 8 9
Matrix B:
2 4 6
8 10 12
14 16 18
A + B = C:
3 6 9
12 15 18
21 24 27
1) Get New Matrices
2) Multiply Matrices
3) Add Matrices
4) Exit
Select from the menu above: 2
MATRIX MULTIPLICATION
Matrix A:
1 2 3
4 5 6
7 8 9
Matrix B:
2 4 6
8 10 12
14 16 18
A X B = C:
63 78 93
144 177 210
225 276 327
1) Get New Matrices
2) Multiply Matrices
3) Add Matrices
4) Exit
Select from the menu above: 4
Thank You, Good Bye!!
C:\Users\Lenovo\source\repos\Project3_Hernandez_Schroeder\Debug\Project3_Hernandez_Schroeder.exe (process 5276) exited with code 0.
To automatically close the console when debugging stops, enable Tools->Options->Debugging->Automatically close the console when debugging stops.
Press any key to close this window . . .
|