diff options
| author | KaedenGrubb <[email protected]> | 2021-12-11 10:33:37 -0800 |
|---|---|---|
| committer | GitHub <[email protected]> | 2021-12-11 10:33:37 -0800 |
| commit | e2fc34786567b48e3ab8bf1847036a36234c771a (patch) | |
| tree | 230ff7d09db463ea7e9dd1aba6921ff7e57e954a | |
| parent | Add online IDE url (diff) | |
| download | cst115-lab8-kaedengrubb-e2fc34786567b48e3ab8bf1847036a36234c771a.tar.xz cst115-lab8-kaedengrubb-e2fc34786567b48e3ab8bf1847036a36234c771a.zip | |
75 files changed, 997 insertions, 0 deletions
diff --git a/Module 8 Exercise 11.13/Debug/Module 8 Exercise 11.13.exe b/Module 8 Exercise 11.13/Debug/Module 8 Exercise 11.13.exe Binary files differnew file mode 100644 index 0000000..0045592 --- /dev/null +++ b/Module 8 Exercise 11.13/Debug/Module 8 Exercise 11.13.exe diff --git a/Module 8 Exercise 11.13/Debug/Module 8 Exercise 11.13.pdb b/Module 8 Exercise 11.13/Debug/Module 8 Exercise 11.13.pdb Binary files differnew file mode 100644 index 0000000..9e561e5 --- /dev/null +++ b/Module 8 Exercise 11.13/Debug/Module 8 Exercise 11.13.pdb diff --git a/Module 8 Exercise 11.13/Module 8 Exercise 11.13/Debug/Module 8 Exercise 11.13.exe.recipe b/Module 8 Exercise 11.13/Module 8 Exercise 11.13/Debug/Module 8 Exercise 11.13.exe.recipe new file mode 100644 index 0000000..c18cc89 --- /dev/null +++ b/Module 8 Exercise 11.13/Module 8 Exercise 11.13/Debug/Module 8 Exercise 11.13.exe.recipe @@ -0,0 +1,11 @@ +<?xml version="1.0" encoding="utf-8"?>
+<Project>
+ <ProjectOutputs>
+ <ProjectOutput>
+ <FullPath>C:\Users\Kaeden Grubb\Desktop\CST 116 Work\Module 8 Exercise 11.13\Debug\Module 8 Exercise 11.13.exe</FullPath>
+ </ProjectOutput>
+ </ProjectOutputs>
+ <ContentFiles />
+ <SatelliteDlls />
+ <NonRecipeFileRefs />
+</Project>
\ No newline at end of file diff --git a/Module 8 Exercise 11.13/Module 8 Exercise 11.13/Debug/Module 8 Exercise 11.13.ilk b/Module 8 Exercise 11.13/Module 8 Exercise 11.13/Debug/Module 8 Exercise 11.13.ilk Binary files differnew file mode 100644 index 0000000..2541ce9 --- /dev/null +++ b/Module 8 Exercise 11.13/Module 8 Exercise 11.13/Debug/Module 8 Exercise 11.13.ilk diff --git a/Module 8 Exercise 11.13/Module 8 Exercise 11.13/Debug/Module 8 Exercise 11.13.log b/Module 8 Exercise 11.13/Module 8 Exercise 11.13/Debug/Module 8 Exercise 11.13.log new file mode 100644 index 0000000..6bf01d4 --- /dev/null +++ b/Module 8 Exercise 11.13/Module 8 Exercise 11.13/Debug/Module 8 Exercise 11.13.log @@ -0,0 +1,2 @@ + Module 8 Exercise 11.13.cpp
+ Module 8 Exercise 11.13.vcxproj -> C:\Users\Kaeden Grubb\Desktop\CST 116 Work\Module 8 Exercise 11.13\Debug\Module 8 Exercise 11.13.exe
diff --git a/Module 8 Exercise 11.13/Module 8 Exercise 11.13/Debug/Module 8 Exercise 11.13.obj b/Module 8 Exercise 11.13/Module 8 Exercise 11.13/Debug/Module 8 Exercise 11.13.obj Binary files differnew file mode 100644 index 0000000..0bfabd6 --- /dev/null +++ b/Module 8 Exercise 11.13/Module 8 Exercise 11.13/Debug/Module 8 Exercise 11.13.obj diff --git a/Module 8 Exercise 11.13/Module 8 Exercise 11.13/Debug/Module 8.b4294981.tlog/CL.command.1.tlog b/Module 8 Exercise 11.13/Module 8 Exercise 11.13/Debug/Module 8.b4294981.tlog/CL.command.1.tlog Binary files differnew file mode 100644 index 0000000..3033fb9 --- /dev/null +++ b/Module 8 Exercise 11.13/Module 8 Exercise 11.13/Debug/Module 8.b4294981.tlog/CL.command.1.tlog diff --git a/Module 8 Exercise 11.13/Module 8 Exercise 11.13/Debug/Module 8.b4294981.tlog/CL.read.1.tlog b/Module 8 Exercise 11.13/Module 8 Exercise 11.13/Debug/Module 8.b4294981.tlog/CL.read.1.tlog Binary files differnew file mode 100644 index 0000000..9aa029c --- /dev/null +++ b/Module 8 Exercise 11.13/Module 8 Exercise 11.13/Debug/Module 8.b4294981.tlog/CL.read.1.tlog diff --git a/Module 8 Exercise 11.13/Module 8 Exercise 11.13/Debug/Module 8.b4294981.tlog/CL.write.1.tlog b/Module 8 Exercise 11.13/Module 8 Exercise 11.13/Debug/Module 8.b4294981.tlog/CL.write.1.tlog Binary files differnew file mode 100644 index 0000000..7744432 --- /dev/null +++ b/Module 8 Exercise 11.13/Module 8 Exercise 11.13/Debug/Module 8.b4294981.tlog/CL.write.1.tlog diff --git a/Module 8 Exercise 11.13/Module 8 Exercise 11.13/Debug/Module 8.b4294981.tlog/Module 8 Exercise 11.13.lastbuildstate b/Module 8 Exercise 11.13/Module 8 Exercise 11.13/Debug/Module 8.b4294981.tlog/Module 8 Exercise 11.13.lastbuildstate new file mode 100644 index 0000000..ab6a3cd --- /dev/null +++ b/Module 8 Exercise 11.13/Module 8 Exercise 11.13/Debug/Module 8.b4294981.tlog/Module 8 Exercise 11.13.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|Win32|C:\Users\Kaeden Grubb\Desktop\CST 116 Work\Module 8 Exercise 11.13\|
diff --git a/Module 8 Exercise 11.13/Module 8 Exercise 11.13/Debug/Module 8.b4294981.tlog/link.command.1.tlog b/Module 8 Exercise 11.13/Module 8 Exercise 11.13/Debug/Module 8.b4294981.tlog/link.command.1.tlog Binary files differnew file mode 100644 index 0000000..2a8b615 --- /dev/null +++ b/Module 8 Exercise 11.13/Module 8 Exercise 11.13/Debug/Module 8.b4294981.tlog/link.command.1.tlog diff --git a/Module 8 Exercise 11.13/Module 8 Exercise 11.13/Debug/Module 8.b4294981.tlog/link.read.1.tlog b/Module 8 Exercise 11.13/Module 8 Exercise 11.13/Debug/Module 8.b4294981.tlog/link.read.1.tlog Binary files differnew file mode 100644 index 0000000..5e98506 --- /dev/null +++ b/Module 8 Exercise 11.13/Module 8 Exercise 11.13/Debug/Module 8.b4294981.tlog/link.read.1.tlog diff --git a/Module 8 Exercise 11.13/Module 8 Exercise 11.13/Debug/Module 8.b4294981.tlog/link.write.1.tlog b/Module 8 Exercise 11.13/Module 8 Exercise 11.13/Debug/Module 8.b4294981.tlog/link.write.1.tlog Binary files differnew file mode 100644 index 0000000..7b41b4d --- /dev/null +++ b/Module 8 Exercise 11.13/Module 8 Exercise 11.13/Debug/Module 8.b4294981.tlog/link.write.1.tlog diff --git a/Module 8 Exercise 11.13/Module 8 Exercise 11.13/Debug/vc142.idb b/Module 8 Exercise 11.13/Module 8 Exercise 11.13/Debug/vc142.idb Binary files differnew file mode 100644 index 0000000..aa5323f --- /dev/null +++ b/Module 8 Exercise 11.13/Module 8 Exercise 11.13/Debug/vc142.idb diff --git a/Module 8 Exercise 11.13/Module 8 Exercise 11.13/Debug/vc142.pdb b/Module 8 Exercise 11.13/Module 8 Exercise 11.13/Debug/vc142.pdb Binary files differnew file mode 100644 index 0000000..77802ed --- /dev/null +++ b/Module 8 Exercise 11.13/Module 8 Exercise 11.13/Debug/vc142.pdb diff --git a/Module 8 Exercise 11.13/Module 8 Exercise 11.13/Module 8 Exercise 11.13.cpp b/Module 8 Exercise 11.13/Module 8 Exercise 11.13/Module 8 Exercise 11.13.cpp new file mode 100644 index 0000000..c042e7a --- /dev/null +++ b/Module 8 Exercise 11.13/Module 8 Exercise 11.13/Module 8 Exercise 11.13.cpp @@ -0,0 +1,150 @@ +/********************************************************************
+* File: Chapter 11 Debug.cpp
+*
+* General Instructions: Complete each step before proceeding to the
+* next.
+*
+* Debugging Exercise 1
+*
+* 1) Make your own data file like Troy 12, with the next person on the
+* next line and save it to a directory you create on your drive.
+* 2) Under the Project menu, select Add Existing Item and
+* add the input file you just placed on your drive to your
+* current project. Make sure your Solution Explorer window
+* is visible. If not, you can display it by selecting Solution
+* Explorer (or Ctrl+Alt+L).
+* 3) Open the input file by simply double clicking the name of the
+* file in your Solution Explorer.
+* 4) Build and execute the program.
+* 5) Update the file paths below to correctly represent the path you
+* created.
+* 6) Rebuild and execute the program.
+* 7) Examine the code and the output and notice the use of
+* parallel arrays.
+* 8) Add the output file created via the execution of
+* your program to your Project. Execute your program again
+* and notice how Visual Studio has rewritten your output file
+* and asks if you would like to reload the file (select Yes).
+* 9) Examine the contents of both the input and the output file.
+* 10) Fix all the problems in your code that exist in relation to
+* the output. Verify that your output is appropriate for your
+ input file.
+* 11) Build and execute your code until you have all errors
+* removed and all the output is correct.
+*
+* Debugging Exercise 2
+*
+* 1) Replace the double slashes (\\) in the input file open statement
+* with only a single slash
+* (i.e., inFile.open("C:\TEMP\Chap_11_data.txt").
+* 2) Build your code, noticing the impact of the invalid path you
+* created in the previous step.
+* 3) Replace the backslashes as they were.
+* 4) Change both the input and output filenames so they are
+* invalid.
+* 5) Update the file related error messages within the code
+* to also provide the specific name of the file that is having a
+* problem.
+* 6) Rebuild and execute your program to verify that your messages
+* are correct.
+* 7) Correct the path names.
+* 8) Build and execute your code and carefully check your
+* output on both the console and in the output file.
+*
+********************************************************************/
+#include <iostream>
+#include <fstream> // For the files!!!!
+#include <iomanip> // For manipulators & formatting options
+using std::cin;
+using std::cout;
+using std::endl;
+using std::setw;
+using std::ios;
+
+using std::ifstream;
+using std::ofstream;
+
+const int EMPLOYEES = 20;
+const int MAX = 21;
+
+int ReadData(ifstream& inFile, ofstream& outFile, char name[][MAX], int age[]);
+void WriteOutputFile(ofstream& outFile, char name[][MAX], int age[],
+ int counter);
+void PrintTotalsAndSummary(ofstream& out, int totalRecords);
+
+int main()
+{
+ char name[EMPLOYEES][MAX];
+ int age[EMPLOYEES];
+ int record_counter(0);
+
+ ifstream inFile;
+
+ // Notice how this automatically opens the file
+ ofstream outFile("C:\\Users\\Kaeden Grubb\\Documents\\Chap_11_Report.txt");
+
+ inFile.open("C:\\Users\\Kaeden Grubb\\Documents\\Chap_11_data.txt");
+
+ if (inFile.is_open())
+ {
+ record_counter = ReadData(inFile, outFile, name, age);
+ inFile.close();
+
+ if (outFile.is_open())
+ {
+ WriteOutputFile(outFile, name, age, record_counter);
+ PrintTotalsAndSummary(outFile, record_counter);
+ outFile.close();
+ }
+ else
+ {
+ cout << "Trouble Opening Chap_11_Report";
+ cout << "\n\n\t\t ** About to EXIT NOW! ** ";
+ }
+ }
+ else
+ {
+ cout << "Trouble Opening Chap_11_Data";
+ cout << "\n\n\t\t ** About to EXIT NOW! ** ";
+ }
+ return 0;
+}
+int ReadData(ifstream& inFile, ofstream& outFile, char name[][MAX], int age[])
+{
+ int counter = 0;
+ inFile >> name[counter] >> age[counter]; // Priming Read
+
+ while (!inFile.eof())
+ {
+ cout << setiosflags(ios::left) << setw(25)
+ << name[counter] << resetiosflags(ios::left)
+ << setw(4) << age[counter] << endl;
+ counter++;
+ inFile >> name[counter] >> age[counter];
+ }
+ cout << setiosflags(ios::left) << setw(25)
+ << name[counter] << resetiosflags(ios::left)
+ << setw(4) << age[counter] << endl;
+ return counter;
+}
+void WriteOutputFile(ofstream& outFile, char name[][MAX], int age[], int counter)
+{
+ outFile << " Here is the Output File" << endl;
+ for (int r = 0; r <= counter; r++)
+ {
+ outFile << setiosflags(ios::left) << setw(25)
+ << name[r] << setw(4)
+ << resetiosflags(ios::left) << age[r]
+ << endl;
+ }
+}
+void PrintTotalsAndSummary(ofstream& outFile, int totalRecords)
+{
+ // To screen
+ cout << "\n\n\t** Total Records: " << totalRecords + 1 << " **\n"
+ << "\t\t The End \n";
+
+ // To file
+ outFile << "\n\n\t** Total Records: " << totalRecords + 1 << " **\n"
+ << "\t\t The End \n";
+}
diff --git a/Module 8 Exercise 11.13/Module 8 Exercise 11.13/Module 8 Exercise 11.13.vcxproj b/Module 8 Exercise 11.13/Module 8 Exercise 11.13/Module 8 Exercise 11.13.vcxproj new file mode 100644 index 0000000..270e0de --- /dev/null +++ b/Module 8 Exercise 11.13/Module 8 Exercise 11.13/Module 8 Exercise 11.13.vcxproj @@ -0,0 +1,151 @@ +<?xml version="1.0" encoding="utf-8"?>
+<Project DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
+ <ItemGroup Label="ProjectConfigurations">
+ <ProjectConfiguration Include="Debug|Win32">
+ <Configuration>Debug</Configuration>
+ <Platform>Win32</Platform>
+ </ProjectConfiguration>
+ <ProjectConfiguration Include="Release|Win32">
+ <Configuration>Release</Configuration>
+ <Platform>Win32</Platform>
+ </ProjectConfiguration>
+ <ProjectConfiguration Include="Debug|x64">
+ <Configuration>Debug</Configuration>
+ <Platform>x64</Platform>
+ </ProjectConfiguration>
+ <ProjectConfiguration Include="Release|x64">
+ <Configuration>Release</Configuration>
+ <Platform>x64</Platform>
+ </ProjectConfiguration>
+ </ItemGroup>
+ <PropertyGroup Label="Globals">
+ <VCProjectVersion>16.0</VCProjectVersion>
+ <Keyword>Win32Proj</Keyword>
+ <ProjectGuid>{b4294981-5c59-4573-87f8-055fed3173d9}</ProjectGuid>
+ <RootNamespace>Module8Exercise1113</RootNamespace>
+ <WindowsTargetPlatformVersion>10.0</WindowsTargetPlatformVersion>
+ </PropertyGroup>
+ <Import Project="$(VCTargetsPath)\Microsoft.Cpp.Default.props" />
+ <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'" Label="Configuration">
+ <ConfigurationType>Application</ConfigurationType>
+ <UseDebugLibraries>true</UseDebugLibraries>
+ <PlatformToolset>v142</PlatformToolset>
+ <CharacterSet>Unicode</CharacterSet>
+ </PropertyGroup>
+ <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'" Label="Configuration">
+ <ConfigurationType>Application</ConfigurationType>
+ <UseDebugLibraries>false</UseDebugLibraries>
+ <PlatformToolset>v142</PlatformToolset>
+ <WholeProgramOptimization>true</WholeProgramOptimization>
+ <CharacterSet>Unicode</CharacterSet>
+ </PropertyGroup>
+ <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'" Label="Configuration">
+ <ConfigurationType>Application</ConfigurationType>
+ <UseDebugLibraries>true</UseDebugLibraries>
+ <PlatformToolset>v142</PlatformToolset>
+ <CharacterSet>Unicode</CharacterSet>
+ </PropertyGroup>
+ <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'" Label="Configuration">
+ <ConfigurationType>Application</ConfigurationType>
+ <UseDebugLibraries>false</UseDebugLibraries>
+ <PlatformToolset>v142</PlatformToolset>
+ <WholeProgramOptimization>true</WholeProgramOptimization>
+ <CharacterSet>Unicode</CharacterSet>
+ </PropertyGroup>
+ <Import Project="$(VCTargetsPath)\Microsoft.Cpp.props" />
+ <ImportGroup Label="ExtensionSettings">
+ </ImportGroup>
+ <ImportGroup Label="Shared">
+ </ImportGroup>
+ <ImportGroup Label="PropertySheets" Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
+ <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
+ </ImportGroup>
+ <ImportGroup Label="PropertySheets" Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
+ <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
+ </ImportGroup>
+ <ImportGroup Label="PropertySheets" Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">
+ <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
+ </ImportGroup>
+ <ImportGroup Label="PropertySheets" Condition="'$(Configuration)|$(Platform)'=='Release|x64'">
+ <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
+ </ImportGroup>
+ <PropertyGroup Label="UserMacros" />
+ <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
+ <LinkIncremental>true</LinkIncremental>
+ </PropertyGroup>
+ <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
+ <LinkIncremental>false</LinkIncremental>
+ </PropertyGroup>
+ <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">
+ <LinkIncremental>true</LinkIncremental>
+ </PropertyGroup>
+ <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'">
+ <LinkIncremental>false</LinkIncremental>
+ </PropertyGroup>
+ <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
+ <ClCompile>
+ <WarningLevel>Level3</WarningLevel>
+ <SDLCheck>true</SDLCheck>
+ <PreprocessorDefinitions>WIN32;_DEBUG;_CONSOLE;%(PreprocessorDefinitions)</PreprocessorDefinitions>
+ <ConformanceMode>true</ConformanceMode>
+ </ClCompile>
+ <Link>
+ <SubSystem>Console</SubSystem>
+ <GenerateDebugInformation>true</GenerateDebugInformation>
+ </Link>
+ </ItemDefinitionGroup>
+ <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
+ <ClCompile>
+ <WarningLevel>Level3</WarningLevel>
+ <FunctionLevelLinking>true</FunctionLevelLinking>
+ <IntrinsicFunctions>true</IntrinsicFunctions>
+ <SDLCheck>true</SDLCheck>
+ <PreprocessorDefinitions>WIN32;NDEBUG;_CONSOLE;%(PreprocessorDefinitions)</PreprocessorDefinitions>
+ <ConformanceMode>true</ConformanceMode>
+ </ClCompile>
+ <Link>
+ <SubSystem>Console</SubSystem>
+ <EnableCOMDATFolding>true</EnableCOMDATFolding>
+ <OptimizeReferences>true</OptimizeReferences>
+ <GenerateDebugInformation>true</GenerateDebugInformation>
+ </Link>
+ </ItemDefinitionGroup>
+ <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">
+ <ClCompile>
+ <WarningLevel>Level3</WarningLevel>
+ <SDLCheck>true</SDLCheck>
+ <PreprocessorDefinitions>_DEBUG;_CONSOLE;%(PreprocessorDefinitions)</PreprocessorDefinitions>
+ <ConformanceMode>true</ConformanceMode>
+ </ClCompile>
+ <Link>
+ <SubSystem>Console</SubSystem>
+ <GenerateDebugInformation>true</GenerateDebugInformation>
+ </Link>
+ </ItemDefinitionGroup>
+ <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'">
+ <ClCompile>
+ <WarningLevel>Level3</WarningLevel>
+ <FunctionLevelLinking>true</FunctionLevelLinking>
+ <IntrinsicFunctions>true</IntrinsicFunctions>
+ <SDLCheck>true</SDLCheck>
+ <PreprocessorDefinitions>NDEBUG;_CONSOLE;%(PreprocessorDefinitions)</PreprocessorDefinitions>
+ <ConformanceMode>true</ConformanceMode>
+ </ClCompile>
+ <Link>
+ <SubSystem>Console</SubSystem>
+ <EnableCOMDATFolding>true</EnableCOMDATFolding>
+ <OptimizeReferences>true</OptimizeReferences>
+ <GenerateDebugInformation>true</GenerateDebugInformation>
+ </Link>
+ </ItemDefinitionGroup>
+ <ItemGroup>
+ <ClCompile Include="Module 8 Exercise 11.13.cpp" />
+ </ItemGroup>
+ <ItemGroup>
+ <Text Include="..\..\..\..\Documents\Chap_11_data.txt" />
+ <Text Include="..\..\..\..\Documents\Chap_11_Report.txt" />
+ </ItemGroup>
+ <Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
+ <ImportGroup Label="ExtensionTargets">
+ </ImportGroup>
+</Project>
\ No newline at end of file diff --git a/Module 8 Exercise 11.13/Module 8 Exercise 11.13/Module 8 Exercise 11.13.vcxproj.filters b/Module 8 Exercise 11.13/Module 8 Exercise 11.13/Module 8 Exercise 11.13.vcxproj.filters new file mode 100644 index 0000000..25f05b5 --- /dev/null +++ b/Module 8 Exercise 11.13/Module 8 Exercise 11.13/Module 8 Exercise 11.13.vcxproj.filters @@ -0,0 +1,28 @@ +<?xml version="1.0" encoding="utf-8"?>
+<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
+ <ItemGroup>
+ <Filter Include="Source Files">
+ <UniqueIdentifier>{4FC737F1-C7A5-4376-A066-2A32D752A2FF}</UniqueIdentifier>
+ <Extensions>cpp;c;cc;cxx;c++;cppm;ixx;def;odl;idl;hpj;bat;asm;asmx</Extensions>
+ </Filter>
+ <Filter Include="Header Files">
+ <UniqueIdentifier>{93995380-89BD-4b04-88EB-625FBE52EBFB}</UniqueIdentifier>
+ <Extensions>h;hh;hpp;hxx;h++;hm;inl;inc;ipp;xsd</Extensions>
+ </Filter>
+ <Filter Include="Resource Files">
+ <UniqueIdentifier>{67DA6AB6-F800-4c08-8B7A-83BB121AAD01}</UniqueIdentifier>
+ <Extensions>rc;ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe;resx;tiff;tif;png;wav;mfcribbon-ms</Extensions>
+ </Filter>
+ </ItemGroup>
+ <ItemGroup>
+ <ClCompile Include="Module 8 Exercise 11.13.cpp">
+ <Filter>Source Files</Filter>
+ </ClCompile>
+ </ItemGroup>
+ <ItemGroup>
+ <Text Include="..\..\..\..\Documents\Chap_11_data.txt">
+ <Filter>Source Files</Filter>
+ </Text>
+ <Text Include="..\..\..\..\Documents\Chap_11_Report.txt" />
+ </ItemGroup>
+</Project>
\ No newline at end of file diff --git a/Module 8 Exercise 11.13/Module 8 Exercise 11.13/Module 8 Exercise 11.13.vcxproj.user b/Module 8 Exercise 11.13/Module 8 Exercise 11.13/Module 8 Exercise 11.13.vcxproj.user new file mode 100644 index 0000000..0f14913 --- /dev/null +++ b/Module 8 Exercise 11.13/Module 8 Exercise 11.13/Module 8 Exercise 11.13.vcxproj.user @@ -0,0 +1,4 @@ +<?xml version="1.0" encoding="utf-8"?>
+<Project ToolsVersion="Current" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
+ <PropertyGroup />
+</Project>
\ No newline at end of file diff --git a/Module 8 Exercise 11.14/Debug/Module 8 Exercise 11.14.exe b/Module 8 Exercise 11.14/Debug/Module 8 Exercise 11.14.exe Binary files differnew file mode 100644 index 0000000..7542645 --- /dev/null +++ b/Module 8 Exercise 11.14/Debug/Module 8 Exercise 11.14.exe diff --git a/Module 8 Exercise 11.14/Debug/Module 8 Exercise 11.14.pdb b/Module 8 Exercise 11.14/Debug/Module 8 Exercise 11.14.pdb Binary files differnew file mode 100644 index 0000000..4688ac8 --- /dev/null +++ b/Module 8 Exercise 11.14/Debug/Module 8 Exercise 11.14.pdb diff --git a/Module 8 Exercise 11.14/Module 8 Exercise 11.14.sln b/Module 8 Exercise 11.14/Module 8 Exercise 11.14.sln new file mode 100644 index 0000000..d25b3b0 --- /dev/null +++ b/Module 8 Exercise 11.14/Module 8 Exercise 11.14.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}") = "Module 8 Exercise 11.14", "Module 8 Exercise 11.14\Module 8 Exercise 11.14.vcxproj", "{0A9CB70A-5405-44A4-A079-A96D6C404D9D}"
+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
+ {0A9CB70A-5405-44A4-A079-A96D6C404D9D}.Debug|x64.ActiveCfg = Debug|x64
+ {0A9CB70A-5405-44A4-A079-A96D6C404D9D}.Debug|x64.Build.0 = Debug|x64
+ {0A9CB70A-5405-44A4-A079-A96D6C404D9D}.Debug|x86.ActiveCfg = Debug|Win32
+ {0A9CB70A-5405-44A4-A079-A96D6C404D9D}.Debug|x86.Build.0 = Debug|Win32
+ {0A9CB70A-5405-44A4-A079-A96D6C404D9D}.Release|x64.ActiveCfg = Release|x64
+ {0A9CB70A-5405-44A4-A079-A96D6C404D9D}.Release|x64.Build.0 = Release|x64
+ {0A9CB70A-5405-44A4-A079-A96D6C404D9D}.Release|x86.ActiveCfg = Release|Win32
+ {0A9CB70A-5405-44A4-A079-A96D6C404D9D}.Release|x86.Build.0 = Release|Win32
+ EndGlobalSection
+ GlobalSection(SolutionProperties) = preSolution
+ HideSolutionNode = FALSE
+ EndGlobalSection
+ GlobalSection(ExtensibilityGlobals) = postSolution
+ SolutionGuid = {AEE8198B-BEF1-4370-82A0-5C5AE9F8DA66}
+ EndGlobalSection
+EndGlobal
diff --git a/Module 8 Exercise 11.14/Module 8 Exercise 11.14/Debug/Module 8 Exercise 11.14.exe.recipe b/Module 8 Exercise 11.14/Module 8 Exercise 11.14/Debug/Module 8 Exercise 11.14.exe.recipe new file mode 100644 index 0000000..c304666 --- /dev/null +++ b/Module 8 Exercise 11.14/Module 8 Exercise 11.14/Debug/Module 8 Exercise 11.14.exe.recipe @@ -0,0 +1,11 @@ +<?xml version="1.0" encoding="utf-8"?>
+<Project>
+ <ProjectOutputs>
+ <ProjectOutput>
+ <FullPath>C:\Users\Kaeden Grubb\Desktop\CST 116 Work\Module 8 Exercise 11.14\Debug\Module 8 Exercise 11.14.exe</FullPath>
+ </ProjectOutput>
+ </ProjectOutputs>
+ <ContentFiles />
+ <SatelliteDlls />
+ <NonRecipeFileRefs />
+</Project>
\ No newline at end of file diff --git a/Module 8 Exercise 11.14/Module 8 Exercise 11.14/Debug/Module 8 Exercise 11.14.ilk b/Module 8 Exercise 11.14/Module 8 Exercise 11.14/Debug/Module 8 Exercise 11.14.ilk Binary files differnew file mode 100644 index 0000000..e732f32 --- /dev/null +++ b/Module 8 Exercise 11.14/Module 8 Exercise 11.14/Debug/Module 8 Exercise 11.14.ilk diff --git a/Module 8 Exercise 11.14/Module 8 Exercise 11.14/Debug/Module 8 Exercise 11.14.log b/Module 8 Exercise 11.14/Module 8 Exercise 11.14/Debug/Module 8 Exercise 11.14.log new file mode 100644 index 0000000..d41a3c7 --- /dev/null +++ b/Module 8 Exercise 11.14/Module 8 Exercise 11.14/Debug/Module 8 Exercise 11.14.log @@ -0,0 +1,2 @@ + Module 8 Exercise 11.14.cpp
+ Module 8 Exercise 11.14.vcxproj -> C:\Users\Kaeden Grubb\Desktop\CST 116 Work\Module 8 Exercise 11.14\Debug\Module 8 Exercise 11.14.exe
diff --git a/Module 8 Exercise 11.14/Module 8 Exercise 11.14/Debug/Module 8 Exercise 11.14.obj b/Module 8 Exercise 11.14/Module 8 Exercise 11.14/Debug/Module 8 Exercise 11.14.obj Binary files differnew file mode 100644 index 0000000..cd4dbca --- /dev/null +++ b/Module 8 Exercise 11.14/Module 8 Exercise 11.14/Debug/Module 8 Exercise 11.14.obj diff --git a/Module 8 Exercise 11.14/Module 8 Exercise 11.14/Debug/Module 8.0a9cb70a.tlog/CL.command.1.tlog b/Module 8 Exercise 11.14/Module 8 Exercise 11.14/Debug/Module 8.0a9cb70a.tlog/CL.command.1.tlog Binary files differnew file mode 100644 index 0000000..82df61d --- /dev/null +++ b/Module 8 Exercise 11.14/Module 8 Exercise 11.14/Debug/Module 8.0a9cb70a.tlog/CL.command.1.tlog diff --git a/Module 8 Exercise 11.14/Module 8 Exercise 11.14/Debug/Module 8.0a9cb70a.tlog/CL.read.1.tlog b/Module 8 Exercise 11.14/Module 8 Exercise 11.14/Debug/Module 8.0a9cb70a.tlog/CL.read.1.tlog Binary files differnew file mode 100644 index 0000000..314bf25 --- /dev/null +++ b/Module 8 Exercise 11.14/Module 8 Exercise 11.14/Debug/Module 8.0a9cb70a.tlog/CL.read.1.tlog diff --git a/Module 8 Exercise 11.14/Module 8 Exercise 11.14/Debug/Module 8.0a9cb70a.tlog/CL.write.1.tlog b/Module 8 Exercise 11.14/Module 8 Exercise 11.14/Debug/Module 8.0a9cb70a.tlog/CL.write.1.tlog Binary files differnew file mode 100644 index 0000000..870809a --- /dev/null +++ b/Module 8 Exercise 11.14/Module 8 Exercise 11.14/Debug/Module 8.0a9cb70a.tlog/CL.write.1.tlog diff --git a/Module 8 Exercise 11.14/Module 8 Exercise 11.14/Debug/Module 8.0a9cb70a.tlog/Module 8 Exercise 11.14.lastbuildstate b/Module 8 Exercise 11.14/Module 8 Exercise 11.14/Debug/Module 8.0a9cb70a.tlog/Module 8 Exercise 11.14.lastbuildstate new file mode 100644 index 0000000..55c9108 --- /dev/null +++ b/Module 8 Exercise 11.14/Module 8 Exercise 11.14/Debug/Module 8.0a9cb70a.tlog/Module 8 Exercise 11.14.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|Win32|C:\Users\Kaeden Grubb\Desktop\CST 116 Work\Module 8 Exercise 11.14\|
diff --git a/Module 8 Exercise 11.14/Module 8 Exercise 11.14/Debug/Module 8.0a9cb70a.tlog/link.command.1.tlog b/Module 8 Exercise 11.14/Module 8 Exercise 11.14/Debug/Module 8.0a9cb70a.tlog/link.command.1.tlog Binary files differnew file mode 100644 index 0000000..090dceb --- /dev/null +++ b/Module 8 Exercise 11.14/Module 8 Exercise 11.14/Debug/Module 8.0a9cb70a.tlog/link.command.1.tlog diff --git a/Module 8 Exercise 11.14/Module 8 Exercise 11.14/Debug/Module 8.0a9cb70a.tlog/link.read.1.tlog b/Module 8 Exercise 11.14/Module 8 Exercise 11.14/Debug/Module 8.0a9cb70a.tlog/link.read.1.tlog Binary files differnew file mode 100644 index 0000000..53a3b57 --- /dev/null +++ b/Module 8 Exercise 11.14/Module 8 Exercise 11.14/Debug/Module 8.0a9cb70a.tlog/link.read.1.tlog diff --git a/Module 8 Exercise 11.14/Module 8 Exercise 11.14/Debug/Module 8.0a9cb70a.tlog/link.write.1.tlog b/Module 8 Exercise 11.14/Module 8 Exercise 11.14/Debug/Module 8.0a9cb70a.tlog/link.write.1.tlog Binary files differnew file mode 100644 index 0000000..14af672 --- /dev/null +++ b/Module 8 Exercise 11.14/Module 8 Exercise 11.14/Debug/Module 8.0a9cb70a.tlog/link.write.1.tlog diff --git a/Module 8 Exercise 11.14/Module 8 Exercise 11.14/Debug/vc142.idb b/Module 8 Exercise 11.14/Module 8 Exercise 11.14/Debug/vc142.idb Binary files differnew file mode 100644 index 0000000..e26fb46 --- /dev/null +++ b/Module 8 Exercise 11.14/Module 8 Exercise 11.14/Debug/vc142.idb diff --git a/Module 8 Exercise 11.14/Module 8 Exercise 11.14/Debug/vc142.pdb b/Module 8 Exercise 11.14/Module 8 Exercise 11.14/Debug/vc142.pdb Binary files differnew file mode 100644 index 0000000..9431757 --- /dev/null +++ b/Module 8 Exercise 11.14/Module 8 Exercise 11.14/Debug/vc142.pdb diff --git a/Module 8 Exercise 11.14/Module 8 Exercise 11.14/Module 8 Exercise 11.14.cpp b/Module 8 Exercise 11.14/Module 8 Exercise 11.14/Module 8 Exercise 11.14.cpp new file mode 100644 index 0000000..ad94f5d --- /dev/null +++ b/Module 8 Exercise 11.14/Module 8 Exercise 11.14/Module 8 Exercise 11.14.cpp @@ -0,0 +1,104 @@ +
+#include <iostream>
+#include <fstream>
+#include <iomanip>
+using namespace std;
+
+int readFile(ifstream& inFile, ofstream& outFile, char FName[][10], char LName[][10], char SocSecure[][12], float Wage[], int Hours[], char Status[]);
+void calcWage(ifstream& inFile, ofstream& outFile, float Wage[], int Hours[], char Status[], int Records);
+void writeFile(ifstream& inFile, ofstream& outFile, char FName[][10], char LName[][10], char SocSecure[][12], float Wage[], int Hours[], char Status[], int Records);
+
+int main()
+{
+ char FName[11][10];
+ char LName[11][10];
+ char SocSecure[11][12];
+ float Wage[11];
+ int Hours[11];
+ char Status[11];
+ int Records;
+ ifstream inFile;
+ ofstream outFile("C:\\Users\\Kaeden Grubb\\Documents\\11.14_Exercise_Report.txt");
+ inFile.open("C:\\Users\\Kaeden Grubb\\Documents\\11.14_Exercise.txt");
+ if (inFile.is_open())
+ {
+ Records = readFile(inFile, outFile, FName, LName, SocSecure, Wage, Hours, Status);
+ inFile.close();
+ calcWage(inFile, outFile, Wage, Hours, Status, Records);
+ if (outFile.is_open())
+ {
+ writeFile(inFile, outFile, FName, LName, SocSecure, Wage, Hours, Status, Records);
+ outFile.close();
+ }
+ else
+ {
+ cout << "Unable to open File 11.14_Exercise_Report.txt";
+ }
+ }
+ else
+ {
+ cout << "Unable to open File 11.14_Exercise.txt";
+ }
+}
+
+int readFile(ifstream& inFile, ofstream& outFile, char FName[][10], char LName[][10], char SocSecure[][12], float Wage[], int Hours[], char Status[])
+{
+ int i = 0;
+ inFile >> FName[i] >> LName[i] >> SocSecure[i] >> Wage[i] >> Hours[i] >> Status[i];
+ while (!inFile.eof())
+ {
+ i++;
+ inFile >> FName[i] >> LName[i] >> SocSecure[i] >> Wage[i] >> Hours[i] >> Status[i];
+ }
+ return i;
+}
+
+void calcWage(ifstream& inFile, ofstream& outFile, float Wage[], int Hours[], char Status[], int Records)
+{
+ char Employ[] = "F";
+ for (int i = 0; i < Records; i++)
+ {
+ if (Hours[i] > 40)
+ {
+ Wage[i] = Wage[i] * 40 + (Wage[i] * (Hours[i] - 40));
+ }
+ else
+ {
+ Wage[i] = Wage[i] * Hours[i];
+ }
+ if (!strcmp(Status, Employ))
+ {
+ Wage[i] -= 5;
+ }
+ }
+ return;
+}
+
+void writeFile(ifstream& inFile, ofstream& outFile, char FName[][10], char LName[][10], char SocSecure[][12], float Wage[], int Hours[], char Status[], int Records)
+{
+ cout << "Name" << setw(24) <<
+ "Social Security" << setw(6) <<
+ "Wage" << setw(8) <<
+ "Hours" << setw(10) <<
+ "Status\n\n";
+ outFile << "Name" << setw(24) <<
+ "Social Security" << setw(6) <<
+ "Wage" << setw(8) <<
+ "Hours" << setw(10) <<
+ "Status\n\n";
+ for (int i = 0; i < Records; i++)
+ {
+ cout << FName[i] << " " << LName[i] << setw(16) <<
+ SocSecure[i] << setw(8) <<
+ Wage[i] << setw(8) <<
+ Hours[i] << setw(8) <<
+ Status[i] << endl;
+ outFile << FName[i] << " " << LName[i] << setw(16) <<
+ SocSecure[i] << setw(8) <<
+ Wage[i] << setw(8) <<
+ Hours[i] << setw(8) <<
+ Status[i] << endl;
+ }
+ cout << "\nEnd of Report";
+ outFile <<"\nEnd of Report";
+}
\ No newline at end of file diff --git a/Module 8 Exercise 11.14/Module 8 Exercise 11.14/Module 8 Exercise 11.14.vcxproj b/Module 8 Exercise 11.14/Module 8 Exercise 11.14/Module 8 Exercise 11.14.vcxproj new file mode 100644 index 0000000..23dd055 --- /dev/null +++ b/Module 8 Exercise 11.14/Module 8 Exercise 11.14/Module 8 Exercise 11.14.vcxproj @@ -0,0 +1,147 @@ +<?xml version="1.0" encoding="utf-8"?>
+<Project DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
+ <ItemGroup Label="ProjectConfigurations">
+ <ProjectConfiguration Include="Debug|Win32">
+ <Configuration>Debug</Configuration>
+ <Platform>Win32</Platform>
+ </ProjectConfiguration>
+ <ProjectConfiguration Include="Release|Win32">
+ <Configuration>Release</Configuration>
+ <Platform>Win32</Platform>
+ </ProjectConfiguration>
+ <ProjectConfiguration Include="Debug|x64">
+ <Configuration>Debug</Configuration>
+ <Platform>x64</Platform>
+ </ProjectConfiguration>
+ <ProjectConfiguration Include="Release|x64">
+ <Configuration>Release</Configuration>
+ <Platform>x64</Platform>
+ </ProjectConfiguration>
+ </ItemGroup>
+ <PropertyGroup Label="Globals">
+ <VCProjectVersion>16.0</VCProjectVersion>
+ <Keyword>Win32Proj</Keyword>
+ <ProjectGuid>{0a9cb70a-5405-44a4-a079-a96d6c404d9d}</ProjectGuid>
+ <RootNamespace>Module8Exercise1114</RootNamespace>
+ <WindowsTargetPlatformVersion>10.0</WindowsTargetPlatformVersion>
+ </PropertyGroup>
+ <Import Project="$(VCTargetsPath)\Microsoft.Cpp.Default.props" />
+ <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'" Label="Configuration">
+ <ConfigurationType>Application</ConfigurationType>
+ <UseDebugLibraries>true</UseDebugLibraries>
+ <PlatformToolset>v142</PlatformToolset>
+ <CharacterSet>Unicode</CharacterSet>
+ </PropertyGroup>
+ <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'" Label="Configuration">
+ <ConfigurationType>Application</ConfigurationType>
+ <UseDebugLibraries>false</UseDebugLibraries>
+ <PlatformToolset>v142</PlatformToolset>
+ <WholeProgramOptimization>true</WholeProgramOptimization>
+ <CharacterSet>Unicode</CharacterSet>
+ </PropertyGroup>
+ <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'" Label="Configuration">
+ <ConfigurationType>Application</ConfigurationType>
+ <UseDebugLibraries>true</UseDebugLibraries>
+ <PlatformToolset>v142</PlatformToolset>
+ <CharacterSet>Unicode</CharacterSet>
+ </PropertyGroup>
+ <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'" Label="Configuration">
+ <ConfigurationType>Application</ConfigurationType>
+ <UseDebugLibraries>false</UseDebugLibraries>
+ <PlatformToolset>v142</PlatformToolset>
+ <WholeProgramOptimization>true</WholeProgramOptimization>
+ <CharacterSet>Unicode</CharacterSet>
+ </PropertyGroup>
+ <Import Project="$(VCTargetsPath)\Microsoft.Cpp.props" />
+ <ImportGroup Label="ExtensionSettings">
+ </ImportGroup>
+ <ImportGroup Label="Shared">
+ </ImportGroup>
+ <ImportGroup Label="PropertySheets" Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
+ <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
+ </ImportGroup>
+ <ImportGroup Label="PropertySheets" Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
+ <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
+ </ImportGroup>
+ <ImportGroup Label="PropertySheets" Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">
+ <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
+ </ImportGroup>
+ <ImportGroup Label="PropertySheets" Condition="'$(Configuration)|$(Platform)'=='Release|x64'">
+ <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
+ </ImportGroup>
+ <PropertyGroup Label="UserMacros" />
+ <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
+ <LinkIncremental>true</LinkIncremental>
+ </PropertyGroup>
+ <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
+ <LinkIncremental>false</LinkIncremental>
+ </PropertyGroup>
+ <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">
+ <LinkIncremental>true</LinkIncremental>
+ </PropertyGroup>
+ <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'">
+ <LinkIncremental>false</LinkIncremental>
+ </PropertyGroup>
+ <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
+ <ClCompile>
+ <WarningLevel>Level3</WarningLevel>
+ <SDLCheck>true</SDLCheck>
+ <PreprocessorDefinitions>WIN32;_DEBUG;_CONSOLE;%(PreprocessorDefinitions)</PreprocessorDefinitions>
+ <ConformanceMode>true</ConformanceMode>
+ </ClCompile>
+ <Link>
+ <SubSystem>Console</SubSystem>
+ <GenerateDebugInformation>true</GenerateDebugInformation>
+ </Link>
+ </ItemDefinitionGroup>
+ <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
+ <ClCompile>
+ <WarningLevel>Level3</WarningLevel>
+ <FunctionLevelLinking>true</FunctionLevelLinking>
+ <IntrinsicFunctions>true</IntrinsicFunctions>
+ <SDLCheck>true</SDLCheck>
+ <PreprocessorDefinitions>WIN32;NDEBUG;_CONSOLE;%(PreprocessorDefinitions)</PreprocessorDefinitions>
+ <ConformanceMode>true</ConformanceMode>
+ </ClCompile>
+ <Link>
+ <SubSystem>Console</SubSystem>
+ <EnableCOMDATFolding>true</EnableCOMDATFolding>
+ <OptimizeReferences>true</OptimizeReferences>
+ <GenerateDebugInformation>true</GenerateDebugInformation>
+ </Link>
+ </ItemDefinitionGroup>
+ <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">
+ <ClCompile>
+ <WarningLevel>Level3</WarningLevel>
+ <SDLCheck>true</SDLCheck>
+ <PreprocessorDefinitions>_DEBUG;_CONSOLE;%(PreprocessorDefinitions)</PreprocessorDefinitions>
+ <ConformanceMode>true</ConformanceMode>
+ </ClCompile>
+ <Link>
+ <SubSystem>Console</SubSystem>
+ <GenerateDebugInformation>true</GenerateDebugInformation>
+ </Link>
+ </ItemDefinitionGroup>
+ <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'">
+ <ClCompile>
+ <WarningLevel>Level3</WarningLevel>
+ <FunctionLevelLinking>true</FunctionLevelLinking>
+ <IntrinsicFunctions>true</IntrinsicFunctions>
+ <SDLCheck>true</SDLCheck>
+ <PreprocessorDefinitions>NDEBUG;_CONSOLE;%(PreprocessorDefinitions)</PreprocessorDefinitions>
+ <ConformanceMode>true</ConformanceMode>
+ </ClCompile>
+ <Link>
+ <SubSystem>Console</SubSystem>
+ <EnableCOMDATFolding>true</EnableCOMDATFolding>
+ <OptimizeReferences>true</OptimizeReferences>
+ <GenerateDebugInformation>true</GenerateDebugInformation>
+ </Link>
+ </ItemDefinitionGroup>
+ <ItemGroup>
+ <ClCompile Include="Module 8 Exercise 11.14.cpp" />
+ </ItemGroup>
+ <Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
+ <ImportGroup Label="ExtensionTargets">
+ </ImportGroup>
+</Project>
\ No newline at end of file diff --git a/Module 8 Exercise 11.14/Module 8 Exercise 11.14/Module 8 Exercise 11.14.vcxproj.filters b/Module 8 Exercise 11.14/Module 8 Exercise 11.14/Module 8 Exercise 11.14.vcxproj.filters new file mode 100644 index 0000000..0d4b44d --- /dev/null +++ b/Module 8 Exercise 11.14/Module 8 Exercise 11.14/Module 8 Exercise 11.14.vcxproj.filters @@ -0,0 +1,22 @@ +<?xml version="1.0" encoding="utf-8"?>
+<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
+ <ItemGroup>
+ <Filter Include="Source Files">
+ <UniqueIdentifier>{4FC737F1-C7A5-4376-A066-2A32D752A2FF}</UniqueIdentifier>
+ <Extensions>cpp;c;cc;cxx;c++;cppm;ixx;def;odl;idl;hpj;bat;asm;asmx</Extensions>
+ </Filter>
+ <Filter Include="Header Files">
+ <UniqueIdentifier>{93995380-89BD-4b04-88EB-625FBE52EBFB}</UniqueIdentifier>
+ <Extensions>h;hh;hpp;hxx;h++;hm;inl;inc;ipp;xsd</Extensions>
+ </Filter>
+ <Filter Include="Resource Files">
+ <UniqueIdentifier>{67DA6AB6-F800-4c08-8B7A-83BB121AAD01}</UniqueIdentifier>
+ <Extensions>rc;ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe;resx;tiff;tif;png;wav;mfcribbon-ms</Extensions>
+ </Filter>
+ </ItemGroup>
+ <ItemGroup>
+ <ClCompile Include="Module 8 Exercise 11.14.cpp">
+ <Filter>Source Files</Filter>
+ </ClCompile>
+ </ItemGroup>
+</Project>
\ No newline at end of file diff --git a/Module 8 Exercise 11.14/Module 8 Exercise 11.14/Module 8 Exercise 11.14.vcxproj.user b/Module 8 Exercise 11.14/Module 8 Exercise 11.14/Module 8 Exercise 11.14.vcxproj.user new file mode 100644 index 0000000..0f14913 --- /dev/null +++ b/Module 8 Exercise 11.14/Module 8 Exercise 11.14/Module 8 Exercise 11.14.vcxproj.user @@ -0,0 +1,4 @@ +<?xml version="1.0" encoding="utf-8"?>
+<Project ToolsVersion="Current" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
+ <PropertyGroup />
+</Project>
\ No newline at end of file diff --git a/Module 8 Exercise 11.7.docx b/Module 8 Exercise 11.7.docx Binary files differnew file mode 100644 index 0000000..e384f79 --- /dev/null +++ b/Module 8 Exercise 11.7.docx diff --git a/Module 8 Exercise 11.9/Debug/Module 8 Exercise 11.9.exe b/Module 8 Exercise 11.9/Debug/Module 8 Exercise 11.9.exe Binary files differnew file mode 100644 index 0000000..5287b44 --- /dev/null +++ b/Module 8 Exercise 11.9/Debug/Module 8 Exercise 11.9.exe diff --git a/Module 8 Exercise 11.9/Debug/Module 8 Exercise 11.9.pdb b/Module 8 Exercise 11.9/Debug/Module 8 Exercise 11.9.pdb Binary files differnew file mode 100644 index 0000000..9174b3d --- /dev/null +++ b/Module 8 Exercise 11.9/Debug/Module 8 Exercise 11.9.pdb diff --git a/Module 8 Exercise 11.9/Module 8 Exercise 11.9.sln b/Module 8 Exercise 11.9/Module 8 Exercise 11.9.sln new file mode 100644 index 0000000..3235b6a --- /dev/null +++ b/Module 8 Exercise 11.9/Module 8 Exercise 11.9.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}") = "Module 8 Exercise 11.9", "Module 8 Exercise 11.9\Module 8 Exercise 11.9.vcxproj", "{A6DF1675-53C6-4AFC-B0B5-D8E5BB6A0736}"
+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
+ {A6DF1675-53C6-4AFC-B0B5-D8E5BB6A0736}.Debug|x64.ActiveCfg = Debug|x64
+ {A6DF1675-53C6-4AFC-B0B5-D8E5BB6A0736}.Debug|x64.Build.0 = Debug|x64
+ {A6DF1675-53C6-4AFC-B0B5-D8E5BB6A0736}.Debug|x86.ActiveCfg = Debug|Win32
+ {A6DF1675-53C6-4AFC-B0B5-D8E5BB6A0736}.Debug|x86.Build.0 = Debug|Win32
+ {A6DF1675-53C6-4AFC-B0B5-D8E5BB6A0736}.Release|x64.ActiveCfg = Release|x64
+ {A6DF1675-53C6-4AFC-B0B5-D8E5BB6A0736}.Release|x64.Build.0 = Release|x64
+ {A6DF1675-53C6-4AFC-B0B5-D8E5BB6A0736}.Release|x86.ActiveCfg = Release|Win32
+ {A6DF1675-53C6-4AFC-B0B5-D8E5BB6A0736}.Release|x86.Build.0 = Release|Win32
+ EndGlobalSection
+ GlobalSection(SolutionProperties) = preSolution
+ HideSolutionNode = FALSE
+ EndGlobalSection
+ GlobalSection(ExtensibilityGlobals) = postSolution
+ SolutionGuid = {23500C12-66FB-4162-AFD0-5F67747C02D2}
+ EndGlobalSection
+EndGlobal
diff --git a/Module 8 Exercise 11.9/Module 8 Exercise 11.9/Debug/Module 8 Exercise 11.9.exe.recipe b/Module 8 Exercise 11.9/Module 8 Exercise 11.9/Debug/Module 8 Exercise 11.9.exe.recipe new file mode 100644 index 0000000..2094e76 --- /dev/null +++ b/Module 8 Exercise 11.9/Module 8 Exercise 11.9/Debug/Module 8 Exercise 11.9.exe.recipe @@ -0,0 +1,11 @@ +<?xml version="1.0" encoding="utf-8"?>
+<Project>
+ <ProjectOutputs>
+ <ProjectOutput>
+ <FullPath>C:\Users\Kaeden Grubb\Desktop\CST 116 Work\Module 8 Exercise 11.9\Debug\Module 8 Exercise 11.9.exe</FullPath>
+ </ProjectOutput>
+ </ProjectOutputs>
+ <ContentFiles />
+ <SatelliteDlls />
+ <NonRecipeFileRefs />
+</Project>
\ No newline at end of file diff --git a/Module 8 Exercise 11.9/Module 8 Exercise 11.9/Debug/Module 8 Exercise 11.9.ilk b/Module 8 Exercise 11.9/Module 8 Exercise 11.9/Debug/Module 8 Exercise 11.9.ilk Binary files differnew file mode 100644 index 0000000..4513397 --- /dev/null +++ b/Module 8 Exercise 11.9/Module 8 Exercise 11.9/Debug/Module 8 Exercise 11.9.ilk diff --git a/Module 8 Exercise 11.9/Module 8 Exercise 11.9/Debug/Module 8 Exercise 11.9.log b/Module 8 Exercise 11.9/Module 8 Exercise 11.9/Debug/Module 8 Exercise 11.9.log new file mode 100644 index 0000000..52153a1 --- /dev/null +++ b/Module 8 Exercise 11.9/Module 8 Exercise 11.9/Debug/Module 8 Exercise 11.9.log @@ -0,0 +1,2 @@ + Module 8 Exercise 11.9.cpp
+ Module 8 Exercise 11.9.vcxproj -> C:\Users\Kaeden Grubb\Desktop\CST 116 Work\Module 8 Exercise 11.9\Debug\Module 8 Exercise 11.9.exe
diff --git a/Module 8 Exercise 11.9/Module 8 Exercise 11.9/Debug/Module 8 Exercise 11.9.obj b/Module 8 Exercise 11.9/Module 8 Exercise 11.9/Debug/Module 8 Exercise 11.9.obj Binary files differnew file mode 100644 index 0000000..eb25ec6 --- /dev/null +++ b/Module 8 Exercise 11.9/Module 8 Exercise 11.9/Debug/Module 8 Exercise 11.9.obj diff --git a/Module 8 Exercise 11.9/Module 8 Exercise 11.9/Debug/Module 8.a6df1675.tlog/CL.command.1.tlog b/Module 8 Exercise 11.9/Module 8 Exercise 11.9/Debug/Module 8.a6df1675.tlog/CL.command.1.tlog Binary files differnew file mode 100644 index 0000000..99433c5 --- /dev/null +++ b/Module 8 Exercise 11.9/Module 8 Exercise 11.9/Debug/Module 8.a6df1675.tlog/CL.command.1.tlog diff --git a/Module 8 Exercise 11.9/Module 8 Exercise 11.9/Debug/Module 8.a6df1675.tlog/CL.read.1.tlog b/Module 8 Exercise 11.9/Module 8 Exercise 11.9/Debug/Module 8.a6df1675.tlog/CL.read.1.tlog Binary files differnew file mode 100644 index 0000000..22e3b91 --- /dev/null +++ b/Module 8 Exercise 11.9/Module 8 Exercise 11.9/Debug/Module 8.a6df1675.tlog/CL.read.1.tlog diff --git a/Module 8 Exercise 11.9/Module 8 Exercise 11.9/Debug/Module 8.a6df1675.tlog/CL.write.1.tlog b/Module 8 Exercise 11.9/Module 8 Exercise 11.9/Debug/Module 8.a6df1675.tlog/CL.write.1.tlog Binary files differnew file mode 100644 index 0000000..48ffdb6 --- /dev/null +++ b/Module 8 Exercise 11.9/Module 8 Exercise 11.9/Debug/Module 8.a6df1675.tlog/CL.write.1.tlog diff --git a/Module 8 Exercise 11.9/Module 8 Exercise 11.9/Debug/Module 8.a6df1675.tlog/Module 8 Exercise 11.9.lastbuildstate b/Module 8 Exercise 11.9/Module 8 Exercise 11.9/Debug/Module 8.a6df1675.tlog/Module 8 Exercise 11.9.lastbuildstate new file mode 100644 index 0000000..6fe245c --- /dev/null +++ b/Module 8 Exercise 11.9/Module 8 Exercise 11.9/Debug/Module 8.a6df1675.tlog/Module 8 Exercise 11.9.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|Win32|C:\Users\Kaeden Grubb\Desktop\CST 116 Work\Module 8 Exercise 11.9\|
diff --git a/Module 8 Exercise 11.9/Module 8 Exercise 11.9/Debug/Module 8.a6df1675.tlog/link.command.1.tlog b/Module 8 Exercise 11.9/Module 8 Exercise 11.9/Debug/Module 8.a6df1675.tlog/link.command.1.tlog Binary files differnew file mode 100644 index 0000000..4f5abbf --- /dev/null +++ b/Module 8 Exercise 11.9/Module 8 Exercise 11.9/Debug/Module 8.a6df1675.tlog/link.command.1.tlog diff --git a/Module 8 Exercise 11.9/Module 8 Exercise 11.9/Debug/Module 8.a6df1675.tlog/link.read.1.tlog b/Module 8 Exercise 11.9/Module 8 Exercise 11.9/Debug/Module 8.a6df1675.tlog/link.read.1.tlog Binary files differnew file mode 100644 index 0000000..e085a2e --- /dev/null +++ b/Module 8 Exercise 11.9/Module 8 Exercise 11.9/Debug/Module 8.a6df1675.tlog/link.read.1.tlog diff --git a/Module 8 Exercise 11.9/Module 8 Exercise 11.9/Debug/Module 8.a6df1675.tlog/link.write.1.tlog b/Module 8 Exercise 11.9/Module 8 Exercise 11.9/Debug/Module 8.a6df1675.tlog/link.write.1.tlog Binary files differnew file mode 100644 index 0000000..cbd4003 --- /dev/null +++ b/Module 8 Exercise 11.9/Module 8 Exercise 11.9/Debug/Module 8.a6df1675.tlog/link.write.1.tlog diff --git a/Module 8 Exercise 11.9/Module 8 Exercise 11.9/Debug/vc142.idb b/Module 8 Exercise 11.9/Module 8 Exercise 11.9/Debug/vc142.idb Binary files differnew file mode 100644 index 0000000..5fffc86 --- /dev/null +++ b/Module 8 Exercise 11.9/Module 8 Exercise 11.9/Debug/vc142.idb diff --git a/Module 8 Exercise 11.9/Module 8 Exercise 11.9/Debug/vc142.pdb b/Module 8 Exercise 11.9/Module 8 Exercise 11.9/Debug/vc142.pdb Binary files differnew file mode 100644 index 0000000..7b59bda --- /dev/null +++ b/Module 8 Exercise 11.9/Module 8 Exercise 11.9/Debug/vc142.pdb diff --git a/Module 8 Exercise 11.9/Module 8 Exercise 11.9/Module 8 Exercise 11.9.cpp b/Module 8 Exercise 11.9/Module 8 Exercise 11.9/Module 8 Exercise 11.9.cpp new file mode 100644 index 0000000..17a65da --- /dev/null +++ b/Module 8 Exercise 11.9/Module 8 Exercise 11.9/Module 8 Exercise 11.9.cpp @@ -0,0 +1,92 @@ +
+#include <iostream>
+using namespace std;
+
+const int max_values{ 25 };
+
+int GetValues(int values[]);
+float CalculateMean(int values[], int num_values);
+int FindMode(int values[], int num_values);
+int FindMedian(int values[], int num_values);
+
+int main()
+{
+ int values[max_values]{ 0 }, num_values{ 0 }, mode{ 0 }, median{ 0 };
+ float mean{ 0 };
+ num_values = GetValues(values);
+ mean = CalculateMean(values, num_values);
+ mode = FindMode(values, num_values);
+ median = FindMedian(values, num_values);
+ cout << "Mean = " << mean << endl;
+ cout << "Mode = " << mode << endl;
+ cout << "Median = " << median << endl;
+ return 0;
+}
+
+int GetValues(int values[])
+{
+ int num_values = 0;
+ char enter_more = 'n';
+ do
+ {
+ cout << "Enter a value: ";
+ cin >> values[num_values];
+ num_values++;
+ cout << "Enter another value (y/n)?";
+ cin >> enter_more;
+ } while (toupper(enter_more) == 'Y' && num_values < max_values);
+ return num_values;
+}
+
+float CalculateMean(int values[], int num_values)
+{
+ float sum = 0;
+ for (int i = 0; i < num_values; i++)
+ sum += values[i];
+ return sum / num_values;
+}
+
+int FindMode(int values[], int num_values)
+{
+ int mode = 0;
+ int count, oldcount = 0;
+ for (int i = 0; i < num_values; i++)
+ {
+ count = 1;
+ for (int j = i + 1; j < num_values; j++)
+ {
+ if (values[i] == values[j])
+ count++;
+ }
+ if (count > oldcount)
+ {
+ mode = values[i];
+ oldcount = count;
+ }
+ }
+ return mode;
+}
+
+int FindMedian(int values[], int num_values)
+{
+ bool sorted = false;
+ int i = 0;
+ int temp = 0;
+ while ((i < num_values) || (sorted == false))
+ {
+ for (int j = 0; j < num_values- i -1; j++)
+ {
+ if (values[j] > values[j + 1] || values[j] < values[j - 1])
+ {
+ sorted = false;
+ temp = values[j];
+ values[j] = values[j + 1];
+ values[j + 1] = temp;
+ }
+ else
+ sorted = true;
+ }
+ i++;
+ }
+ return values[(num_values / 2)];
+}
\ No newline at end of file diff --git a/Module 8 Exercise 11.9/Module 8 Exercise 11.9/Module 8 Exercise 11.9.vcxproj b/Module 8 Exercise 11.9/Module 8 Exercise 11.9/Module 8 Exercise 11.9.vcxproj new file mode 100644 index 0000000..ade2aed --- /dev/null +++ b/Module 8 Exercise 11.9/Module 8 Exercise 11.9/Module 8 Exercise 11.9.vcxproj @@ -0,0 +1,147 @@ +<?xml version="1.0" encoding="utf-8"?>
+<Project DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
+ <ItemGroup Label="ProjectConfigurations">
+ <ProjectConfiguration Include="Debug|Win32">
+ <Configuration>Debug</Configuration>
+ <Platform>Win32</Platform>
+ </ProjectConfiguration>
+ <ProjectConfiguration Include="Release|Win32">
+ <Configuration>Release</Configuration>
+ <Platform>Win32</Platform>
+ </ProjectConfiguration>
+ <ProjectConfiguration Include="Debug|x64">
+ <Configuration>Debug</Configuration>
+ <Platform>x64</Platform>
+ </ProjectConfiguration>
+ <ProjectConfiguration Include="Release|x64">
+ <Configuration>Release</Configuration>
+ <Platform>x64</Platform>
+ </ProjectConfiguration>
+ </ItemGroup>
+ <PropertyGroup Label="Globals">
+ <VCProjectVersion>16.0</VCProjectVersion>
+ <Keyword>Win32Proj</Keyword>
+ <ProjectGuid>{a6df1675-53c6-4afc-b0b5-d8e5bb6a0736}</ProjectGuid>
+ <RootNamespace>Module8Exercise119</RootNamespace>
+ <WindowsTargetPlatformVersion>10.0</WindowsTargetPlatformVersion>
+ </PropertyGroup>
+ <Import Project="$(VCTargetsPath)\Microsoft.Cpp.Default.props" />
+ <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'" Label="Configuration">
+ <ConfigurationType>Application</ConfigurationType>
+ <UseDebugLibraries>true</UseDebugLibraries>
+ <PlatformToolset>v142</PlatformToolset>
+ <CharacterSet>Unicode</CharacterSet>
+ </PropertyGroup>
+ <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'" Label="Configuration">
+ <ConfigurationType>Application</ConfigurationType>
+ <UseDebugLibraries>false</UseDebugLibraries>
+ <PlatformToolset>v142</PlatformToolset>
+ <WholeProgramOptimization>true</WholeProgramOptimization>
+ <CharacterSet>Unicode</CharacterSet>
+ </PropertyGroup>
+ <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'" Label="Configuration">
+ <ConfigurationType>Application</ConfigurationType>
+ <UseDebugLibraries>true</UseDebugLibraries>
+ <PlatformToolset>v142</PlatformToolset>
+ <CharacterSet>Unicode</CharacterSet>
+ </PropertyGroup>
+ <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'" Label="Configuration">
+ <ConfigurationType>Application</ConfigurationType>
+ <UseDebugLibraries>false</UseDebugLibraries>
+ <PlatformToolset>v142</PlatformToolset>
+ <WholeProgramOptimization>true</WholeProgramOptimization>
+ <CharacterSet>Unicode</CharacterSet>
+ </PropertyGroup>
+ <Import Project="$(VCTargetsPath)\Microsoft.Cpp.props" />
+ <ImportGroup Label="ExtensionSettings">
+ </ImportGroup>
+ <ImportGroup Label="Shared">
+ </ImportGroup>
+ <ImportGroup Label="PropertySheets" Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
+ <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
+ </ImportGroup>
+ <ImportGroup Label="PropertySheets" Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
+ <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
+ </ImportGroup>
+ <ImportGroup Label="PropertySheets" Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">
+ <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
+ </ImportGroup>
+ <ImportGroup Label="PropertySheets" Condition="'$(Configuration)|$(Platform)'=='Release|x64'">
+ <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
+ </ImportGroup>
+ <PropertyGroup Label="UserMacros" />
+ <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
+ <LinkIncremental>true</LinkIncremental>
+ </PropertyGroup>
+ <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
+ <LinkIncremental>false</LinkIncremental>
+ </PropertyGroup>
+ <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">
+ <LinkIncremental>true</LinkIncremental>
+ </PropertyGroup>
+ <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'">
+ <LinkIncremental>false</LinkIncremental>
+ </PropertyGroup>
+ <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
+ <ClCompile>
+ <WarningLevel>Level3</WarningLevel>
+ <SDLCheck>true</SDLCheck>
+ <PreprocessorDefinitions>WIN32;_DEBUG;_CONSOLE;%(PreprocessorDefinitions)</PreprocessorDefinitions>
+ <ConformanceMode>true</ConformanceMode>
+ </ClCompile>
+ <Link>
+ <SubSystem>Console</SubSystem>
+ <GenerateDebugInformation>true</GenerateDebugInformation>
+ </Link>
+ </ItemDefinitionGroup>
+ <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
+ <ClCompile>
+ <WarningLevel>Level3</WarningLevel>
+ <FunctionLevelLinking>true</FunctionLevelLinking>
+ <IntrinsicFunctions>true</IntrinsicFunctions>
+ <SDLCheck>true</SDLCheck>
+ <PreprocessorDefinitions>WIN32;NDEBUG;_CONSOLE;%(PreprocessorDefinitions)</PreprocessorDefinitions>
+ <ConformanceMode>true</ConformanceMode>
+ </ClCompile>
+ <Link>
+ <SubSystem>Console</SubSystem>
+ <EnableCOMDATFolding>true</EnableCOMDATFolding>
+ <OptimizeReferences>true</OptimizeReferences>
+ <GenerateDebugInformation>true</GenerateDebugInformation>
+ </Link>
+ </ItemDefinitionGroup>
+ <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">
+ <ClCompile>
+ <WarningLevel>Level3</WarningLevel>
+ <SDLCheck>true</SDLCheck>
+ <PreprocessorDefinitions>_DEBUG;_CONSOLE;%(PreprocessorDefinitions)</PreprocessorDefinitions>
+ <ConformanceMode>true</ConformanceMode>
+ </ClCompile>
+ <Link>
+ <SubSystem>Console</SubSystem>
+ <GenerateDebugInformation>true</GenerateDebugInformation>
+ </Link>
+ </ItemDefinitionGroup>
+ <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'">
+ <ClCompile>
+ <WarningLevel>Level3</WarningLevel>
+ <FunctionLevelLinking>true</FunctionLevelLinking>
+ <IntrinsicFunctions>true</IntrinsicFunctions>
+ <SDLCheck>true</SDLCheck>
+ <PreprocessorDefinitions>NDEBUG;_CONSOLE;%(PreprocessorDefinitions)</PreprocessorDefinitions>
+ <ConformanceMode>true</ConformanceMode>
+ </ClCompile>
+ <Link>
+ <SubSystem>Console</SubSystem>
+ <EnableCOMDATFolding>true</EnableCOMDATFolding>
+ <OptimizeReferences>true</OptimizeReferences>
+ <GenerateDebugInformation>true</GenerateDebugInformation>
+ </Link>
+ </ItemDefinitionGroup>
+ <ItemGroup>
+ <ClCompile Include="Module 8 Exercise 11.9.cpp" />
+ </ItemGroup>
+ <Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
+ <ImportGroup Label="ExtensionTargets">
+ </ImportGroup>
+</Project>
\ No newline at end of file diff --git a/Module 8 Exercise 11.9/Module 8 Exercise 11.9/Module 8 Exercise 11.9.vcxproj.filters b/Module 8 Exercise 11.9/Module 8 Exercise 11.9/Module 8 Exercise 11.9.vcxproj.filters new file mode 100644 index 0000000..17f06e8 --- /dev/null +++ b/Module 8 Exercise 11.9/Module 8 Exercise 11.9/Module 8 Exercise 11.9.vcxproj.filters @@ -0,0 +1,22 @@ +<?xml version="1.0" encoding="utf-8"?>
+<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
+ <ItemGroup>
+ <Filter Include="Source Files">
+ <UniqueIdentifier>{4FC737F1-C7A5-4376-A066-2A32D752A2FF}</UniqueIdentifier>
+ <Extensions>cpp;c;cc;cxx;c++;cppm;ixx;def;odl;idl;hpj;bat;asm;asmx</Extensions>
+ </Filter>
+ <Filter Include="Header Files">
+ <UniqueIdentifier>{93995380-89BD-4b04-88EB-625FBE52EBFB}</UniqueIdentifier>
+ <Extensions>h;hh;hpp;hxx;h++;hm;inl;inc;ipp;xsd</Extensions>
+ </Filter>
+ <Filter Include="Resource Files">
+ <UniqueIdentifier>{67DA6AB6-F800-4c08-8B7A-83BB121AAD01}</UniqueIdentifier>
+ <Extensions>rc;ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe;resx;tiff;tif;png;wav;mfcribbon-ms</Extensions>
+ </Filter>
+ </ItemGroup>
+ <ItemGroup>
+ <ClCompile Include="Module 8 Exercise 11.9.cpp">
+ <Filter>Source Files</Filter>
+ </ClCompile>
+ </ItemGroup>
+</Project>
\ No newline at end of file diff --git a/Module 8 Exercise 11.9/Module 8 Exercise 11.9/Module 8 Exercise 11.9.vcxproj.user b/Module 8 Exercise 11.9/Module 8 Exercise 11.9/Module 8 Exercise 11.9.vcxproj.user new file mode 100644 index 0000000..0f14913 --- /dev/null +++ b/Module 8 Exercise 11.9/Module 8 Exercise 11.9/Module 8 Exercise 11.9.vcxproj.user @@ -0,0 +1,4 @@ +<?xml version="1.0" encoding="utf-8"?>
+<Project ToolsVersion="Current" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
+ <PropertyGroup />
+</Project>
\ No newline at end of file diff --git a/Module 8 Exercise 11.9/Module 8 Exercise 11.9/x64/Debug/Module 8 Exercise 11.9.exe.recipe b/Module 8 Exercise 11.9/Module 8 Exercise 11.9/x64/Debug/Module 8 Exercise 11.9.exe.recipe new file mode 100644 index 0000000..10c0b20 --- /dev/null +++ b/Module 8 Exercise 11.9/Module 8 Exercise 11.9/x64/Debug/Module 8 Exercise 11.9.exe.recipe @@ -0,0 +1,11 @@ +<?xml version="1.0" encoding="utf-8"?>
+<Project>
+ <ProjectOutputs>
+ <ProjectOutput>
+ <FullPath>C:\Users\Kaeden Grubb\Desktop\CST 116 Work\Module 8 Exercise 11.9\x64\Debug\Module 8 Exercise 11.9.exe</FullPath>
+ </ProjectOutput>
+ </ProjectOutputs>
+ <ContentFiles />
+ <SatelliteDlls />
+ <NonRecipeFileRefs />
+</Project>
\ No newline at end of file diff --git a/Module 8 Exercise 11.9/Module 8 Exercise 11.9/x64/Debug/Module 8 Exercise 11.9.ilk b/Module 8 Exercise 11.9/Module 8 Exercise 11.9/x64/Debug/Module 8 Exercise 11.9.ilk Binary files differnew file mode 100644 index 0000000..1a713d8 --- /dev/null +++ b/Module 8 Exercise 11.9/Module 8 Exercise 11.9/x64/Debug/Module 8 Exercise 11.9.ilk diff --git a/Module 8 Exercise 11.9/Module 8 Exercise 11.9/x64/Debug/Module 8 Exercise 11.9.log b/Module 8 Exercise 11.9/Module 8 Exercise 11.9/x64/Debug/Module 8 Exercise 11.9.log new file mode 100644 index 0000000..fea7909 --- /dev/null +++ b/Module 8 Exercise 11.9/Module 8 Exercise 11.9/x64/Debug/Module 8 Exercise 11.9.log @@ -0,0 +1,2 @@ + Module 8 Exercise 11.9.cpp
+ Module 8 Exercise 11.9.vcxproj -> C:\Users\Kaeden Grubb\Desktop\CST 116 Work\Module 8 Exercise 11.9\x64\Debug\Module 8 Exercise 11.9.exe
diff --git a/Module 8 Exercise 11.9/Module 8 Exercise 11.9/x64/Debug/Module 8 Exercise 11.9.obj b/Module 8 Exercise 11.9/Module 8 Exercise 11.9/x64/Debug/Module 8 Exercise 11.9.obj Binary files differnew file mode 100644 index 0000000..aea0091 --- /dev/null +++ b/Module 8 Exercise 11.9/Module 8 Exercise 11.9/x64/Debug/Module 8 Exercise 11.9.obj diff --git a/Module 8 Exercise 11.9/Module 8 Exercise 11.9/x64/Debug/Module 8.a6df1675.tlog/CL.command.1.tlog b/Module 8 Exercise 11.9/Module 8 Exercise 11.9/x64/Debug/Module 8.a6df1675.tlog/CL.command.1.tlog Binary files differnew file mode 100644 index 0000000..8044d23 --- /dev/null +++ b/Module 8 Exercise 11.9/Module 8 Exercise 11.9/x64/Debug/Module 8.a6df1675.tlog/CL.command.1.tlog diff --git a/Module 8 Exercise 11.9/Module 8 Exercise 11.9/x64/Debug/Module 8.a6df1675.tlog/CL.read.1.tlog b/Module 8 Exercise 11.9/Module 8 Exercise 11.9/x64/Debug/Module 8.a6df1675.tlog/CL.read.1.tlog Binary files differnew file mode 100644 index 0000000..c3abce9 --- /dev/null +++ b/Module 8 Exercise 11.9/Module 8 Exercise 11.9/x64/Debug/Module 8.a6df1675.tlog/CL.read.1.tlog diff --git a/Module 8 Exercise 11.9/Module 8 Exercise 11.9/x64/Debug/Module 8.a6df1675.tlog/CL.write.1.tlog b/Module 8 Exercise 11.9/Module 8 Exercise 11.9/x64/Debug/Module 8.a6df1675.tlog/CL.write.1.tlog Binary files differnew file mode 100644 index 0000000..7fa1f9b --- /dev/null +++ b/Module 8 Exercise 11.9/Module 8 Exercise 11.9/x64/Debug/Module 8.a6df1675.tlog/CL.write.1.tlog diff --git a/Module 8 Exercise 11.9/Module 8 Exercise 11.9/x64/Debug/Module 8.a6df1675.tlog/Module 8 Exercise 11.9.lastbuildstate b/Module 8 Exercise 11.9/Module 8 Exercise 11.9/x64/Debug/Module 8.a6df1675.tlog/Module 8 Exercise 11.9.lastbuildstate new file mode 100644 index 0000000..7425ed0 --- /dev/null +++ b/Module 8 Exercise 11.9/Module 8 Exercise 11.9/x64/Debug/Module 8.a6df1675.tlog/Module 8 Exercise 11.9.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\Module 8 Exercise 11.9\|
diff --git a/Module 8 Exercise 11.9/Module 8 Exercise 11.9/x64/Debug/Module 8.a6df1675.tlog/link.command.1.tlog b/Module 8 Exercise 11.9/Module 8 Exercise 11.9/x64/Debug/Module 8.a6df1675.tlog/link.command.1.tlog Binary files differnew file mode 100644 index 0000000..7d9735d --- /dev/null +++ b/Module 8 Exercise 11.9/Module 8 Exercise 11.9/x64/Debug/Module 8.a6df1675.tlog/link.command.1.tlog diff --git a/Module 8 Exercise 11.9/Module 8 Exercise 11.9/x64/Debug/Module 8.a6df1675.tlog/link.read.1.tlog b/Module 8 Exercise 11.9/Module 8 Exercise 11.9/x64/Debug/Module 8.a6df1675.tlog/link.read.1.tlog Binary files differnew file mode 100644 index 0000000..eab8af8 --- /dev/null +++ b/Module 8 Exercise 11.9/Module 8 Exercise 11.9/x64/Debug/Module 8.a6df1675.tlog/link.read.1.tlog diff --git a/Module 8 Exercise 11.9/Module 8 Exercise 11.9/x64/Debug/Module 8.a6df1675.tlog/link.write.1.tlog b/Module 8 Exercise 11.9/Module 8 Exercise 11.9/x64/Debug/Module 8.a6df1675.tlog/link.write.1.tlog Binary files differnew file mode 100644 index 0000000..755f9d5 --- /dev/null +++ b/Module 8 Exercise 11.9/Module 8 Exercise 11.9/x64/Debug/Module 8.a6df1675.tlog/link.write.1.tlog diff --git a/Module 8 Exercise 11.9/Module 8 Exercise 11.9/x64/Debug/vc142.idb b/Module 8 Exercise 11.9/Module 8 Exercise 11.9/x64/Debug/vc142.idb Binary files differnew file mode 100644 index 0000000..81ae374 --- /dev/null +++ b/Module 8 Exercise 11.9/Module 8 Exercise 11.9/x64/Debug/vc142.idb diff --git a/Module 8 Exercise 11.9/Module 8 Exercise 11.9/x64/Debug/vc142.pdb b/Module 8 Exercise 11.9/Module 8 Exercise 11.9/x64/Debug/vc142.pdb Binary files differnew file mode 100644 index 0000000..fc3c916 --- /dev/null +++ b/Module 8 Exercise 11.9/Module 8 Exercise 11.9/x64/Debug/vc142.pdb diff --git a/Module 8 Exercise 11.9/x64/Debug/Module 8 Exercise 11.9.exe b/Module 8 Exercise 11.9/x64/Debug/Module 8 Exercise 11.9.exe Binary files differnew file mode 100644 index 0000000..ce75b26 --- /dev/null +++ b/Module 8 Exercise 11.9/x64/Debug/Module 8 Exercise 11.9.exe diff --git a/Module 8 Exercise 11.9/x64/Debug/Module 8 Exercise 11.9.pdb b/Module 8 Exercise 11.9/x64/Debug/Module 8 Exercise 11.9.pdb Binary files differnew file mode 100644 index 0000000..a498fb2 --- /dev/null +++ b/Module 8 Exercise 11.9/x64/Debug/Module 8 Exercise 11.9.pdb |