aboutsummaryrefslogtreecommitdiff
path: root/CST116-Ch6-Debugging/CST116-Ch6-Debugging.cpp
diff options
context:
space:
mode:
authorTrevor Bouchillon <[email protected]>2022-10-02 13:49:52 -0700
committerTrevor Bouchillon <[email protected]>2022-10-02 13:49:52 -0700
commit2413ee7c467ae17c782f3a3a5ea11f890942cb53 (patch)
tree7237a524a464eb880268e76579b976918c7ced4f /CST116-Ch6-Debugging/CST116-Ch6-Debugging.cpp
parentDebugging Exercise 2- Done (diff)
downloadcst116-ch6-debugging-trevor-bouchillon-2413ee7c467ae17c782f3a3a5ea11f890942cb53.tar.xz
cst116-ch6-debugging-trevor-bouchillon-2413ee7c467ae17c782f3a3a5ea11f890942cb53.zip
Debug Done
Diffstat (limited to 'CST116-Ch6-Debugging/CST116-Ch6-Debugging.cpp')
-rw-r--r--CST116-Ch6-Debugging/CST116-Ch6-Debugging.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/CST116-Ch6-Debugging/CST116-Ch6-Debugging.cpp b/CST116-Ch6-Debugging/CST116-Ch6-Debugging.cpp
index 497e2f8..d946bf5 100644
--- a/CST116-Ch6-Debugging/CST116-Ch6-Debugging.cpp
+++ b/CST116-Ch6-Debugging/CST116-Ch6-Debugging.cpp
@@ -1,6 +1,9 @@
/********************************************************************
* File: CST116-Ch6-Debugging.cpp
*
+* Trevor Bouchillon
+* Chap 6 Debugging
+*
* General Instructions: Complete each step before proceeding to the
* next.
*
@@ -51,8 +54,7 @@ int main()
// Breakpoint 1
// Put a breakpoint on the following line
- celcius = 5 / 9 * fahrenheit - 32;
-
+ celcius = (float(5) / float(9)) * (fahrenheit - 32);
cout << fahrenheit << " degrees F = "
<< celcius << " degrees C" << endl;