From 85611adab2f5cad292523582797a656a6f96497c Mon Sep 17 00:00:00 2001 From: Connor McDowell Date: Thu, 25 Jan 2024 17:29:19 -0800 Subject: staging using excersize five as template --- .vs/Excersize 6/v17/.suo | Bin 0 -> 27648 bytes .vs/Excersize 6/v17/Browse.VC.db | Bin 0 -> 401408 bytes .vs/Excersize 6/v17/Solution.VC.db | Bin 0 -> 438272 bytes .vs/ProjectSettings.json | 3 + .vs/VSWorkspaceState.json | 7 ++ .../34dac7c7-d160-42ec-9141-158f42daa435.vsidx | Bin 0 -> 188 bytes .../7e452ea9-6591-487e-b3ef-278fbaf293c5.vsidx | Bin 0 -> 2950 bytes .../910a5a6d-06ed-4744-82d0-bb0c3100053b.vsidx | Bin 0 -> 192 bytes .../v17/.wsuo | Bin 0 -> 25600 bytes .../v17/Browse.VC.db | Bin 0 -> 188416 bytes .vs/slnx.sqlite | Bin 0 -> 90112 bytes Excersize 6.cpp | 62 +++++++++ Excersize 6.sln | 13 ++ Excersize 6.vcxproj | 138 +++++++++++++++++++++ Excersize 6.vcxproj.filters | 27 ++++ Excersize 6.vcxproj.user | 4 + README.md | 1 - helper.h | 15 +++ 18 files changed, 269 insertions(+), 1 deletion(-) create mode 100644 .vs/Excersize 6/v17/.suo create mode 100644 .vs/Excersize 6/v17/Browse.VC.db create mode 100644 .vs/Excersize 6/v17/Solution.VC.db create mode 100644 .vs/ProjectSettings.json create mode 100644 .vs/VSWorkspaceState.json create mode 100644 .vs/in-class-exercise-6-connormcdowell275/FileContentIndex/34dac7c7-d160-42ec-9141-158f42daa435.vsidx create mode 100644 .vs/in-class-exercise-6-connormcdowell275/FileContentIndex/7e452ea9-6591-487e-b3ef-278fbaf293c5.vsidx create mode 100644 .vs/in-class-exercise-6-connormcdowell275/FileContentIndex/910a5a6d-06ed-4744-82d0-bb0c3100053b.vsidx create mode 100644 .vs/in-class-exercise-6-connormcdowell275/v17/.wsuo create mode 100644 .vs/in-class-exercise-6-connormcdowell275/v17/Browse.VC.db create mode 100644 .vs/slnx.sqlite create mode 100644 Excersize 6.cpp create mode 100644 Excersize 6.sln create mode 100644 Excersize 6.vcxproj create mode 100644 Excersize 6.vcxproj.filters create mode 100644 Excersize 6.vcxproj.user delete mode 100644 README.md create mode 100644 helper.h diff --git a/.vs/Excersize 6/v17/.suo b/.vs/Excersize 6/v17/.suo new file mode 100644 index 0000000..ab1c5ab Binary files /dev/null and b/.vs/Excersize 6/v17/.suo 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 Binary files /dev/null and b/.vs/Excersize 6/v17/Browse.VC.db 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 Binary files /dev/null and b/.vs/Excersize 6/v17/Solution.VC.db 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 Binary files /dev/null and b/.vs/in-class-exercise-6-connormcdowell275/FileContentIndex/34dac7c7-d160-42ec-9141-158f42daa435.vsidx 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 Binary files /dev/null and b/.vs/in-class-exercise-6-connormcdowell275/FileContentIndex/7e452ea9-6591-487e-b3ef-278fbaf293c5.vsidx 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 Binary files /dev/null and b/.vs/in-class-exercise-6-connormcdowell275/FileContentIndex/910a5a6d-06ed-4744-82d0-bb0c3100053b.vsidx 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 Binary files /dev/null and b/.vs/in-class-exercise-6-connormcdowell275/v17/.wsuo 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 Binary files /dev/null and b/.vs/in-class-exercise-6-connormcdowell275/v17/Browse.VC.db differ diff --git a/.vs/slnx.sqlite b/.vs/slnx.sqlite new file mode 100644 index 0000000..0e95ecc Binary files /dev/null and b/.vs/slnx.sqlite 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 + +#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(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 @@ + + + + + Debug + Win32 + + + Release + Win32 + + + Debug + x64 + + + Release + x64 + + + + 17.0 + Win32Proj + {f1d7e6c4-986b-4250-87d2-842f20591189} + Excersize5 + 10.0 + + + + Application + true + v143 + Unicode + + + Application + false + v143 + true + Unicode + + + Application + true + v143 + Unicode + + + Application + false + v143 + true + Unicode + + + + + + + + + + + + + + + + + + + + + + Level3 + true + WIN32;_DEBUG;_CONSOLE;%(PreprocessorDefinitions) + true + + + Console + true + + + + + Level3 + true + true + true + WIN32;NDEBUG;_CONSOLE;%(PreprocessorDefinitions) + true + + + Console + true + true + true + + + + + Level3 + true + _DEBUG;_CONSOLE;%(PreprocessorDefinitions) + true + + + Console + true + + + + + Level3 + true + true + true + NDEBUG;_CONSOLE;%(PreprocessorDefinitions) + true + + + Console + true + true + true + + + + + + + + + + + + \ 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 @@ + + + + + {4FC737F1-C7A5-4376-A066-2A32D752A2FF} + cpp;c;cc;cxx;c++;cppm;ixx;def;odl;idl;hpj;bat;asm;asmx + + + {93995380-89BD-4b04-88EB-625FBE52EBFB} + h;hh;hpp;hxx;h++;hm;inl;inc;ipp;xsd + + + {67DA6AB6-F800-4c08-8B7A-83BB121AAD01} + rc;ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe;resx;tiff;tif;png;wav;mfcribbon-ms + + + + + Source Files + + + + + Header Files + + + \ 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 @@ + + + + \ 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 + -- cgit v1.2.3