aboutsummaryrefslogtreecommitdiff
path: root/CST116-Ch6-Debugging/CST116-Ch6-Debugging.cpp
diff options
context:
space:
mode:
authorJoseph Williams <[email protected]>2022-09-29 16:33:11 -0700
committerJoseph Williams <[email protected]>2022-09-29 16:33:11 -0700
commitabcdbee97218e6309213a623653a54ed10945072 (patch)
tree8ea758076e4b76606d878814c857ae608f1beddc /CST116-Ch6-Debugging/CST116-Ch6-Debugging.cpp
parentSetting up GitHub Classroom Feedback (diff)
downloadcst116-ch6-debugging-allthenamesaretaken3141-main.tar.xz
cst116-ch6-debugging-allthenamesaretaken3141-main.zip
Finished.HEADmain
Diffstat (limited to 'CST116-Ch6-Debugging/CST116-Ch6-Debugging.cpp')
-rw-r--r--CST116-Ch6-Debugging/CST116-Ch6-Debugging.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/CST116-Ch6-Debugging/CST116-Ch6-Debugging.cpp b/CST116-Ch6-Debugging/CST116-Ch6-Debugging.cpp
index 497e2f8..560539a 100644
--- a/CST116-Ch6-Debugging/CST116-Ch6-Debugging.cpp
+++ b/CST116-Ch6-Debugging/CST116-Ch6-Debugging.cpp
@@ -1,3 +1,6 @@
+// Name: Joe Williams
+// Course: CST116
+
/********************************************************************
* File: CST116-Ch6-Debugging.cpp
*
@@ -51,7 +54,7 @@ int main()
// Breakpoint 1
// Put a breakpoint on the following line
- celcius = 5 / 9 * fahrenheit - 32;
+ celcius = static_cast<float>(5) / 9 * (fahrenheit - 32);
cout << fahrenheit << " degrees F = "
<< celcius << " degrees C" << endl;