aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--CST116-Ch6-Debugging/CST116-Ch6-Debugging-Output-Preston.txt4
-rw-r--r--CST116-Ch6-Debugging/CST116-Ch6-Debugging-Pseudocode-Preston.txt15
-rw-r--r--CST116-Ch6-Debugging/CST116-Ch6-Debugging.cpp4
-rw-r--r--CST116-Ch6-Debugging/CST116-Ch6-Debugging.vcxproj4
-rw-r--r--CST116-Ch6-Debugging/CST116-Ch6-Debugging.vcxproj.filters11
5 files changed, 36 insertions, 2 deletions
diff --git a/CST116-Ch6-Debugging/CST116-Ch6-Debugging-Output-Preston.txt b/CST116-Ch6-Debugging/CST116-Ch6-Debugging-Output-Preston.txt
new file mode 100644
index 0000000..1979ca4
--- /dev/null
+++ b/CST116-Ch6-Debugging/CST116-Ch6-Debugging-Output-Preston.txt
@@ -0,0 +1,4 @@
+Output for Ch6 Debugging
+
+Enter temperature in Fahrenheit: 212
+212 degrees F = 100 degrees C \ No newline at end of file
diff --git a/CST116-Ch6-Debugging/CST116-Ch6-Debugging-Pseudocode-Preston.txt b/CST116-Ch6-Debugging/CST116-Ch6-Debugging-Pseudocode-Preston.txt
new file mode 100644
index 0000000..b23ed57
--- /dev/null
+++ b/CST116-Ch6-Debugging/CST116-Ch6-Debugging-Pseudocode-Preston.txt
@@ -0,0 +1,15 @@
+Pseudocode for Ch.6 Debug
+
+start main
+
+variable fahrenheit = 0.0
+variable celcius = 0.0
+
+print 'Enter temperature in Fahrenheit
+input fahrenheit
+
+celcius = 5.0 divided by 9.0 times (fahrenheit minus 32)
+
+print fahrenheit + 'degrees F =' celcius 'degrees C'
+
+end main \ No newline at end of file
diff --git a/CST116-Ch6-Debugging/CST116-Ch6-Debugging.cpp b/CST116-Ch6-Debugging/CST116-Ch6-Debugging.cpp
index 049edcc..98fe015 100644
--- a/CST116-Ch6-Debugging/CST116-Ch6-Debugging.cpp
+++ b/CST116-Ch6-Debugging/CST116-Ch6-Debugging.cpp
@@ -48,8 +48,8 @@ using std::endl;
int main()
{
- float fahrenheit = 0;
- float celcius = 0;
+ float fahrenheit = 0.0;
+ float celcius = 0.0;
cout << "Enter temperature in Fahrenheit: ";
cin >> fahrenheit;
diff --git a/CST116-Ch6-Debugging/CST116-Ch6-Debugging.vcxproj b/CST116-Ch6-Debugging/CST116-Ch6-Debugging.vcxproj
index 778451a..ce69856 100644
--- a/CST116-Ch6-Debugging/CST116-Ch6-Debugging.vcxproj
+++ b/CST116-Ch6-Debugging/CST116-Ch6-Debugging.vcxproj
@@ -129,6 +129,10 @@
<ItemGroup>
<ClCompile Include="CST116-Ch6-Debugging.cpp" />
</ItemGroup>
+ <ItemGroup>
+ <Text Include="CST116-Ch6-Debugging-Pseudocode-Preston.txt" />
+ <Text Include="CST116-Ch6-Debugging-Output-Preston.txt" />
+ </ItemGroup>
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
<ImportGroup Label="ExtensionTargets">
</ImportGroup>
diff --git a/CST116-Ch6-Debugging/CST116-Ch6-Debugging.vcxproj.filters b/CST116-Ch6-Debugging/CST116-Ch6-Debugging.vcxproj.filters
index 187ab51..134a81f 100644
--- a/CST116-Ch6-Debugging/CST116-Ch6-Debugging.vcxproj.filters
+++ b/CST116-Ch6-Debugging/CST116-Ch6-Debugging.vcxproj.filters
@@ -13,10 +13,21 @@
<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>
+ <Filter Include="Pseudo and Output Files">
+ <UniqueIdentifier>{56be046b-c5f9-480e-841d-aabeaa569a78}</UniqueIdentifier>
+ </Filter>
</ItemGroup>
<ItemGroup>
<ClCompile Include="CST116-Ch6-Debugging.cpp">
<Filter>Source Files</Filter>
</ClCompile>
</ItemGroup>
+ <ItemGroup>
+ <Text Include="CST116-Ch6-Debugging-Pseudocode-Preston.txt">
+ <Filter>Pseudo and Output Files</Filter>
+ </Text>
+ <Text Include="CST116-Ch6-Debugging-Output-Preston.txt">
+ <Filter>Pseudo and Output Files</Filter>
+ </Text>
+ </ItemGroup>
</Project> \ No newline at end of file