From d9a4a59591c5ea8cbe90409e6681c7bc95c041e3 Mon Sep 17 00:00:00 2001 From: prestonderek Date: Wed, 12 Oct 2022 17:34:47 -0700 Subject: Commit for Pseudocode and Output files --- .../CST116-Ch6-Debugging-Output-Preston.txt | 4 ++++ .../CST116-Ch6-Debugging-Pseudocode-Preston.txt | 15 +++++++++++++++ CST116-Ch6-Debugging/CST116-Ch6-Debugging.cpp | 4 ++-- CST116-Ch6-Debugging/CST116-Ch6-Debugging.vcxproj | 4 ++++ CST116-Ch6-Debugging/CST116-Ch6-Debugging.vcxproj.filters | 11 +++++++++++ 5 files changed, 36 insertions(+), 2 deletions(-) create mode 100644 CST116-Ch6-Debugging/CST116-Ch6-Debugging-Output-Preston.txt create mode 100644 CST116-Ch6-Debugging/CST116-Ch6-Debugging-Pseudocode-Preston.txt 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 @@ + + + + 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 @@ {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 + + {56be046b-c5f9-480e-841d-aabeaa569a78} + Source Files + + + Pseudo and Output Files + + + Pseudo and Output Files + + \ No newline at end of file -- cgit v1.2.3