From c54847448d2718db785782298647ad37c1a61732 Mon Sep 17 00:00:00 2001 From: austinlujan Date: Wed, 20 Mar 2024 22:19:12 -0700 Subject: assignment complete and tested --- .../1b847541-c5a8-42d7-933d-8fb99b96eaf0.vsidx | Bin 0 -> 8383 bytes .../ad110d17-4ffe-4f08-9622-4f6557d585e0.vsidx | Bin 0 -> 192 bytes .../ba258936-5f2a-41a3-aaa8-0fcbaee82cdb.vsidx | Bin 0 -> 3543 bytes Project/.vs/Project/v17/.suo | Bin 0 -> 23040 bytes Project/.vs/Project/v17/Browse.VC.db | Bin 0 -> 11042816 bytes .../v17/ipch/AutoPCH/d0c22fe4d624cb6e/PROGRAM.ipch | Bin 0 -> 38928384 bytes Project/Project.sln | 31 +++++ Project/Project.vcxproj | 138 +++++++++++++++++++++ Project/Project.vcxproj.filters | 27 ++++ Project/Project.vcxproj.user | 4 + Project/helpers.h | 0 Project/program.cpp | 75 +++++++++++ Project/x64/Debug/Project.exe | Bin 0 -> 73728 bytes Project/x64/Debug/Project.exe.recipe | 11 ++ Project/x64/Debug/Project.ilk | Bin 0 -> 769328 bytes Project/x64/Debug/Project.log | 2 + Project/x64/Debug/Project.pdb | Bin 0 -> 1241088 bytes Project/x64/Debug/Project.tlog/CL.command.1.tlog | Bin 0 -> 842 bytes Project/x64/Debug/Project.tlog/CL.read.1.tlog | Bin 0 -> 20016 bytes Project/x64/Debug/Project.tlog/CL.write.1.tlog | Bin 0 -> 704 bytes Project/x64/Debug/Project.tlog/Cl.items.tlog | 1 + .../x64/Debug/Project.tlog/Project.lastbuildstate | 2 + Project/x64/Debug/Project.tlog/link.command.1.tlog | Bin 0 -> 1496 bytes Project/x64/Debug/Project.tlog/link.read.1.tlog | Bin 0 -> 3732 bytes Project/x64/Debug/Project.tlog/link.write.1.tlog | Bin 0 -> 732 bytes .../x64/Debug/Project.vcxproj.FileListAbsolute.txt | 1 + Project/x64/Debug/program.obj | Bin 0 -> 100282 bytes Project/x64/Debug/vc143.idb | Bin 0 -> 158720 bytes Project/x64/Debug/vc143.pdb | Bin 0 -> 413696 bytes 29 files changed, 292 insertions(+) create mode 100644 Project/.vs/Project/FileContentIndex/1b847541-c5a8-42d7-933d-8fb99b96eaf0.vsidx create mode 100644 Project/.vs/Project/FileContentIndex/ad110d17-4ffe-4f08-9622-4f6557d585e0.vsidx create mode 100644 Project/.vs/Project/FileContentIndex/ba258936-5f2a-41a3-aaa8-0fcbaee82cdb.vsidx create mode 100644 Project/.vs/Project/v17/.suo create mode 100644 Project/.vs/Project/v17/Browse.VC.db create mode 100644 Project/.vs/Project/v17/ipch/AutoPCH/d0c22fe4d624cb6e/PROGRAM.ipch create mode 100644 Project/Project.sln create mode 100644 Project/Project.vcxproj create mode 100644 Project/Project.vcxproj.filters create mode 100644 Project/Project.vcxproj.user create mode 100644 Project/helpers.h create mode 100644 Project/program.cpp create mode 100644 Project/x64/Debug/Project.exe create mode 100644 Project/x64/Debug/Project.exe.recipe create mode 100644 Project/x64/Debug/Project.ilk create mode 100644 Project/x64/Debug/Project.log create mode 100644 Project/x64/Debug/Project.pdb create mode 100644 Project/x64/Debug/Project.tlog/CL.command.1.tlog create mode 100644 Project/x64/Debug/Project.tlog/CL.read.1.tlog create mode 100644 Project/x64/Debug/Project.tlog/CL.write.1.tlog create mode 100644 Project/x64/Debug/Project.tlog/Cl.items.tlog create mode 100644 Project/x64/Debug/Project.tlog/Project.lastbuildstate create mode 100644 Project/x64/Debug/Project.tlog/link.command.1.tlog create mode 100644 Project/x64/Debug/Project.tlog/link.read.1.tlog create mode 100644 Project/x64/Debug/Project.tlog/link.write.1.tlog create mode 100644 Project/x64/Debug/Project.vcxproj.FileListAbsolute.txt create mode 100644 Project/x64/Debug/program.obj create mode 100644 Project/x64/Debug/vc143.idb create mode 100644 Project/x64/Debug/vc143.pdb diff --git a/Project/.vs/Project/FileContentIndex/1b847541-c5a8-42d7-933d-8fb99b96eaf0.vsidx b/Project/.vs/Project/FileContentIndex/1b847541-c5a8-42d7-933d-8fb99b96eaf0.vsidx new file mode 100644 index 0000000..2b2c994 Binary files /dev/null and b/Project/.vs/Project/FileContentIndex/1b847541-c5a8-42d7-933d-8fb99b96eaf0.vsidx differ diff --git a/Project/.vs/Project/FileContentIndex/ad110d17-4ffe-4f08-9622-4f6557d585e0.vsidx b/Project/.vs/Project/FileContentIndex/ad110d17-4ffe-4f08-9622-4f6557d585e0.vsidx new file mode 100644 index 0000000..a24f712 Binary files /dev/null and b/Project/.vs/Project/FileContentIndex/ad110d17-4ffe-4f08-9622-4f6557d585e0.vsidx differ diff --git a/Project/.vs/Project/FileContentIndex/ba258936-5f2a-41a3-aaa8-0fcbaee82cdb.vsidx b/Project/.vs/Project/FileContentIndex/ba258936-5f2a-41a3-aaa8-0fcbaee82cdb.vsidx new file mode 100644 index 0000000..460805c Binary files /dev/null and b/Project/.vs/Project/FileContentIndex/ba258936-5f2a-41a3-aaa8-0fcbaee82cdb.vsidx differ diff --git a/Project/.vs/Project/v17/.suo b/Project/.vs/Project/v17/.suo new file mode 100644 index 0000000..4e3d7e8 Binary files /dev/null and b/Project/.vs/Project/v17/.suo differ diff --git a/Project/.vs/Project/v17/Browse.VC.db b/Project/.vs/Project/v17/Browse.VC.db new file mode 100644 index 0000000..a9f3c3f Binary files /dev/null and b/Project/.vs/Project/v17/Browse.VC.db differ diff --git a/Project/.vs/Project/v17/ipch/AutoPCH/d0c22fe4d624cb6e/PROGRAM.ipch b/Project/.vs/Project/v17/ipch/AutoPCH/d0c22fe4d624cb6e/PROGRAM.ipch new file mode 100644 index 0000000..cad9b89 Binary files /dev/null and b/Project/.vs/Project/v17/ipch/AutoPCH/d0c22fe4d624cb6e/PROGRAM.ipch differ 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 @@ + + + + + Debug + Win32 + + + Release + Win32 + + + Debug + x64 + + + Release + x64 + + + + 17.0 + Win32Proj + {4f0fee58-eb24-415c-beba-250b874284cd} + Project + 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/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 @@ + + + + + {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/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 @@ + + + + \ No newline at end of file diff --git a/Project/helpers.h b/Project/helpers.h new file mode 100644 index 0000000..e69de29 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 + +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 new file mode 100644 index 0000000..296291e Binary files /dev/null and b/Project/x64/Debug/Project.exe differ 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 @@ + + + + + C:\Users\Administrator\Desktop\repos\homework-2-austinlujan\Project\x64\Debug\Project.exe + + + + + + \ No newline at end of file diff --git a/Project/x64/Debug/Project.ilk b/Project/x64/Debug/Project.ilk new file mode 100644 index 0000000..0d3cbcc Binary files /dev/null and b/Project/x64/Debug/Project.ilk differ 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 new file mode 100644 index 0000000..0549c56 Binary files /dev/null and b/Project/x64/Debug/Project.pdb differ diff --git a/Project/x64/Debug/Project.tlog/CL.command.1.tlog b/Project/x64/Debug/Project.tlog/CL.command.1.tlog new file mode 100644 index 0000000..4105dc4 Binary files /dev/null and b/Project/x64/Debug/Project.tlog/CL.command.1.tlog differ diff --git a/Project/x64/Debug/Project.tlog/CL.read.1.tlog b/Project/x64/Debug/Project.tlog/CL.read.1.tlog new file mode 100644 index 0000000..ffa5e4b Binary files /dev/null and b/Project/x64/Debug/Project.tlog/CL.read.1.tlog differ diff --git a/Project/x64/Debug/Project.tlog/CL.write.1.tlog b/Project/x64/Debug/Project.tlog/CL.write.1.tlog new file mode 100644 index 0000000..8a6c557 Binary files /dev/null and b/Project/x64/Debug/Project.tlog/CL.write.1.tlog differ 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 new file mode 100644 index 0000000..7fd908f Binary files /dev/null and b/Project/x64/Debug/Project.tlog/link.command.1.tlog differ diff --git a/Project/x64/Debug/Project.tlog/link.read.1.tlog b/Project/x64/Debug/Project.tlog/link.read.1.tlog new file mode 100644 index 0000000..02d063d Binary files /dev/null and b/Project/x64/Debug/Project.tlog/link.read.1.tlog differ diff --git a/Project/x64/Debug/Project.tlog/link.write.1.tlog b/Project/x64/Debug/Project.tlog/link.write.1.tlog new file mode 100644 index 0000000..75fbaf5 Binary files /dev/null and b/Project/x64/Debug/Project.tlog/link.write.1.tlog differ 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 new file mode 100644 index 0000000..3222c64 Binary files /dev/null and b/Project/x64/Debug/program.obj differ diff --git a/Project/x64/Debug/vc143.idb b/Project/x64/Debug/vc143.idb new file mode 100644 index 0000000..6a83855 Binary files /dev/null and b/Project/x64/Debug/vc143.idb differ diff --git a/Project/x64/Debug/vc143.pdb b/Project/x64/Debug/vc143.pdb new file mode 100644 index 0000000..38502ba Binary files /dev/null and b/Project/x64/Debug/vc143.pdb differ -- cgit v1.2.3