diff options
Diffstat (limited to 'Project1')
29 files changed, 305 insertions, 0 deletions
diff --git a/Project1/.vs/Project1/FileContentIndex/147eacf3-e3ab-4f15-b443-13621035a8db.vsidx b/Project1/.vs/Project1/FileContentIndex/147eacf3-e3ab-4f15-b443-13621035a8db.vsidx Binary files differnew file mode 100644 index 0000000..ca2d668 --- /dev/null +++ b/Project1/.vs/Project1/FileContentIndex/147eacf3-e3ab-4f15-b443-13621035a8db.vsidx diff --git a/Project1/.vs/Project1/FileContentIndex/4e52feb9-6d40-4aed-b3a9-f20ecc80e727.vsidx b/Project1/.vs/Project1/FileContentIndex/4e52feb9-6d40-4aed-b3a9-f20ecc80e727.vsidx Binary files differnew file mode 100644 index 0000000..2d6a3bb --- /dev/null +++ b/Project1/.vs/Project1/FileContentIndex/4e52feb9-6d40-4aed-b3a9-f20ecc80e727.vsidx diff --git a/Project1/.vs/Project1/FileContentIndex/e50ece49-d80c-4e35-ac17-3fbf0d1793b8.vsidx b/Project1/.vs/Project1/FileContentIndex/e50ece49-d80c-4e35-ac17-3fbf0d1793b8.vsidx Binary files differnew file mode 100644 index 0000000..2f126d4 --- /dev/null +++ b/Project1/.vs/Project1/FileContentIndex/e50ece49-d80c-4e35-ac17-3fbf0d1793b8.vsidx diff --git a/Project1/.vs/Project1/v17/.suo b/Project1/.vs/Project1/v17/.suo Binary files differnew file mode 100644 index 0000000..01f15d5 --- /dev/null +++ b/Project1/.vs/Project1/v17/.suo diff --git a/Project1/.vs/Project1/v17/Browse.VC.db b/Project1/.vs/Project1/v17/Browse.VC.db Binary files differnew file mode 100644 index 0000000..e382977 --- /dev/null +++ b/Project1/.vs/Project1/v17/Browse.VC.db diff --git a/Project1/.vs/Project1/v17/ipch/AutoPCH/4b3268dd7ee993ab/PROGRAM.ipch b/Project1/.vs/Project1/v17/ipch/AutoPCH/4b3268dd7ee993ab/PROGRAM.ipch Binary files differnew file mode 100644 index 0000000..50b2421 --- /dev/null +++ b/Project1/.vs/Project1/v17/ipch/AutoPCH/4b3268dd7ee993ab/PROGRAM.ipch diff --git a/Project1/Project1.sln b/Project1/Project1.sln new file mode 100644 index 0000000..08fe1d0 --- /dev/null +++ b/Project1/Project1.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}") = "Project1", "Project1.vcxproj", "{F75C0294-B969-4A02-9765-E4795E072DF2}" +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 + {F75C0294-B969-4A02-9765-E4795E072DF2}.Debug|x64.ActiveCfg = Debug|x64 + {F75C0294-B969-4A02-9765-E4795E072DF2}.Debug|x64.Build.0 = Debug|x64 + {F75C0294-B969-4A02-9765-E4795E072DF2}.Debug|x86.ActiveCfg = Debug|Win32 + {F75C0294-B969-4A02-9765-E4795E072DF2}.Debug|x86.Build.0 = Debug|Win32 + {F75C0294-B969-4A02-9765-E4795E072DF2}.Release|x64.ActiveCfg = Release|x64 + {F75C0294-B969-4A02-9765-E4795E072DF2}.Release|x64.Build.0 = Release|x64 + {F75C0294-B969-4A02-9765-E4795E072DF2}.Release|x86.ActiveCfg = Release|Win32 + {F75C0294-B969-4A02-9765-E4795E072DF2}.Release|x86.Build.0 = Release|Win32 + EndGlobalSection + GlobalSection(SolutionProperties) = preSolution + HideSolutionNode = FALSE + EndGlobalSection + GlobalSection(ExtensibilityGlobals) = postSolution + SolutionGuid = {24D5D6D8-B341-43CD-926F-379FF9DE0B9A} + EndGlobalSection +EndGlobal diff --git a/Project1/Project1.vcxproj b/Project1/Project1.vcxproj new file mode 100644 index 0000000..debfa85 --- /dev/null +++ b/Project1/Project1.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>{f75c0294-b969-4a02-9765-e4795e072df2}</ProjectGuid> + <RootNamespace>Project1</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/Project1/Project1.vcxproj.filters b/Project1/Project1.vcxproj.filters new file mode 100644 index 0000000..842acbf --- /dev/null +++ b/Project1/Project1.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/Project1/Project1.vcxproj.user b/Project1/Project1.vcxproj.user new file mode 100644 index 0000000..88a5509 --- /dev/null +++ b/Project1/Project1.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/Project1/helpers.h b/Project1/helpers.h new file mode 100644 index 0000000..6943230 --- /dev/null +++ b/Project1/helpers.h @@ -0,0 +1,15 @@ +#ifndef MY_HEADER_FILE_H +#define MY_HEADER_FILE_H + +int returnInt(); + +int sum(int a, int b); + +float percentage(int a, int b); + +float FtoC(int fah); + +float CtoF(int cel); + +#endif // !MY_HEADER_FILE_H + diff --git a/Project1/program.cpp b/Project1/program.cpp new file mode 100644 index 0000000..2aec9cb --- /dev/null +++ b/Project1/program.cpp @@ -0,0 +1,71 @@ +// Name: Austin Lujan +// Date: 1/16 +// Class: CST 116 +// Assignment: Exercise 5 + +#include <iostream> +#include "helpers.h" + + + +int main() +{ + int mySum = sum(15, 30); + + std::cout << mySum << std::endl; + + std::cout << returnInt() << std::endl; + + std::cout << percentage(10, 100) << std::endl; + std::cout << percentage(25, 100) << std::endl; + std::cout << percentage(35, 100) << std::endl; + std::cout << percentage(780, 100) << std::endl; + + int i; + std::cin >> i; + std::cout << FtoC(i) << std::endl; + std::cout << CtoF(i) << std::endl; + return 0; +} + +int sum(int a, int b) +{ + int sum = 0; + + sum = a + b; + + return sum; +} + +int returnInt() +{ + + return 10; +} + +float percentage(int a, int b) +{ + float perc = ((float(a) / b)) * 100; + + return perc; +} + +float FtoC(int fah) +{ + // -32*5/9 + + float num = (fah - 32) * (5 / 9); + + return num; +} + +float CtoF(int cel) +{ + // 9/5+32 + + float num = (cel * (9.0 / 5.0)) + 32; + + return num; +} + + diff --git a/Project1/x64/Debug/Project1.exe b/Project1/x64/Debug/Project1.exe Binary files differnew file mode 100644 index 0000000..af7602c --- /dev/null +++ b/Project1/x64/Debug/Project1.exe diff --git a/Project1/x64/Debug/Project1.exe.recipe b/Project1/x64/Debug/Project1.exe.recipe new file mode 100644 index 0000000..ae48716 --- /dev/null +++ b/Project1/x64/Debug/Project1.exe.recipe @@ -0,0 +1,11 @@ +<?xml version="1.0" encoding="utf-8"?> +<Project> + <ProjectOutputs> + <ProjectOutput> + <FullPath>C:\Users\Administrator\Desktop\repos\in-class-exercise-5-austinlujan\Project1\x64\Debug\Project1.exe</FullPath> + </ProjectOutput> + </ProjectOutputs> + <ContentFiles /> + <SatelliteDlls /> + <NonRecipeFileRefs /> +</Project>
\ No newline at end of file diff --git a/Project1/x64/Debug/Project1.ilk b/Project1/x64/Debug/Project1.ilk Binary files differnew file mode 100644 index 0000000..c9778be --- /dev/null +++ b/Project1/x64/Debug/Project1.ilk diff --git a/Project1/x64/Debug/Project1.log b/Project1/x64/Debug/Project1.log new file mode 100644 index 0000000..443834f --- /dev/null +++ b/Project1/x64/Debug/Project1.log @@ -0,0 +1,4 @@ + program.cpp +C:\Users\Administrator\Desktop\repos\in-class-exercise-5-austinlujan\Project1\program.cpp(57,12): warning C4244: 'initializing': conversion from 'int' to 'float', possible loss of data +C:\Users\Administrator\Desktop\repos\in-class-exercise-5-austinlujan\Project1\program.cpp(66,12): warning C4244: 'initializing': conversion from 'double' to 'float', possible loss of data + Project1.vcxproj -> C:\Users\Administrator\Desktop\repos\in-class-exercise-5-austinlujan\Project1\x64\Debug\Project1.exe diff --git a/Project1/x64/Debug/Project1.pdb b/Project1/x64/Debug/Project1.pdb Binary files differnew file mode 100644 index 0000000..d14d62f --- /dev/null +++ b/Project1/x64/Debug/Project1.pdb diff --git a/Project1/x64/Debug/Project1.tlog/CL.command.1.tlog b/Project1/x64/Debug/Project1.tlog/CL.command.1.tlog Binary files differnew file mode 100644 index 0000000..efa2584 --- /dev/null +++ b/Project1/x64/Debug/Project1.tlog/CL.command.1.tlog diff --git a/Project1/x64/Debug/Project1.tlog/CL.read.1.tlog b/Project1/x64/Debug/Project1.tlog/CL.read.1.tlog Binary files differnew file mode 100644 index 0000000..a694f2d --- /dev/null +++ b/Project1/x64/Debug/Project1.tlog/CL.read.1.tlog diff --git a/Project1/x64/Debug/Project1.tlog/CL.write.1.tlog b/Project1/x64/Debug/Project1.tlog/CL.write.1.tlog Binary files differnew file mode 100644 index 0000000..035a7a1 --- /dev/null +++ b/Project1/x64/Debug/Project1.tlog/CL.write.1.tlog diff --git a/Project1/x64/Debug/Project1.tlog/Cl.items.tlog b/Project1/x64/Debug/Project1.tlog/Cl.items.tlog new file mode 100644 index 0000000..a353e36 --- /dev/null +++ b/Project1/x64/Debug/Project1.tlog/Cl.items.tlog @@ -0,0 +1 @@ +C:\Users\Administrator\Desktop\repos\in-class-exercise-5-austinlujan\Project1\program.cpp;C:\Users\Administrator\Desktop\repos\in-class-exercise-5-austinlujan\Project1\x64\Debug\program.obj diff --git a/Project1/x64/Debug/Project1.tlog/Project1.lastbuildstate b/Project1/x64/Debug/Project1.tlog/Project1.lastbuildstate new file mode 100644 index 0000000..722324f --- /dev/null +++ b/Project1/x64/Debug/Project1.tlog/Project1.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\in-class-exercise-5-austinlujan\Project1\| diff --git a/Project1/x64/Debug/Project1.tlog/link.command.1.tlog b/Project1/x64/Debug/Project1.tlog/link.command.1.tlog Binary files differnew file mode 100644 index 0000000..dc778ed --- /dev/null +++ b/Project1/x64/Debug/Project1.tlog/link.command.1.tlog diff --git a/Project1/x64/Debug/Project1.tlog/link.read.1.tlog b/Project1/x64/Debug/Project1.tlog/link.read.1.tlog Binary files differnew file mode 100644 index 0000000..c2a35b5 --- /dev/null +++ b/Project1/x64/Debug/Project1.tlog/link.read.1.tlog diff --git a/Project1/x64/Debug/Project1.tlog/link.write.1.tlog b/Project1/x64/Debug/Project1.tlog/link.write.1.tlog Binary files differnew file mode 100644 index 0000000..6ccb738 --- /dev/null +++ b/Project1/x64/Debug/Project1.tlog/link.write.1.tlog diff --git a/Project1/x64/Debug/Project1.vcxproj.FileListAbsolute.txt b/Project1/x64/Debug/Project1.vcxproj.FileListAbsolute.txt new file mode 100644 index 0000000..3c78418 --- /dev/null +++ b/Project1/x64/Debug/Project1.vcxproj.FileListAbsolute.txt @@ -0,0 +1 @@ +C:\Users\Administrator\Desktop\repos\in-class-exercise-5-austinlujan\Project1\x64\Debug\Project1.exe diff --git a/Project1/x64/Debug/program.obj b/Project1/x64/Debug/program.obj Binary files differnew file mode 100644 index 0000000..3c6f30e --- /dev/null +++ b/Project1/x64/Debug/program.obj diff --git a/Project1/x64/Debug/vc143.idb b/Project1/x64/Debug/vc143.idb Binary files differnew file mode 100644 index 0000000..6a104f3 --- /dev/null +++ b/Project1/x64/Debug/vc143.idb diff --git a/Project1/x64/Debug/vc143.pdb b/Project1/x64/Debug/vc143.pdb Binary files differnew file mode 100644 index 0000000..57de54a --- /dev/null +++ b/Project1/x64/Debug/vc143.pdb |