aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorreecepwarner <[email protected]>2024-04-20 11:16:42 -0700
committerGitHub <[email protected]>2024-04-20 11:16:42 -0700
commit58e7209a36a87e13c31ac9c598c7130c62d77535 (patch)
tree8bae32b126c864b5f2a78427262fdb8d01a9f1a4
parentFinished guessing game (diff)
downloadhomework-1-reecepwarner-58e7209a36a87e13c31ac9c598c7130c62d77535.tar.xz
homework-1-reecepwarner-58e7209a36a87e13c31ac9c598c7130c62d77535.zip
Adding basic unit test to solution (#2)
* unit test * Big changes to TempLog * templog virtuallycomplete * minor changes and tidying up --------- Co-authored-by: rPatrickWarner <[email protected]>
-rw-r--r--CST 126/CST_126.sln10
-rw-r--r--CST 126/Homework 1/GuessingHelper.hpp4
-rw-r--r--CST 126/Homework 1/Helper.hpp22
-rw-r--r--CST 126/Homework 1/MenuHelper.hpp4
-rw-r--r--CST 126/Homework 1/TempLogHelper.hpp125
-rw-r--r--CST 126/Homework 1/main.cpp10
-rw-r--r--CST 126/UnitTest1/UnitTest1.cpp19
-rw-r--r--CST 126/UnitTest1/UnitTest1.vcxproj175
-rw-r--r--CST 126/UnitTest1/UnitTest1.vcxproj.filters30
-rw-r--r--CST 126/UnitTest1/pch.cpp5
-rw-r--r--CST 126/UnitTest1/pch.h12
11 files changed, 401 insertions, 15 deletions
diff --git a/CST 126/CST_126.sln b/CST 126/CST_126.sln
index 91644a9..ee4daab 100644
--- a/CST 126/CST_126.sln
+++ b/CST 126/CST_126.sln
@@ -5,6 +5,8 @@ VisualStudioVersion = 17.7.34031.279
MinimumVisualStudioVersion = 10.0.40219.1
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "Homework 1", "Homework 1\Homework 1.vcxproj", "{63480B39-FB46-498B-A592-F4EAAF597F78}"
EndProject
+Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "Unit_Tests", "UnitTest1\UnitTest1.vcxproj", "{42A7A225-0836-478A-8B8B-6BE113A53D88}"
+EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|x64 = Debug|x64
@@ -21,6 +23,14 @@ Global
{63480B39-FB46-498B-A592-F4EAAF597F78}.Release|x64.Build.0 = Release|x64
{63480B39-FB46-498B-A592-F4EAAF597F78}.Release|x86.ActiveCfg = Release|Win32
{63480B39-FB46-498B-A592-F4EAAF597F78}.Release|x86.Build.0 = Release|Win32
+ {42A7A225-0836-478A-8B8B-6BE113A53D88}.Debug|x64.ActiveCfg = Debug|x64
+ {42A7A225-0836-478A-8B8B-6BE113A53D88}.Debug|x64.Build.0 = Debug|x64
+ {42A7A225-0836-478A-8B8B-6BE113A53D88}.Debug|x86.ActiveCfg = Debug|Win32
+ {42A7A225-0836-478A-8B8B-6BE113A53D88}.Debug|x86.Build.0 = Debug|Win32
+ {42A7A225-0836-478A-8B8B-6BE113A53D88}.Release|x64.ActiveCfg = Release|x64
+ {42A7A225-0836-478A-8B8B-6BE113A53D88}.Release|x64.Build.0 = Release|x64
+ {42A7A225-0836-478A-8B8B-6BE113A53D88}.Release|x86.ActiveCfg = Release|Win32
+ {42A7A225-0836-478A-8B8B-6BE113A53D88}.Release|x86.Build.0 = Release|Win32
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
diff --git a/CST 126/Homework 1/GuessingHelper.hpp b/CST 126/Homework 1/GuessingHelper.hpp
index 1a7fd14..1d12971 100644
--- a/CST 126/Homework 1/GuessingHelper.hpp
+++ b/CST 126/Homework 1/GuessingHelper.hpp
@@ -24,12 +24,11 @@ void GuessingGame()
do
{
-
UserGuess = InputSelectionInt("Guess a number between 1 and 10,000 :");
system("cls");
if (UserGuess == GoldenSnitch)
{
- std::cout << "\033[32mHooray! YOU WON!!!!$$$$\033[0m" << std::endl;
+ std::cout << "\033[32mHooray! YOU WON!!!!$$$$\033[0m" << " It took you #" << NumberOfGuesses << " Tries!!!" << std::endl;
return;
}
if (UserGuess < GoldenSnitch)
@@ -45,6 +44,7 @@ void GuessingGame()
{
std::cout << "I'm sorry to inform you of your loss, but there's always another day!" << std::endl;
}
+ std::cout << "Try #" << NumberOfGuesses << std::endl;
} while (NumberOfGuesses != 20);
}
diff --git a/CST 126/Homework 1/Helper.hpp b/CST 126/Homework 1/Helper.hpp
index a83a072..918e426 100644
--- a/CST 126/Homework 1/Helper.hpp
+++ b/CST 126/Homework 1/Helper.hpp
@@ -6,6 +6,7 @@ using std::streamsize;
constexpr size_t MAX_STREAM_SIZE = numeric_limits<streamsize>::max();
double InputDouble(const char* Prompt);
+float InputFloat(const char* Prompt);
int InputSelectionInt(const char* Prompt);
void Prompts(const char* Prompt);
@@ -36,6 +37,27 @@ double InputDouble(const char* Prompt)
return Value;
}
+float InputFloat(const char* Prompt)
+{
+ std::cout << Prompt << std::endl;
+
+ std::cout.flush();
+
+ float Value = 0;
+ std::cin >> Value;
+
+ while (!std::cin)
+ {
+ std::cout << Prompt << std::endl;
+ std::cin.clear();
+
+ std::cin.ignore(MAX_STREAM_SIZE, '\n');
+ std::cin >> Value;
+
+ }
+ return Value;
+}
+
int InputSelectionInt(const char* Prompt)
{
std::cout << Prompt << std::endl;
diff --git a/CST 126/Homework 1/MenuHelper.hpp b/CST 126/Homework 1/MenuHelper.hpp
index b850c4b..df2a0e7 100644
--- a/CST 126/Homework 1/MenuHelper.hpp
+++ b/CST 126/Homework 1/MenuHelper.hpp
@@ -1,6 +1,6 @@
#ifndef MENU_HELPER_HPP
#define MENU_HELPER_HPP
-#include "GuessingHelper.hpp"
+#include "TempLogHelper.hpp"
void UserMenu();
void MenuOptions();
@@ -19,7 +19,7 @@ void UserMenu()
break;
case 2: GuessingGame();
break;
- case 3:
+ case 3: WeeklyTemp("What was the highest temperature reached?", "What was the lowest temperature?");
break;
case 4:
Prompts("Have a wonderful day!!!");
diff --git a/CST 126/Homework 1/TempLogHelper.hpp b/CST 126/Homework 1/TempLogHelper.hpp
index 4574f9e..18a8d35 100644
--- a/CST 126/Homework 1/TempLogHelper.hpp
+++ b/CST 126/Homework 1/TempLogHelper.hpp
@@ -1,10 +1,129 @@
#ifndef TEMP_LOG_HELPER_HPP
#define TEMP_LOG_HELPER_HPP
-#include "MenuHelper.hpp"
-struct Week {
- float DayHigh, DayLow;
+
+#include "GuessingHelper.hpp"
+struct Temperature {
+ float High;
+ float Low;
+};
+
+struct DaysOfWeek {
+ char First[7] = { "Monday" };
+ char Second[8] = { "Tuesday" };
+ char Third[10] = { "Wednesday" };
+ char Fourth[9] = { "Thursday" };
+ char Fifth[7] = { "Friday" };
+ char Sixth[9] = { "Saturday" };
+ char Seventh[7] = { "Sunday" };
+
};
+float FarenheitToCelsius(float Temp);
+void GreatLow(Temperature* WeekLog);
+void GreatHigh(Temperature* WeekLog);
+void TemperatureAverage(Temperature* WeekLog);
+void TemperatureDifference(Temperature* WeekLog);
+void WeeklyTemp(const char* Prompt1, const char* Prompt2);
+
+
+float FarenheitToCelsius(float Temp)
+{
+ float Celsius = 0.0;
+
+ Celsius = (Temp - 32) * 5 / 9;
+
+ return Celsius;
+}
+
+void GreatLow(Temperature* WeekLog)
+{
+ float GreatestLow = 0.0;
+
+ GreatestLow = WeekLog[0].Low;
+
+ for (auto i = 1u; i < 6; i++)
+ {
+ if (WeekLog[i].Low < GreatestLow)
+ {
+ GreatestLow = WeekLog[i].Low;
+ }
+ }
+ std::cout << "Your weekly low was " << GreatestLow << " degrees Farenheit! That is " <<
+ FarenheitToCelsius(GreatestLow) << " degrees Celsius!\n" << std::endl;
+}
+
+void GreatHigh(Temperature* WeekLog)
+{
+ float GreatestHigh = 0.0;
+
+ for (auto i = 0u; i < 7; i++)
+ {
+ if (WeekLog[i].High > GreatestHigh)
+ {
+ GreatestHigh = WeekLog[i].High;
+ }
+ }
+
+ std::cout << "Your weekly high was " << GreatestHigh << " degrees Farenheit! That is " <<
+ FarenheitToCelsius(GreatestHigh) << " degrees Celsius!\n" << std::endl;
+}
+
+void TemperatureAverage(Temperature* WeekLog)
+{
+ float AverageTemp = 0.0;
+ float Sum = 0.0;
+
+ for (auto i = 0u; i < 7; i++)
+ {
+ Sum += (WeekLog[i].High + WeekLog[i].Low);
+ }
+ AverageTemp = Sum / 14;
+
+ std::cout << "Your weekly average temperature was " << AverageTemp << " degrees Farenheit! That is " <<
+ FarenheitToCelsius(AverageTemp) << " degrees Celsius!\n" << std::endl;
+
+}
+
+void TemperatureDifference(Temperature* WeekLog)
+{
+ float HighLowDifference = 0.0;
+ float HighLowStorage[7]{};
+
+ for (auto i = 0u; i < 7; i++)
+ {
+ HighLowDifference = WeekLog[i].High - WeekLog[i].Low;
+ HighLowStorage[i] = HighLowDifference;
+ }
+
+ float GreatestDifference = 0.0;
+ for (auto j = 0u; j < 7; j++)
+ {
+ if (HighLowStorage[j] > GreatestDifference)
+ {
+ GreatestDifference = HighLowStorage[j];
+ }
+ }
+ std::cout << "The largest temperature differential was " << GreatestDifference << " degrees Farenheit! That is " <<
+ FarenheitToCelsius(GreatestDifference) << " degrees Celsius!\n" << std::endl;
+}
+
+void WeeklyTemp(const char* Prompt1, const char* Prompt2)
+{
+ Temperature WeekTemp[7];
+ for (auto i = 0u; i <7; i++)
+ {
+ WeekTemp[i].High = InputFloat(Prompt1);
+ WeekTemp[i].Low = InputFloat(Prompt2);
+ system("cls");
+ }
+ TemperatureDifference(WeekTemp);
+ TemperatureAverage(WeekTemp);
+ GreatHigh(WeekTemp);
+ GreatLow(WeekTemp);
+}
+
+
+
diff --git a/CST 126/Homework 1/main.cpp b/CST 126/Homework 1/main.cpp
index 0c3de43..013857f 100644
--- a/CST 126/Homework 1/main.cpp
+++ b/CST 126/Homework 1/main.cpp
@@ -2,16 +2,10 @@
// Class: CST 126
// Date: 4/10/24
// Assignment: Homework 1
-
-//clear the screen after each menu choice&& change text color??
-
-#include "TempLogHelper.hpp"
+#include "MenuHelper.hpp"
int main()
{
-
- //UserMenu();
- UserInput();
-
+ UserMenu();
return 0;
} \ No newline at end of file
diff --git a/CST 126/UnitTest1/UnitTest1.cpp b/CST 126/UnitTest1/UnitTest1.cpp
new file mode 100644
index 0000000..9ee1ea5
--- /dev/null
+++ b/CST 126/UnitTest1/UnitTest1.cpp
@@ -0,0 +1,19 @@
+#include "pch.h"
+#include "CppUnitTest.h"
+
+#include "TempLogHelper.hpp"
+
+using namespace Microsoft::VisualStudio::CppUnitTestFramework;
+
+namespace UnitTest1
+{
+ TEST_CLASS(UnitTest1)
+ {
+ public:
+
+ TEST_METHOD(testmethods)
+ {
+
+ }
+ };
+}
diff --git a/CST 126/UnitTest1/UnitTest1.vcxproj b/CST 126/UnitTest1/UnitTest1.vcxproj
new file mode 100644
index 0000000..05b6401
--- /dev/null
+++ b/CST 126/UnitTest1/UnitTest1.vcxproj
@@ -0,0 +1,175 @@
+<?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>17.0</VCProjectVersion>
+ <ProjectGuid>{42A7A225-0836-478A-8B8B-6BE113A53D88}</ProjectGuid>
+ <Keyword>Win32Proj</Keyword>
+ <RootNamespace>UnitTest1</RootNamespace>
+ <WindowsTargetPlatformVersion>10.0</WindowsTargetPlatformVersion>
+ <ProjectSubType>NativeUnitTestProject</ProjectSubType>
+ <ProjectName>Unit_Tests</ProjectName>
+ </PropertyGroup>
+ <Import Project="$(VCTargetsPath)\Microsoft.Cpp.Default.props" />
+ <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'" Label="Configuration">
+ <ConfigurationType>DynamicLibrary</ConfigurationType>
+ <UseDebugLibraries>true</UseDebugLibraries>
+ <PlatformToolset>v143</PlatformToolset>
+ <CharacterSet>Unicode</CharacterSet>
+ <UseOfMfc>false</UseOfMfc>
+ </PropertyGroup>
+ <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'" Label="Configuration">
+ <ConfigurationType>DynamicLibrary</ConfigurationType>
+ <UseDebugLibraries>false</UseDebugLibraries>
+ <PlatformToolset>v143</PlatformToolset>
+ <WholeProgramOptimization>true</WholeProgramOptimization>
+ <CharacterSet>Unicode</CharacterSet>
+ <UseOfMfc>false</UseOfMfc>
+ </PropertyGroup>
+ <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'" Label="Configuration">
+ <ConfigurationType>DynamicLibrary</ConfigurationType>
+ <UseDebugLibraries>true</UseDebugLibraries>
+ <PlatformToolset>v143</PlatformToolset>
+ <CharacterSet>Unicode</CharacterSet>
+ <UseOfMfc>false</UseOfMfc>
+ </PropertyGroup>
+ <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'" Label="Configuration">
+ <ConfigurationType>DynamicLibrary</ConfigurationType>
+ <UseDebugLibraries>false</UseDebugLibraries>
+ <PlatformToolset>v143</PlatformToolset>
+ <WholeProgramOptimization>true</WholeProgramOptimization>
+ <CharacterSet>Unicode</CharacterSet>
+ <UseOfMfc>false</UseOfMfc>
+ </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|x64'">
+ <LinkIncremental>true</LinkIncremental>
+ <IncludePath>../Homework 1;$(IncludePath)</IncludePath>
+ </PropertyGroup>
+ <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
+ <LinkIncremental>true</LinkIncremental>
+ </PropertyGroup>
+ <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
+ <LinkIncremental>false</LinkIncremental>
+ </PropertyGroup>
+ <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'">
+ <LinkIncremental>false</LinkIncremental>
+ </PropertyGroup>
+ <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">
+ <ClCompile>
+ <PrecompiledHeader>Use</PrecompiledHeader>
+ <WarningLevel>Level3</WarningLevel>
+ <SDLCheck>true</SDLCheck>
+ <AdditionalIncludeDirectories>$(VCInstallDir)UnitTest\include;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
+ <PreprocessorDefinitions>_DEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions>
+ <UseFullPaths>true</UseFullPaths>
+ <PrecompiledHeaderFile>pch.h</PrecompiledHeaderFile>
+ </ClCompile>
+ <Link>
+ <SubSystem>Windows</SubSystem>
+ <AdditionalLibraryDirectories>$(VCInstallDir)UnitTest\lib;%(AdditionalLibraryDirectories)</AdditionalLibraryDirectories>
+ </Link>
+ </ItemDefinitionGroup>
+ <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
+ <ClCompile>
+ <PrecompiledHeader>Use</PrecompiledHeader>
+ <WarningLevel>Level3</WarningLevel>
+ <SDLCheck>true</SDLCheck>
+ <AdditionalIncludeDirectories>$(VCInstallDir)UnitTest\include;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
+ <PreprocessorDefinitions>WIN32;_DEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions>
+ <UseFullPaths>true</UseFullPaths>
+ <PrecompiledHeaderFile>pch.h</PrecompiledHeaderFile>
+ </ClCompile>
+ <Link>
+ <SubSystem>Windows</SubSystem>
+ <AdditionalLibraryDirectories>$(VCInstallDir)UnitTest\lib;%(AdditionalLibraryDirectories)</AdditionalLibraryDirectories>
+ </Link>
+ </ItemDefinitionGroup>
+ <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
+ <ClCompile>
+ <PrecompiledHeader>Use</PrecompiledHeader>
+ <WarningLevel>Level3</WarningLevel>
+ <FunctionLevelLinking>true</FunctionLevelLinking>
+ <IntrinsicFunctions>true</IntrinsicFunctions>
+ <SDLCheck>true</SDLCheck>
+ <AdditionalIncludeDirectories>$(VCInstallDir)UnitTest\include;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
+ <PreprocessorDefinitions>WIN32;NDEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions>
+ <UseFullPaths>true</UseFullPaths>
+ <PrecompiledHeaderFile>pch.h</PrecompiledHeaderFile>
+ </ClCompile>
+ <Link>
+ <SubSystem>Windows</SubSystem>
+ <EnableCOMDATFolding>true</EnableCOMDATFolding>
+ <OptimizeReferences>true</OptimizeReferences>
+ <AdditionalLibraryDirectories>$(VCInstallDir)UnitTest\lib;%(AdditionalLibraryDirectories)</AdditionalLibraryDirectories>
+ </Link>
+ </ItemDefinitionGroup>
+ <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'">
+ <ClCompile>
+ <PrecompiledHeader>Use</PrecompiledHeader>
+ <WarningLevel>Level3</WarningLevel>
+ <FunctionLevelLinking>true</FunctionLevelLinking>
+ <IntrinsicFunctions>true</IntrinsicFunctions>
+ <SDLCheck>true</SDLCheck>
+ <AdditionalIncludeDirectories>$(VCInstallDir)UnitTest\include;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
+ <PreprocessorDefinitions>NDEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions>
+ <UseFullPaths>true</UseFullPaths>
+ <PrecompiledHeaderFile>pch.h</PrecompiledHeaderFile>
+ </ClCompile>
+ <Link>
+ <SubSystem>Windows</SubSystem>
+ <EnableCOMDATFolding>true</EnableCOMDATFolding>
+ <OptimizeReferences>true</OptimizeReferences>
+ <AdditionalLibraryDirectories>$(VCInstallDir)UnitTest\lib;%(AdditionalLibraryDirectories)</AdditionalLibraryDirectories>
+ </Link>
+ </ItemDefinitionGroup>
+ <ItemGroup>
+ <ClCompile Include="pch.cpp">
+ <PrecompiledHeader Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">Create</PrecompiledHeader>
+ <PrecompiledHeader Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">Create</PrecompiledHeader>
+ <PrecompiledHeader Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">Create</PrecompiledHeader>
+ <PrecompiledHeader Condition="'$(Configuration)|$(Platform)'=='Release|x64'">Create</PrecompiledHeader>
+ </ClCompile>
+ <ClCompile Include="UnitTest1.cpp" />
+ </ItemGroup>
+ <ItemGroup>
+ <ClInclude Include="pch.h" />
+ </ItemGroup>
+ <Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
+ <ImportGroup Label="ExtensionTargets">
+ </ImportGroup>
+</Project> \ No newline at end of file
diff --git a/CST 126/UnitTest1/UnitTest1.vcxproj.filters b/CST 126/UnitTest1/UnitTest1.vcxproj.filters
new file mode 100644
index 0000000..f041cae
--- /dev/null
+++ b/CST 126/UnitTest1/UnitTest1.vcxproj.filters
@@ -0,0 +1,30 @@
+<?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="UnitTest1.cpp">
+ <Filter>Source Files</Filter>
+ </ClCompile>
+ <ClCompile Include="pch.cpp">
+ <Filter>Source Files</Filter>
+ </ClCompile>
+ </ItemGroup>
+ <ItemGroup>
+ <ClInclude Include="pch.h">
+ <Filter>Header Files</Filter>
+ </ClInclude>
+ </ItemGroup>
+</Project> \ No newline at end of file
diff --git a/CST 126/UnitTest1/pch.cpp b/CST 126/UnitTest1/pch.cpp
new file mode 100644
index 0000000..64b7eef
--- /dev/null
+++ b/CST 126/UnitTest1/pch.cpp
@@ -0,0 +1,5 @@
+// pch.cpp: source file corresponding to the pre-compiled header
+
+#include "pch.h"
+
+// When you are using pre-compiled headers, this source file is necessary for compilation to succeed.
diff --git a/CST 126/UnitTest1/pch.h b/CST 126/UnitTest1/pch.h
new file mode 100644
index 0000000..9d715b0
--- /dev/null
+++ b/CST 126/UnitTest1/pch.h
@@ -0,0 +1,12 @@
+// pch.h: This is a precompiled header file.
+// Files listed below are compiled only once, improving build performance for future builds.
+// This also affects IntelliSense performance, including code completion and many code browsing features.
+// However, files listed here are ALL re-compiled if any one of them is updated between builds.
+// Do not add files here that you will be updating frequently as this negates the performance advantage.
+
+#ifndef PCH_H
+#define PCH_H
+
+// add headers that you want to pre-compile here
+
+#endif //PCH_H