diff options
Diffstat (limited to 'Project')
29 files changed, 292 insertions, 0 deletions
diff --git a/Project/.vs/Project/FileContentIndex/1b847541-c5a8-42d7-933d-8fb99b96eaf0.vsidx b/Project/.vs/Project/FileContentIndex/1b847541-c5a8-42d7-933d-8fb99b96eaf0.vsidx Binary files differnew file mode 100644 index 0000000..2b2c994 --- /dev/null +++ b/Project/.vs/Project/FileContentIndex/1b847541-c5a8-42d7-933d-8fb99b96eaf0.vsidx diff --git a/Project/.vs/Project/FileContentIndex/ad110d17-4ffe-4f08-9622-4f6557d585e0.vsidx b/Project/.vs/Project/FileContentIndex/ad110d17-4ffe-4f08-9622-4f6557d585e0.vsidx Binary files differnew file mode 100644 index 0000000..a24f712 --- /dev/null +++ b/Project/.vs/Project/FileContentIndex/ad110d17-4ffe-4f08-9622-4f6557d585e0.vsidx diff --git a/Project/.vs/Project/FileContentIndex/ba258936-5f2a-41a3-aaa8-0fcbaee82cdb.vsidx b/Project/.vs/Project/FileContentIndex/ba258936-5f2a-41a3-aaa8-0fcbaee82cdb.vsidx Binary files differnew file mode 100644 index 0000000..460805c --- /dev/null +++ b/Project/.vs/Project/FileContentIndex/ba258936-5f2a-41a3-aaa8-0fcbaee82cdb.vsidx diff --git a/Project/.vs/Project/v17/.suo b/Project/.vs/Project/v17/.suo Binary files differnew file mode 100644 index 0000000..4e3d7e8 --- /dev/null +++ b/Project/.vs/Project/v17/.suo diff --git a/Project/.vs/Project/v17/Browse.VC.db b/Project/.vs/Project/v17/Browse.VC.db Binary files differnew file mode 100644 index 0000000..a9f3c3f --- /dev/null +++ b/Project/.vs/Project/v17/Browse.VC.db diff --git a/Project/.vs/Project/v17/ipch/AutoPCH/d0c22fe4d624cb6e/PROGRAM.ipch b/Project/.vs/Project/v17/ipch/AutoPCH/d0c22fe4d624cb6e/PROGRAM.ipch Binary files differnew file mode 100644 index 0000000..cad9b89 --- /dev/null +++ b/Project/.vs/Project/v17/ipch/AutoPCH/d0c22fe4d624cb6e/PROGRAM.ipch diff --git a/Project/Project.sln b/Project/Project.sln new file mode 100644 index 0000000..6f29f0a --- /dev/null +++ b/Project/Project.sln @@ -0,0 +1,31 @@ + +Microsoft Visual Studio Solution File, Format Version 12.00 +# Visual Studio Version 17 +VisualStudioVersion = 17.7.34031.279 +MinimumVisualStudioVersion = 10.0.40219.1 +Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "Project", "Project.vcxproj", "{4F0FEE58-EB24-415C-BEBA-250B874284CD}" +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 + {4F0FEE58-EB24-415C-BEBA-250B874284CD}.Debug|x64.ActiveCfg = Debug|x64 + {4F0FEE58-EB24-415C-BEBA-250B874284CD}.Debug|x64.Build.0 = Debug|x64 + {4F0FEE58-EB24-415C-BEBA-250B874284CD}.Debug|x86.ActiveCfg = Debug|Win32 + {4F0FEE58-EB24-415C-BEBA-250B874284CD}.Debug|x86.Build.0 = Debug|Win32 + {4F0FEE58-EB24-415C-BEBA-250B874284CD}.Release|x64.ActiveCfg = Release|x64 + {4F0FEE58-EB24-415C-BEBA-250B874284CD}.Release|x64.Build.0 = Release|x64 + {4F0FEE58-EB24-415C-BEBA-250B874284CD}.Release|x86.ActiveCfg = Release|Win32 + {4F0FEE58-EB24-415C-BEBA-250B874284CD}.Release|x86.Build.0 = Release|Win32 + EndGlobalSection + GlobalSection(SolutionProperties) = preSolution + HideSolutionNode = FALSE + EndGlobalSection + GlobalSection(ExtensibilityGlobals) = postSolution + SolutionGuid = {16FA2002-0E89-4B54-965D-573777A5A839} + EndGlobalSection +EndGlobal diff --git a/Project/Project.vcxproj b/Project/Project.vcxproj new file mode 100644 index 0000000..93784f2 --- /dev/null +++ b/Project/Project.vcxproj @@ -0,0 +1,138 @@ +<?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> + <Keyword>Win32Proj</Keyword> + <ProjectGuid>{4f0fee58-eb24-415c-beba-250b874284cd}</ProjectGuid> + <RootNamespace>Project</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>v143</PlatformToolset> + <CharacterSet>Unicode</CharacterSet> + </PropertyGroup> + <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'" Label="Configuration"> + <ConfigurationType>Application</ConfigurationType> + <UseDebugLibraries>false</UseDebugLibraries> + <PlatformToolset>v143</PlatformToolset> + <WholeProgramOptimization>true</WholeProgramOptimization> + <CharacterSet>Unicode</CharacterSet> + </PropertyGroup> + <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'" Label="Configuration"> + <ConfigurationType>Application</ConfigurationType> + <UseDebugLibraries>true</UseDebugLibraries> + <PlatformToolset>v143</PlatformToolset> + <CharacterSet>Unicode</CharacterSet> + </PropertyGroup> + <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'" Label="Configuration"> + <ConfigurationType>Application</ConfigurationType> + <UseDebugLibraries>false</UseDebugLibraries> + <PlatformToolset>v143</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" /> + <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="program.cpp" /> + </ItemGroup> + <ItemGroup> + <ClInclude Include="helpers.h" /> + </ItemGroup> + <Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" /> + <ImportGroup Label="ExtensionTargets"> + </ImportGroup> +</Project>
\ No newline at end of file diff --git a/Project/Project.vcxproj.filters b/Project/Project.vcxproj.filters new file mode 100644 index 0000000..842acbf --- /dev/null +++ b/Project/Project.vcxproj.filters @@ -0,0 +1,27 @@ +<?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="program.cpp"> + <Filter>Source Files</Filter> + </ClCompile> + </ItemGroup> + <ItemGroup> + <ClInclude Include="helpers.h"> + <Filter>Header Files</Filter> + </ClInclude> + </ItemGroup> +</Project>
\ No newline at end of file diff --git a/Project/Project.vcxproj.user b/Project/Project.vcxproj.user new file mode 100644 index 0000000..88a5509 --- /dev/null +++ b/Project/Project.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/Project/helpers.h b/Project/helpers.h new file mode 100644 index 0000000..e69de29 --- /dev/null +++ b/Project/helpers.h diff --git a/Project/program.cpp b/Project/program.cpp new file mode 100644 index 0000000..9e2cb82 --- /dev/null +++ b/Project/program.cpp @@ -0,0 +1,75 @@ +#include <iostream> + +using namespace std; + +#define VERBOSE + +void celsiusToFahrenheit(double celsius) { + double fahrenheit = 32 + (9.0 / 5.0 * celsius); + cout << "temperature in fahrenheit: " << fahrenheit << endl; +#ifdef VERBOSE + cout << "F = 32 + (9/5 * " << celsius << ")" << endl; + cout << "F = " << fahrenheit << endl; +#endif + + if (celsius >= 100) + cout << "temp is: boiling temp\n"; + else if (celsius >= 40) + cout << "temp is: very hot\n"; + else if (celsius >= 20) + cout << "temp is: warm\n"; + else if (celsius >= 10) + cout << "temp is: cold\n"; + else if (celsius >= 0) + cout << "temp is: almost freezing\n"; + else + cout << "temp is: freezing\n"; +} + +void fahrenheitToCelsius(double fahrenheit) { + double celsius = (fahrenheit - 32) * 5.0 / 9.0; + cout << "temperature in celsius: " << celsius << endl; +#ifdef VERBOSE + cout << "C = (F - 32) * 5/9" << endl; + cout << "C = " << celsius << endl; +#endif + + if (celsius >= 100) + cout << "temp is: boiling temp\n"; + else if (celsius >= 40) + cout << "temp is: very hot\n"; + else if (celsius >= 20) + cout << "temp is: warm\n"; + else if (celsius >= 10) + cout << "temp is: cold\n"; + else if (celsius >= 0) + cout << "temp is: almost freezing\n"; + else + cout << "temp is: freezing\n"; +} + +int main() { + char option; + double temperature; + + cout << "select an option:\n"; + cout << "1: celsius to fahrenheit\n"; + cout << "2: fahrenheit to celsius\n"; + cin >> option; + + if (option == '1') { + cout << "enter temperature in celsius: "; + cin >> temperature; + celsiusToFahrenheit(temperature); + } + else if (option == '2') { + cout << "enter temperature in fahrenheit: "; + cin >> temperature; + fahrenheitToCelsius(temperature); + } + else { + cout << "invalid input\n"; + } + + return 0; +}
\ No newline at end of file diff --git a/Project/x64/Debug/Project.exe b/Project/x64/Debug/Project.exe Binary files differnew file mode 100644 index 0000000..296291e --- /dev/null +++ b/Project/x64/Debug/Project.exe diff --git a/Project/x64/Debug/Project.exe.recipe b/Project/x64/Debug/Project.exe.recipe new file mode 100644 index 0000000..4a92013 --- /dev/null +++ b/Project/x64/Debug/Project.exe.recipe @@ -0,0 +1,11 @@ +<?xml version="1.0" encoding="utf-8"?> +<Project> + <ProjectOutputs> + <ProjectOutput> + <FullPath>C:\Users\Administrator\Desktop\repos\homework-2-austinlujan\Project\x64\Debug\Project.exe</FullPath> + </ProjectOutput> + </ProjectOutputs> + <ContentFiles /> + <SatelliteDlls /> + <NonRecipeFileRefs /> +</Project>
\ No newline at end of file diff --git a/Project/x64/Debug/Project.ilk b/Project/x64/Debug/Project.ilk Binary files differnew file mode 100644 index 0000000..0d3cbcc --- /dev/null +++ b/Project/x64/Debug/Project.ilk diff --git a/Project/x64/Debug/Project.log b/Project/x64/Debug/Project.log new file mode 100644 index 0000000..f80f546 --- /dev/null +++ b/Project/x64/Debug/Project.log @@ -0,0 +1,2 @@ + program.cpp + Project.vcxproj -> C:\Users\Administrator\Desktop\repos\homework-2-austinlujan\Project\x64\Debug\Project.exe diff --git a/Project/x64/Debug/Project.pdb b/Project/x64/Debug/Project.pdb Binary files differnew file mode 100644 index 0000000..0549c56 --- /dev/null +++ b/Project/x64/Debug/Project.pdb diff --git a/Project/x64/Debug/Project.tlog/CL.command.1.tlog b/Project/x64/Debug/Project.tlog/CL.command.1.tlog Binary files differnew file mode 100644 index 0000000..4105dc4 --- /dev/null +++ b/Project/x64/Debug/Project.tlog/CL.command.1.tlog diff --git a/Project/x64/Debug/Project.tlog/CL.read.1.tlog b/Project/x64/Debug/Project.tlog/CL.read.1.tlog Binary files differnew file mode 100644 index 0000000..ffa5e4b --- /dev/null +++ b/Project/x64/Debug/Project.tlog/CL.read.1.tlog diff --git a/Project/x64/Debug/Project.tlog/CL.write.1.tlog b/Project/x64/Debug/Project.tlog/CL.write.1.tlog Binary files differnew file mode 100644 index 0000000..8a6c557 --- /dev/null +++ b/Project/x64/Debug/Project.tlog/CL.write.1.tlog diff --git a/Project/x64/Debug/Project.tlog/Cl.items.tlog b/Project/x64/Debug/Project.tlog/Cl.items.tlog new file mode 100644 index 0000000..b6e36a0 --- /dev/null +++ b/Project/x64/Debug/Project.tlog/Cl.items.tlog @@ -0,0 +1 @@ +C:\Users\Administrator\Desktop\repos\homework-2-austinlujan\Project\program.cpp;C:\Users\Administrator\Desktop\repos\homework-2-austinlujan\Project\x64\Debug\program.obj diff --git a/Project/x64/Debug/Project.tlog/Project.lastbuildstate b/Project/x64/Debug/Project.tlog/Project.lastbuildstate new file mode 100644 index 0000000..3450cdc --- /dev/null +++ b/Project/x64/Debug/Project.tlog/Project.lastbuildstate @@ -0,0 +1,2 @@ +PlatformToolSet=v143:VCToolArchitecture=Native64Bit:VCToolsVersion=14.37.32822:TargetPlatformVersion=10.0.22621.0: +Debug|x64|C:\Users\Administrator\Desktop\repos\homework-2-austinlujan\Project\| diff --git a/Project/x64/Debug/Project.tlog/link.command.1.tlog b/Project/x64/Debug/Project.tlog/link.command.1.tlog Binary files differnew file mode 100644 index 0000000..7fd908f --- /dev/null +++ b/Project/x64/Debug/Project.tlog/link.command.1.tlog diff --git a/Project/x64/Debug/Project.tlog/link.read.1.tlog b/Project/x64/Debug/Project.tlog/link.read.1.tlog Binary files differnew file mode 100644 index 0000000..02d063d --- /dev/null +++ b/Project/x64/Debug/Project.tlog/link.read.1.tlog diff --git a/Project/x64/Debug/Project.tlog/link.write.1.tlog b/Project/x64/Debug/Project.tlog/link.write.1.tlog Binary files differnew file mode 100644 index 0000000..75fbaf5 --- /dev/null +++ b/Project/x64/Debug/Project.tlog/link.write.1.tlog diff --git a/Project/x64/Debug/Project.vcxproj.FileListAbsolute.txt b/Project/x64/Debug/Project.vcxproj.FileListAbsolute.txt new file mode 100644 index 0000000..d754799 --- /dev/null +++ b/Project/x64/Debug/Project.vcxproj.FileListAbsolute.txt @@ -0,0 +1 @@ +C:\Users\Administrator\Desktop\repos\homework-2-austinlujan\Project\x64\Debug\Project.exe diff --git a/Project/x64/Debug/program.obj b/Project/x64/Debug/program.obj Binary files differnew file mode 100644 index 0000000..3222c64 --- /dev/null +++ b/Project/x64/Debug/program.obj diff --git a/Project/x64/Debug/vc143.idb b/Project/x64/Debug/vc143.idb Binary files differnew file mode 100644 index 0000000..6a83855 --- /dev/null +++ b/Project/x64/Debug/vc143.idb diff --git a/Project/x64/Debug/vc143.pdb b/Project/x64/Debug/vc143.pdb Binary files differnew file mode 100644 index 0000000..38502ba --- /dev/null +++ b/Project/x64/Debug/vc143.pdb |