aboutsummaryrefslogtreecommitdiff
path: root/CST116-Ch6-Debugging/CST116-Ch6-Debugging.cpp
diff options
context:
space:
mode:
authorCEOofOogaBooga <[email protected]>2022-10-01 12:36:08 -0700
committerCEOofOogaBooga <[email protected]>2022-10-01 12:36:08 -0700
commit244e507b1248271ec7c37803a253614ffaeeebd4 (patch)
tree74c40230cec87d1b322eae622702cf8f13406a55 /CST116-Ch6-Debugging/CST116-Ch6-Debugging.cpp
parentSetting up GitHub Classroom Feedback (diff)
downloadcst116-ch6-debugging--trinh--main.tar.xz
cst116-ch6-debugging--trinh--main.zip
CST116 Chp6 finishedHEADmain
Diffstat (limited to 'CST116-Ch6-Debugging/CST116-Ch6-Debugging.cpp')
-rw-r--r--CST116-Ch6-Debugging/CST116-Ch6-Debugging.cpp8
1 files changed, 6 insertions, 2 deletions
diff --git a/CST116-Ch6-Debugging/CST116-Ch6-Debugging.cpp b/CST116-Ch6-Debugging/CST116-Ch6-Debugging.cpp
index 497e2f8..7734dc5 100644
--- a/CST116-Ch6-Debugging/CST116-Ch6-Debugging.cpp
+++ b/CST116-Ch6-Debugging/CST116-Ch6-Debugging.cpp
@@ -1,6 +1,10 @@
/********************************************************************
* File: CST116-Ch6-Debugging.cpp
-*
+* Thomas Trinh
+* CST 116
+* Chp 6
+* Literals, Variable and Constants & I/O Streams
+*
* General Instructions: Complete each step before proceeding to the
* next.
*
@@ -51,7 +55,7 @@ int main()
// Breakpoint 1
// Put a breakpoint on the following line
- celcius = 5 / 9 * fahrenheit - 32;
+ celcius = 5.0 / 9.0 * (fahrenheit - 32);
cout << fahrenheit << " degrees F = "
<< celcius << " degrees C" << endl;