summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFreddyh11 <[email protected]>2021-11-26 17:44:00 -0800
committerGitHub <[email protected]>2021-11-26 17:44:00 -0800
commit52b34e93a4ca7a5ab08a47e896278cad9deded0b (patch)
tree8055253c6091cb926ebb106eee1eded65a60be33
parentUpdate Project_3_Hernandez_Schroeder.cpp (diff)
downloadproject_3_hernandez_schroeder-52b34e93a4ca7a5ab08a47e896278cad9deded0b.tar.xz
project_3_hernandez_schroeder-52b34e93a4ca7a5ab08a47e896278cad9deded0b.zip
Update Project_3_Hernandez_Schroeder.cpp
-rw-r--r--Project3_Hernandez_Schroeder/Project_3_Hernandez_Schroeder.cpp34
1 files changed, 34 insertions, 0 deletions
diff --git a/Project3_Hernandez_Schroeder/Project_3_Hernandez_Schroeder.cpp b/Project3_Hernandez_Schroeder/Project_3_Hernandez_Schroeder.cpp
index 075b897..918899e 100644
--- a/Project3_Hernandez_Schroeder/Project_3_Hernandez_Schroeder.cpp
+++ b/Project3_Hernandez_Schroeder/Project_3_Hernandez_Schroeder.cpp
@@ -116,6 +116,7 @@ int main()
//Ask for two matrices to do calculations upon
getMatrices();
+ DisplayMenu();
return 0;
}
@@ -158,7 +159,40 @@ void DisplayMenu()
}
}
+void getMatrices()
+{
+
+ cout << endl << "Enter Elements for the 1st Matrix: " << endl;
+
+ for (i = 0; i < row; ++i)
+ for (j = 0; j < col; ++j)
+ {
+ cout << "Enter Element A" << i + 1 << j + 1 << " : " << endl;
+ cin >> MatrixA[i][j];
+ }
+
+ cout << endl << "Enter Elements for the 2nd Matrix: " << endl;
+ for (i = 0; i < row; ++i)
+ for (j = 0; j < col; ++j)
+ {
+ cout << "Enter Element B" << i + 1 << j + 1 << " : " << endl;
+ cin >> MatrixB[i][j];
+ }
+
+}
+void multiplyMatrices(float[3][3], float[3][3], float[3][3])
+{
+
+}
+
+
+void addMatrices(float MatrixA[3][3], float MatrixB[3][3], float MatrixC[3][3])
+{
+ for (int i = 0; i < row; ++i)
+ for (int j = 0; j < col;++j)
+ MatrixC[i][j] = MatrixA[i][j] + MatrixB[i][j];
+}