summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTrevor Bouchillon <[email protected]>2022-11-06 16:20:10 -0800
committerTrevor Bouchillon <[email protected]>2022-11-06 16:20:10 -0800
commit03d013a05680713be4dae86c5ce66bd600b3b920 (patch)
treed8fcabba0503ab192750b52bfb8fa5af4b04402f
parentSetting up GitHub Classroom Feedback (diff)
downloadarchived-cst116-lab2-daboochillin-03d013a05680713be4dae86c5ce66bd600b3b920.tar.xz
archived-cst116-lab2-daboochillin-03d013a05680713be4dae86c5ce66bd600b3b920.zip
Intial Commits
-rw-r--r--BlankConsoleLab/BlankConsoleLab.cpp14
-rw-r--r--BlankConsoleLab/BlankConsoleLab.vcxproj8
2 files changed, 17 insertions, 5 deletions
diff --git a/BlankConsoleLab/BlankConsoleLab.cpp b/BlankConsoleLab/BlankConsoleLab.cpp
index ed5f807..54bd036 100644
--- a/BlankConsoleLab/BlankConsoleLab.cpp
+++ b/BlankConsoleLab/BlankConsoleLab.cpp
@@ -9,8 +9,20 @@ using std::cout;
using std::cin;
using std::endl;
+int UserInputTemp;
+
+int CelciusToFarenheit(int Celcius2Farenheit) {
+ Celcius2Farenheit = (UserInputTemp * (9 / 5)) + 32;
+ return UserInputTemp;
+}
+
int main()
{
- cout << "Hello World!\n";
+
+ cout << "Please enter a temperature in Celcius: ";
+ cin >> UserInputTemp;
+ cout << CelciusToFarenheit(UserInputTemp);
+
+
}
diff --git a/BlankConsoleLab/BlankConsoleLab.vcxproj b/BlankConsoleLab/BlankConsoleLab.vcxproj
index db2e734..d2e3ee2 100644
--- a/BlankConsoleLab/BlankConsoleLab.vcxproj
+++ b/BlankConsoleLab/BlankConsoleLab.vcxproj
@@ -29,26 +29,26 @@
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'" Label="Configuration">
<ConfigurationType>Application</ConfigurationType>
<UseDebugLibraries>true</UseDebugLibraries>
- <PlatformToolset>v142</PlatformToolset>
+ <PlatformToolset>v143</PlatformToolset>
<CharacterSet>Unicode</CharacterSet>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'" Label="Configuration">
<ConfigurationType>Application</ConfigurationType>
<UseDebugLibraries>false</UseDebugLibraries>
- <PlatformToolset>v142</PlatformToolset>
+ <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>v142</PlatformToolset>
+ <PlatformToolset>v143</PlatformToolset>
<CharacterSet>Unicode</CharacterSet>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'" Label="Configuration">
<ConfigurationType>Application</ConfigurationType>
<UseDebugLibraries>false</UseDebugLibraries>
- <PlatformToolset>v142</PlatformToolset>
+ <PlatformToolset>v143</PlatformToolset>
<WholeProgramOptimization>true</WholeProgramOptimization>
<CharacterSet>Unicode</CharacterSet>
</PropertyGroup>