From f9e8eabce8a2ff389fbdf74fda94b650e305f872 Mon Sep 17 00:00:00 2001 From: KaedenGrubb <92477929+KaedenGrubb@users.noreply.github.com> Date: Tue, 7 Dec 2021 20:50:02 -0800 Subject: Add files via upload --- .../Project 3 Combined Code.sln | 31 +++++ .../Project 3 Combined Code.cpp | 114 ++++++++++++++++ .../Project 3 Combined Code.vcxproj | 147 +++++++++++++++++++++ .../Project 3 Combined Code.vcxproj.filters | 22 +++ .../Project 3 Combined Code.vcxproj.user | 4 + .../Debug/Project .e847c578.tlog/CL.command.1.tlog | Bin 0 -> 998 bytes .../Debug/Project .e847c578.tlog/CL.read.1.tlog | Bin 0 -> 21236 bytes .../Debug/Project .e847c578.tlog/CL.write.1.tlog | Bin 0 -> 952 bytes .../Project 3 Combined Code.lastbuildstate | 2 + .../Project .e847c578.tlog/link.command.1.tlog | Bin 0 -> 1732 bytes .../Debug/Project .e847c578.tlog/link.read.1.tlog | Bin 0 -> 3798 bytes .../Debug/Project .e847c578.tlog/link.write.1.tlog | Bin 0 -> 948 bytes .../x64/Debug/Project 3 Combined Code.exe.recipe | 11 ++ .../x64/Debug/Project 3 Combined Code.ilk | Bin 0 -> 638832 bytes .../x64/Debug/Project 3 Combined Code.log | 10 ++ .../x64/Debug/Project 3 Combined Code.obj | Bin 0 -> 94463 bytes .../Project 3 Combined Code/x64/Debug/vc142.idb | Bin 0 -> 175104 bytes .../Project 3 Combined Code/x64/Debug/vc142.pdb | Bin 0 -> 462848 bytes .../x64/Debug/Project 3 Combined Code.exe | Bin 0 -> 78336 bytes .../x64/Debug/Project 3 Combined Code.pdb | Bin 0 -> 1388544 bytes 20 files changed, 341 insertions(+) create mode 100644 Project 3 Combined Code/Project 3 Combined Code.sln create mode 100644 Project 3 Combined Code/Project 3 Combined Code/Project 3 Combined Code.cpp create mode 100644 Project 3 Combined Code/Project 3 Combined Code/Project 3 Combined Code.vcxproj create mode 100644 Project 3 Combined Code/Project 3 Combined Code/Project 3 Combined Code.vcxproj.filters create mode 100644 Project 3 Combined Code/Project 3 Combined Code/Project 3 Combined Code.vcxproj.user create mode 100644 Project 3 Combined Code/Project 3 Combined Code/x64/Debug/Project .e847c578.tlog/CL.command.1.tlog create mode 100644 Project 3 Combined Code/Project 3 Combined Code/x64/Debug/Project .e847c578.tlog/CL.read.1.tlog create mode 100644 Project 3 Combined Code/Project 3 Combined Code/x64/Debug/Project .e847c578.tlog/CL.write.1.tlog create mode 100644 Project 3 Combined Code/Project 3 Combined Code/x64/Debug/Project .e847c578.tlog/Project 3 Combined Code.lastbuildstate create mode 100644 Project 3 Combined Code/Project 3 Combined Code/x64/Debug/Project .e847c578.tlog/link.command.1.tlog create mode 100644 Project 3 Combined Code/Project 3 Combined Code/x64/Debug/Project .e847c578.tlog/link.read.1.tlog create mode 100644 Project 3 Combined Code/Project 3 Combined Code/x64/Debug/Project .e847c578.tlog/link.write.1.tlog create mode 100644 Project 3 Combined Code/Project 3 Combined Code/x64/Debug/Project 3 Combined Code.exe.recipe create mode 100644 Project 3 Combined Code/Project 3 Combined Code/x64/Debug/Project 3 Combined Code.ilk create mode 100644 Project 3 Combined Code/Project 3 Combined Code/x64/Debug/Project 3 Combined Code.log create mode 100644 Project 3 Combined Code/Project 3 Combined Code/x64/Debug/Project 3 Combined Code.obj create mode 100644 Project 3 Combined Code/Project 3 Combined Code/x64/Debug/vc142.idb create mode 100644 Project 3 Combined Code/Project 3 Combined Code/x64/Debug/vc142.pdb create mode 100644 Project 3 Combined Code/x64/Debug/Project 3 Combined Code.exe create mode 100644 Project 3 Combined Code/x64/Debug/Project 3 Combined Code.pdb (limited to 'Project 3 Combined Code') diff --git a/Project 3 Combined Code/Project 3 Combined Code.sln b/Project 3 Combined Code/Project 3 Combined Code.sln new file mode 100644 index 0000000..58e5175 --- /dev/null +++ b/Project 3 Combined Code/Project 3 Combined Code.sln @@ -0,0 +1,31 @@ + +Microsoft Visual Studio Solution File, Format Version 12.00 +# Visual Studio Version 16 +VisualStudioVersion = 16.0.31729.503 +MinimumVisualStudioVersion = 10.0.40219.1 +Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "Project 3 Combined Code", "Project 3 Combined Code\Project 3 Combined Code.vcxproj", "{E847C578-ACC8-4263-9DB4-E5409D13A6FA}" +EndProject +Global + GlobalSection(SolutionConfigurationPlatforms) = preSolution + Debug|x64 = Debug|x64 + Debug|x86 = Debug|x86 + Release|x64 = Release|x64 + Release|x86 = Release|x86 + EndGlobalSection + GlobalSection(ProjectConfigurationPlatforms) = postSolution + {E847C578-ACC8-4263-9DB4-E5409D13A6FA}.Debug|x64.ActiveCfg = Debug|x64 + {E847C578-ACC8-4263-9DB4-E5409D13A6FA}.Debug|x64.Build.0 = Debug|x64 + {E847C578-ACC8-4263-9DB4-E5409D13A6FA}.Debug|x86.ActiveCfg = Debug|Win32 + {E847C578-ACC8-4263-9DB4-E5409D13A6FA}.Debug|x86.Build.0 = Debug|Win32 + {E847C578-ACC8-4263-9DB4-E5409D13A6FA}.Release|x64.ActiveCfg = Release|x64 + {E847C578-ACC8-4263-9DB4-E5409D13A6FA}.Release|x64.Build.0 = Release|x64 + {E847C578-ACC8-4263-9DB4-E5409D13A6FA}.Release|x86.ActiveCfg = Release|Win32 + {E847C578-ACC8-4263-9DB4-E5409D13A6FA}.Release|x86.Build.0 = Release|Win32 + EndGlobalSection + GlobalSection(SolutionProperties) = preSolution + HideSolutionNode = FALSE + EndGlobalSection + GlobalSection(ExtensibilityGlobals) = postSolution + SolutionGuid = {8ABF3FBD-FA08-474D-8E93-83F4BE937939} + EndGlobalSection +EndGlobal diff --git a/Project 3 Combined Code/Project 3 Combined Code/Project 3 Combined Code.cpp b/Project 3 Combined Code/Project 3 Combined Code/Project 3 Combined Code.cpp new file mode 100644 index 0000000..c6255cb --- /dev/null +++ b/Project 3 Combined Code/Project 3 Combined Code/Project 3 Combined Code.cpp @@ -0,0 +1,114 @@ +//HEADER +#pragma once +#include +#include + +using namespace std; + +//function prototypes +void getNewMatrices(); +void addMatrices(); +void multiplyMatrices(); + +float Matrix1[3][3]; +float Matrix2[3][3]; + +int main() +{ + int menuChoice = 0; + while (menuChoice != 4) + { + cout << "~The Matrix Machine~\n1) Get new matrices.\n2) Multiply Matrices\n3) Add Matrices\n4) Exit\nWhat would you like to do?"; + cin >> menuChoice; + switch (menuChoice) + { + case 1: + getNewMatrices(); + break; + case 2: + multiplyMatrices(); + break; + case 3: + addMatrices(); + break; + case 4: + break; + default: + cout << "Invalid menu choice."; + } + } + cout << "\nGoodbye!\n"; +} + +void multiplyMatrices() +{ + float matrixProduct[3][3]; + char upperCornerL = 218, upperCornerR = 191, lowerCornerL = 192, lowerCornerR = 217; + for (int i = 0; i < 3; i++) + { + for (int j = 0; j < 3; j++) + { + matrixProduct[i][j] = (Matrix1[i][0] * Matrix2[0][j]) + (Matrix1[i][1] * Matrix2[1][j]) + (Matrix1[i][2] * Matrix2[2][j]); + } + } + cout << upperCornerL << setw(21) << upperCornerR + << endl; + for (int i = 0; i < 3; i++) + { + for (int j = 0; j < 3; j++) + { + cout << setw(6) << matrixProduct[i][j]; + } + cout << endl; + } + cout << lowerCornerL << setw(21) << lowerCornerR << endl; + return; +} + +//FUNCTIONS +void getNewMatrices() +{ + for (int i = 0; i < 3; i++) + { + for (int j = 0; j < 3; j++) + { + cout << "Value " << (i * 3) + (j + 1) << " of Matrix 1: "; + cin >> Matrix1[i][j]; + } + } + + for (int i = 0; i < 3; i++) + { + for (int j = 0; j < 3; j++) + { + cout << "Value " << (i * 3) + (j + 1) << " of Matrix 2: "; + cin >> Matrix2[i][j]; + } + } +} + +void addMatrices() +{ + float displayMatrix[3][3]; + char upperCornerL = 218, upperCornerR = 191, lowerCornerL = 192, lowerCornerR = 217; + + for (int i = 0; i < 3; i++) + { + for (int j = 0; j < 3; j++) + { + displayMatrix[i][j] = Matrix1[i][j] + Matrix2[i][j]; + } + } + + cout << upperCornerL << setw(21) << upperCornerR + << endl; + for (int i = 0; i < 3; i++) + { + for (int j = 0; j < 3; j++) + { + cout << setw(6) << displayMatrix[i][j]; + } + cout << endl; + } + cout << lowerCornerL << setw(21) << lowerCornerR << endl; +} \ No newline at end of file diff --git a/Project 3 Combined Code/Project 3 Combined Code/Project 3 Combined Code.vcxproj b/Project 3 Combined Code/Project 3 Combined Code/Project 3 Combined Code.vcxproj new file mode 100644 index 0000000..9217e18 --- /dev/null +++ b/Project 3 Combined Code/Project 3 Combined Code/Project 3 Combined Code.vcxproj @@ -0,0 +1,147 @@ + + + + + Debug + Win32 + + + Release + Win32 + + + Debug + x64 + + + Release + x64 + + + + 16.0 + Win32Proj + {e847c578-acc8-4263-9db4-e5409d13a6fa} + Project3CombinedCode + 10.0 + + + + Application + true + v142 + Unicode + + + Application + false + v142 + true + Unicode + + + Application + true + v142 + Unicode + + + Application + false + v142 + true + Unicode + + + + + + + + + + + + + + + + + + + + + true + + + false + + + true + + + false + + + + Level3 + true + WIN32;_DEBUG;_CONSOLE;%(PreprocessorDefinitions) + true + + + Console + true + + + + + Level3 + true + true + true + WIN32;NDEBUG;_CONSOLE;%(PreprocessorDefinitions) + true + + + Console + true + true + true + + + + + Level3 + true + _DEBUG;_CONSOLE;%(PreprocessorDefinitions) + true + + + Console + true + + + + + Level3 + true + true + true + NDEBUG;_CONSOLE;%(PreprocessorDefinitions) + true + + + Console + true + true + true + + + + + + + + + \ No newline at end of file diff --git a/Project 3 Combined Code/Project 3 Combined Code/Project 3 Combined Code.vcxproj.filters b/Project 3 Combined Code/Project 3 Combined Code/Project 3 Combined Code.vcxproj.filters new file mode 100644 index 0000000..af07f44 --- /dev/null +++ b/Project 3 Combined Code/Project 3 Combined Code/Project 3 Combined Code.vcxproj.filters @@ -0,0 +1,22 @@ + + + + + {4FC737F1-C7A5-4376-A066-2A32D752A2FF} + cpp;c;cc;cxx;c++;cppm;ixx;def;odl;idl;hpj;bat;asm;asmx + + + {93995380-89BD-4b04-88EB-625FBE52EBFB} + h;hh;hpp;hxx;h++;hm;inl;inc;ipp;xsd + + + {67DA6AB6-F800-4c08-8B7A-83BB121AAD01} + rc;ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe;resx;tiff;tif;png;wav;mfcribbon-ms + + + + + Source Files + + + \ No newline at end of file diff --git a/Project 3 Combined Code/Project 3 Combined Code/Project 3 Combined Code.vcxproj.user b/Project 3 Combined Code/Project 3 Combined Code/Project 3 Combined Code.vcxproj.user new file mode 100644 index 0000000..0f14913 --- /dev/null +++ b/Project 3 Combined Code/Project 3 Combined Code/Project 3 Combined Code.vcxproj.user @@ -0,0 +1,4 @@ + + + + \ No newline at end of file diff --git a/Project 3 Combined Code/Project 3 Combined Code/x64/Debug/Project .e847c578.tlog/CL.command.1.tlog b/Project 3 Combined Code/Project 3 Combined Code/x64/Debug/Project .e847c578.tlog/CL.command.1.tlog new file mode 100644 index 0000000..208a21e Binary files /dev/null and b/Project 3 Combined Code/Project 3 Combined Code/x64/Debug/Project .e847c578.tlog/CL.command.1.tlog differ diff --git a/Project 3 Combined Code/Project 3 Combined Code/x64/Debug/Project .e847c578.tlog/CL.read.1.tlog b/Project 3 Combined Code/Project 3 Combined Code/x64/Debug/Project .e847c578.tlog/CL.read.1.tlog new file mode 100644 index 0000000..0500ec5 Binary files /dev/null and b/Project 3 Combined Code/Project 3 Combined Code/x64/Debug/Project .e847c578.tlog/CL.read.1.tlog differ diff --git a/Project 3 Combined Code/Project 3 Combined Code/x64/Debug/Project .e847c578.tlog/CL.write.1.tlog b/Project 3 Combined Code/Project 3 Combined Code/x64/Debug/Project .e847c578.tlog/CL.write.1.tlog new file mode 100644 index 0000000..7855736 Binary files /dev/null and b/Project 3 Combined Code/Project 3 Combined Code/x64/Debug/Project .e847c578.tlog/CL.write.1.tlog differ diff --git a/Project 3 Combined Code/Project 3 Combined Code/x64/Debug/Project .e847c578.tlog/Project 3 Combined Code.lastbuildstate b/Project 3 Combined Code/Project 3 Combined Code/x64/Debug/Project .e847c578.tlog/Project 3 Combined Code.lastbuildstate new file mode 100644 index 0000000..93b7937 --- /dev/null +++ b/Project 3 Combined Code/Project 3 Combined Code/x64/Debug/Project .e847c578.tlog/Project 3 Combined Code.lastbuildstate @@ -0,0 +1,2 @@ +PlatformToolSet=v142:VCToolArchitecture=Native32Bit:VCToolsVersion=14.29.30133:VCServicingVersionATL=14.29.30136:VCServicingVersionCrtHeaders=14.29.30136:VCServicingVersionCompilers=14.29.30136:TargetPlatformVersion=10.0.19041.0: +Debug|x64|C:\Users\Kaeden Grubb\Desktop\CST 116 Work\Project 3 Combined Code\| diff --git a/Project 3 Combined Code/Project 3 Combined Code/x64/Debug/Project .e847c578.tlog/link.command.1.tlog b/Project 3 Combined Code/Project 3 Combined Code/x64/Debug/Project .e847c578.tlog/link.command.1.tlog new file mode 100644 index 0000000..bb8af14 Binary files /dev/null and b/Project 3 Combined Code/Project 3 Combined Code/x64/Debug/Project .e847c578.tlog/link.command.1.tlog differ diff --git a/Project 3 Combined Code/Project 3 Combined Code/x64/Debug/Project .e847c578.tlog/link.read.1.tlog b/Project 3 Combined Code/Project 3 Combined Code/x64/Debug/Project .e847c578.tlog/link.read.1.tlog new file mode 100644 index 0000000..c5c0379 Binary files /dev/null and b/Project 3 Combined Code/Project 3 Combined Code/x64/Debug/Project .e847c578.tlog/link.read.1.tlog differ diff --git a/Project 3 Combined Code/Project 3 Combined Code/x64/Debug/Project .e847c578.tlog/link.write.1.tlog b/Project 3 Combined Code/Project 3 Combined Code/x64/Debug/Project .e847c578.tlog/link.write.1.tlog new file mode 100644 index 0000000..2b7ff88 Binary files /dev/null and b/Project 3 Combined Code/Project 3 Combined Code/x64/Debug/Project .e847c578.tlog/link.write.1.tlog differ diff --git a/Project 3 Combined Code/Project 3 Combined Code/x64/Debug/Project 3 Combined Code.exe.recipe b/Project 3 Combined Code/Project 3 Combined Code/x64/Debug/Project 3 Combined Code.exe.recipe new file mode 100644 index 0000000..0479e41 --- /dev/null +++ b/Project 3 Combined Code/Project 3 Combined Code/x64/Debug/Project 3 Combined Code.exe.recipe @@ -0,0 +1,11 @@ + + + + + C:\Users\Kaeden Grubb\Desktop\CST 116 Work\Project 3 Combined Code\x64\Debug\Project 3 Combined Code.exe + + + + + + \ No newline at end of file diff --git a/Project 3 Combined Code/Project 3 Combined Code/x64/Debug/Project 3 Combined Code.ilk b/Project 3 Combined Code/Project 3 Combined Code/x64/Debug/Project 3 Combined Code.ilk new file mode 100644 index 0000000..b3055a2 Binary files /dev/null and b/Project 3 Combined Code/Project 3 Combined Code/x64/Debug/Project 3 Combined Code.ilk differ diff --git a/Project 3 Combined Code/Project 3 Combined Code/x64/Debug/Project 3 Combined Code.log b/Project 3 Combined Code/Project 3 Combined Code/x64/Debug/Project 3 Combined Code.log new file mode 100644 index 0000000..b5c05da --- /dev/null +++ b/Project 3 Combined Code/Project 3 Combined Code/x64/Debug/Project 3 Combined Code.log @@ -0,0 +1,10 @@ + Project 3 Combined Code.cpp +C:\Users\Kaeden Grubb\Desktop\CST 116 Work\Project 3 Combined Code\Project 3 Combined Code\Project 3 Combined Code.cpp(46,25): warning C4309: 'initializing': truncation of constant value +C:\Users\Kaeden Grubb\Desktop\CST 116 Work\Project 3 Combined Code\Project 3 Combined Code\Project 3 Combined Code.cpp(46,45): warning C4309: 'initializing': truncation of constant value +C:\Users\Kaeden Grubb\Desktop\CST 116 Work\Project 3 Combined Code\Project 3 Combined Code\Project 3 Combined Code.cpp(46,65): warning C4309: 'initializing': truncation of constant value +C:\Users\Kaeden Grubb\Desktop\CST 116 Work\Project 3 Combined Code\Project 3 Combined Code\Project 3 Combined Code.cpp(46,85): warning C4309: 'initializing': truncation of constant value +C:\Users\Kaeden Grubb\Desktop\CST 116 Work\Project 3 Combined Code\Project 3 Combined Code\Project 3 Combined Code.cpp(93,25): warning C4309: 'initializing': truncation of constant value +C:\Users\Kaeden Grubb\Desktop\CST 116 Work\Project 3 Combined Code\Project 3 Combined Code\Project 3 Combined Code.cpp(93,45): warning C4309: 'initializing': truncation of constant value +C:\Users\Kaeden Grubb\Desktop\CST 116 Work\Project 3 Combined Code\Project 3 Combined Code\Project 3 Combined Code.cpp(93,65): warning C4309: 'initializing': truncation of constant value +C:\Users\Kaeden Grubb\Desktop\CST 116 Work\Project 3 Combined Code\Project 3 Combined Code\Project 3 Combined Code.cpp(93,85): warning C4309: 'initializing': truncation of constant value + Project 3 Combined Code.vcxproj -> C:\Users\Kaeden Grubb\Desktop\CST 116 Work\Project 3 Combined Code\x64\Debug\Project 3 Combined Code.exe diff --git a/Project 3 Combined Code/Project 3 Combined Code/x64/Debug/Project 3 Combined Code.obj b/Project 3 Combined Code/Project 3 Combined Code/x64/Debug/Project 3 Combined Code.obj new file mode 100644 index 0000000..d082ad2 Binary files /dev/null and b/Project 3 Combined Code/Project 3 Combined Code/x64/Debug/Project 3 Combined Code.obj differ diff --git a/Project 3 Combined Code/Project 3 Combined Code/x64/Debug/vc142.idb b/Project 3 Combined Code/Project 3 Combined Code/x64/Debug/vc142.idb new file mode 100644 index 0000000..3ec826f Binary files /dev/null and b/Project 3 Combined Code/Project 3 Combined Code/x64/Debug/vc142.idb differ diff --git a/Project 3 Combined Code/Project 3 Combined Code/x64/Debug/vc142.pdb b/Project 3 Combined Code/Project 3 Combined Code/x64/Debug/vc142.pdb new file mode 100644 index 0000000..e2827ea Binary files /dev/null and b/Project 3 Combined Code/Project 3 Combined Code/x64/Debug/vc142.pdb differ diff --git a/Project 3 Combined Code/x64/Debug/Project 3 Combined Code.exe b/Project 3 Combined Code/x64/Debug/Project 3 Combined Code.exe new file mode 100644 index 0000000..1db6504 Binary files /dev/null and b/Project 3 Combined Code/x64/Debug/Project 3 Combined Code.exe differ diff --git a/Project 3 Combined Code/x64/Debug/Project 3 Combined Code.pdb b/Project 3 Combined Code/x64/Debug/Project 3 Combined Code.pdb new file mode 100644 index 0000000..b32c0d1 Binary files /dev/null and b/Project 3 Combined Code/x64/Debug/Project 3 Combined Code.pdb differ -- cgit v1.2.3