aboutsummaryrefslogtreecommitdiff
path: root/CST116-Ch9-Debugging
diff options
context:
space:
mode:
authorTheOtherTonyStark <[email protected]>2022-10-16 14:43:17 -0700
committerTheOtherTonyStark <[email protected]>2022-10-16 14:43:17 -0700
commit15357aa787b55279a9b98c702d57156802b7f973 (patch)
tree7938345f229d65ed2e6528001340ac0c4de154e3 /CST116-Ch9-Debugging
parentFourth Commit (diff)
downloadcst116-ch9-debugging-theothertonystark-main.tar.xz
cst116-ch9-debugging-theothertonystark-main.zip
Fifth CommitHEADmain
Diffstat (limited to 'CST116-Ch9-Debugging')
-rw-r--r--CST116-Ch9-Debugging/CST116-Ch9-Debugging-Chambers.cpp2
-rw-r--r--CST116-Ch9-Debugging/CST116-Ch9-Debugging-Pseudocode.txt11
2 files changed, 12 insertions, 1 deletions
diff --git a/CST116-Ch9-Debugging/CST116-Ch9-Debugging-Chambers.cpp b/CST116-Ch9-Debugging/CST116-Ch9-Debugging-Chambers.cpp
index ddabfe4..7ba503c 100644
--- a/CST116-Ch9-Debugging/CST116-Ch9-Debugging-Chambers.cpp
+++ b/CST116-Ch9-Debugging/CST116-Ch9-Debugging-Chambers.cpp
@@ -87,7 +87,7 @@ int main()
// Breakpoint 2
// Put breakpoint on the following line
- PrintResults(age, days);
+ PrintResults(age, days);
return age;
}
diff --git a/CST116-Ch9-Debugging/CST116-Ch9-Debugging-Pseudocode.txt b/CST116-Ch9-Debugging/CST116-Ch9-Debugging-Pseudocode.txt
index e69de29..a22c030 100644
--- a/CST116-Ch9-Debugging/CST116-Ch9-Debugging-Pseudocode.txt
+++ b/CST116-Ch9-Debugging/CST116-Ch9-Debugging-Pseudocode.txt
@@ -0,0 +1,11 @@
+Set constant int for DAYS_PER_YEAR
+ 365 days per year
+Set int for the rest of your variables
+ GetAge(),CalcDays(int age), age, days
+Set void for Printresults
+Create Main function
+ Set GetAge() for your main, as well as connections to later functions
+Create functions for other variables
+ Need one for GetAge(), and CalcDays(int age)
+Print result
+ Include statements "Boy are you old", as well giving an count of the age given in days instead. \ No newline at end of file