summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorConnor McDowell <[email protected]>2024-01-25 17:29:19 -0800
committerConnor McDowell <[email protected]>2024-01-25 17:29:19 -0800
commit85611adab2f5cad292523582797a656a6f96497c (patch)
treee2e102254e99f3baa7a2f5cbf5569c0832042d8f
parentadd deadline (diff)
downloadin-class-exercise-6-connormcdowell275-85611adab2f5cad292523582797a656a6f96497c.tar.xz
in-class-exercise-6-connormcdowell275-85611adab2f5cad292523582797a656a6f96497c.zip
staging using excersize five as template
-rw-r--r--.vs/Excersize 6/v17/.suobin0 -> 27648 bytes
-rw-r--r--.vs/Excersize 6/v17/Browse.VC.dbbin0 -> 401408 bytes
-rw-r--r--.vs/Excersize 6/v17/Solution.VC.dbbin0 -> 438272 bytes
-rw-r--r--.vs/ProjectSettings.json3
-rw-r--r--.vs/VSWorkspaceState.json7
-rw-r--r--.vs/in-class-exercise-6-connormcdowell275/FileContentIndex/34dac7c7-d160-42ec-9141-158f42daa435.vsidxbin0 -> 188 bytes
-rw-r--r--.vs/in-class-exercise-6-connormcdowell275/FileContentIndex/7e452ea9-6591-487e-b3ef-278fbaf293c5.vsidxbin0 -> 2950 bytes
-rw-r--r--.vs/in-class-exercise-6-connormcdowell275/FileContentIndex/910a5a6d-06ed-4744-82d0-bb0c3100053b.vsidxbin0 -> 192 bytes
-rw-r--r--.vs/in-class-exercise-6-connormcdowell275/v17/.wsuobin0 -> 25600 bytes
-rw-r--r--.vs/in-class-exercise-6-connormcdowell275/v17/Browse.VC.dbbin0 -> 188416 bytes
-rw-r--r--.vs/slnx.sqlitebin0 -> 90112 bytes
-rw-r--r--Excersize 6.cpp62
-rw-r--r--Excersize 6.sln13
-rw-r--r--Excersize 6.vcxproj138
-rw-r--r--Excersize 6.vcxproj.filters27
-rw-r--r--Excersize 6.vcxproj.user4
-rw-r--r--README.md1
-rw-r--r--helper.h15
18 files changed, 269 insertions, 1 deletions
diff --git a/.vs/Excersize 6/v17/.suo b/.vs/Excersize 6/v17/.suo
new file mode 100644
index 0000000..ab1c5ab
--- /dev/null
+++ b/.vs/Excersize 6/v17/.suo
Binary files differ
diff --git a/.vs/Excersize 6/v17/Browse.VC.db b/.vs/Excersize 6/v17/Browse.VC.db
new file mode 100644
index 0000000..28af97c
--- /dev/null
+++ b/.vs/Excersize 6/v17/Browse.VC.db
Binary files differ
diff --git a/.vs/Excersize 6/v17/Solution.VC.db b/.vs/Excersize 6/v17/Solution.VC.db
new file mode 100644
index 0000000..30d52b2
--- /dev/null
+++ b/.vs/Excersize 6/v17/Solution.VC.db
Binary files differ
diff --git a/.vs/ProjectSettings.json b/.vs/ProjectSettings.json
new file mode 100644
index 0000000..f8b4888
--- /dev/null
+++ b/.vs/ProjectSettings.json
@@ -0,0 +1,3 @@
+{
+ "CurrentProjectSetting": null
+} \ No newline at end of file
diff --git a/.vs/VSWorkspaceState.json b/.vs/VSWorkspaceState.json
new file mode 100644
index 0000000..555e6cc
--- /dev/null
+++ b/.vs/VSWorkspaceState.json
@@ -0,0 +1,7 @@
+{
+ "ExpandedNodes": [
+ "",
+ "\\.github"
+ ],
+ "PreviewInSolutionExplorer": false
+} \ No newline at end of file
diff --git a/.vs/in-class-exercise-6-connormcdowell275/FileContentIndex/34dac7c7-d160-42ec-9141-158f42daa435.vsidx b/.vs/in-class-exercise-6-connormcdowell275/FileContentIndex/34dac7c7-d160-42ec-9141-158f42daa435.vsidx
new file mode 100644
index 0000000..2bc8987
--- /dev/null
+++ b/.vs/in-class-exercise-6-connormcdowell275/FileContentIndex/34dac7c7-d160-42ec-9141-158f42daa435.vsidx
Binary files differ
diff --git a/.vs/in-class-exercise-6-connormcdowell275/FileContentIndex/7e452ea9-6591-487e-b3ef-278fbaf293c5.vsidx b/.vs/in-class-exercise-6-connormcdowell275/FileContentIndex/7e452ea9-6591-487e-b3ef-278fbaf293c5.vsidx
new file mode 100644
index 0000000..a8a4d96
--- /dev/null
+++ b/.vs/in-class-exercise-6-connormcdowell275/FileContentIndex/7e452ea9-6591-487e-b3ef-278fbaf293c5.vsidx
Binary files differ
diff --git a/.vs/in-class-exercise-6-connormcdowell275/FileContentIndex/910a5a6d-06ed-4744-82d0-bb0c3100053b.vsidx b/.vs/in-class-exercise-6-connormcdowell275/FileContentIndex/910a5a6d-06ed-4744-82d0-bb0c3100053b.vsidx
new file mode 100644
index 0000000..c58f8b6
--- /dev/null
+++ b/.vs/in-class-exercise-6-connormcdowell275/FileContentIndex/910a5a6d-06ed-4744-82d0-bb0c3100053b.vsidx
Binary files differ
diff --git a/.vs/in-class-exercise-6-connormcdowell275/v17/.wsuo b/.vs/in-class-exercise-6-connormcdowell275/v17/.wsuo
new file mode 100644
index 0000000..5bfdaa2
--- /dev/null
+++ b/.vs/in-class-exercise-6-connormcdowell275/v17/.wsuo
Binary files differ
diff --git a/.vs/in-class-exercise-6-connormcdowell275/v17/Browse.VC.db b/.vs/in-class-exercise-6-connormcdowell275/v17/Browse.VC.db
new file mode 100644
index 0000000..f3a5061
--- /dev/null
+++ b/.vs/in-class-exercise-6-connormcdowell275/v17/Browse.VC.db
Binary files differ
diff --git a/.vs/slnx.sqlite b/.vs/slnx.sqlite
new file mode 100644
index 0000000..0e95ecc
--- /dev/null
+++ b/.vs/slnx.sqlite
Binary files differ
diff --git a/Excersize 6.cpp b/Excersize 6.cpp
new file mode 100644
index 0000000..29b82e5
--- /dev/null
+++ b/Excersize 6.cpp
@@ -0,0 +1,62 @@
+// Name: Connor McDowell
+// Date: 1/22/2024
+// Class: CST116
+// Assignment: exercise 5
+
+#include <iostream>
+
+#include "helper.h"
+
+int main()
+{
+ int mySum = sum(15, 30);
+
+ std::cout << mySum << std::endl;
+
+ std::cout << returnInt() << std::endl;
+
+ std::cout << percentage(40, 78) << std::endl;
+ std::cout << FtoC(56) << std::endl;
+ std::cout << CtoF(120) << std::endl;
+}
+
+int returnInt()
+{
+
+ return 10;
+}
+
+int sum(int a, int b)
+{
+ int sum = 0;
+ sum = a + b;
+
+ return sum;
+}
+
+float percentage(int a, int b)
+{
+ int perc = 0;
+ perc = (static_cast<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;
+} \ No newline at end of file
diff --git a/Excersize 6.sln b/Excersize 6.sln
new file mode 100644
index 0000000..10a024c
--- /dev/null
+++ b/Excersize 6.sln
@@ -0,0 +1,13 @@
+
+Microsoft Visual Studio Solution File, Format Version 12.00
+# Visual Studio Version 17
+VisualStudioVersion = 17.8.34408.163
+MinimumVisualStudioVersion = 10.0.40219.1
+Global
+ GlobalSection(SolutionProperties) = preSolution
+ HideSolutionNode = FALSE
+ EndGlobalSection
+ GlobalSection(ExtensibilityGlobals) = postSolution
+ SolutionGuid = {1F032F7E-F2E1-4035-B8DA-CA9C465160BF}
+ EndGlobalSection
+EndGlobal
diff --git a/Excersize 6.vcxproj b/Excersize 6.vcxproj
new file mode 100644
index 0000000..ecd9dd1
--- /dev/null
+++ b/Excersize 6.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>{f1d7e6c4-986b-4250-87d2-842f20591189}</ProjectGuid>
+ <RootNamespace>Excersize5</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="Excersize 5.cpp" />
+ </ItemGroup>
+ <ItemGroup>
+ <ClInclude Include="helper.h" />
+ </ItemGroup>
+ <Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
+ <ImportGroup Label="ExtensionTargets">
+ </ImportGroup>
+</Project> \ No newline at end of file
diff --git a/Excersize 6.vcxproj.filters b/Excersize 6.vcxproj.filters
new file mode 100644
index 0000000..7ec2f9f
--- /dev/null
+++ b/Excersize 6.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="Excersize 5.cpp">
+ <Filter>Source Files</Filter>
+ </ClCompile>
+ </ItemGroup>
+ <ItemGroup>
+ <ClInclude Include="helper.h">
+ <Filter>Header Files</Filter>
+ </ClInclude>
+ </ItemGroup>
+</Project> \ No newline at end of file
diff --git a/Excersize 6.vcxproj.user b/Excersize 6.vcxproj.user
new file mode 100644
index 0000000..88a5509
--- /dev/null
+++ b/Excersize 6.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/README.md b/README.md
deleted file mode 100644
index c2a1e8c..0000000
--- a/README.md
+++ /dev/null
@@ -1 +0,0 @@
-[![Review Assignment Due Date](https://classroom.github.com/assets/deadline-readme-button-24ddc0f5d75046c5622901739e7c5dd533143b0c8e959d652212380cedb1ea36.svg)](https://classroom.github.com/a/Vn47B8IQ)
diff --git a/helper.h b/helper.h
new file mode 100644
index 0000000..39f5d52
--- /dev/null
+++ b/helper.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
+