aboutsummaryrefslogtreecommitdiff
path: root/CST116-Ch9-Debugging
diff options
context:
space:
mode:
authorabd00l4h <[email protected]>2022-10-19 16:49:02 -0700
committerGitHub <[email protected]>2022-10-19 16:49:02 -0700
commite6df1ddbce38502669e1e69c34579a397696b0dd (patch)
tree0311e3248294359928f05229c482d7a142142d2d /CST116-Ch9-Debugging
parentdebugging exercise 1 fix (diff)
downloadcst116-ch9-debugging-abd00l4h-e6df1ddbce38502669e1e69c34579a397696b0dd.tar.xz
cst116-ch9-debugging-abd00l4h-e6df1ddbce38502669e1e69c34579a397696b0dd.zip
Update CST116-Ch9-PsuedoCode-Havaldar.txtHEADmain
Diffstat (limited to 'CST116-Ch9-Debugging')
-rw-r--r--CST116-Ch9-Debugging/CST116-Ch9-PsuedoCode-Havaldar.txt4
1 files changed, 2 insertions, 2 deletions
diff --git a/CST116-Ch9-Debugging/CST116-Ch9-PsuedoCode-Havaldar.txt b/CST116-Ch9-Debugging/CST116-Ch9-PsuedoCode-Havaldar.txt
index 658687b..4784e03 100644
--- a/CST116-Ch9-Debugging/CST116-Ch9-PsuedoCode-Havaldar.txt
+++ b/CST116-Ch9-Debugging/CST116-Ch9-PsuedoCode-Havaldar.txt
@@ -4,9 +4,9 @@ Initialize constant integer DAYS_PER_YEAR = 365
Initialize function GetAge()
Initialize function CalcDays(int age)
Initialize function PrintResults(int age, int days)
+
Initialize integer age = 0
Initialize integer days = 0
-
run function GetAge()
Ask user for their age and store value as age
return age
@@ -17,4 +17,4 @@ set output of CalcDays = days
run function PrintResults(days, age)
Output user's age with sentence that tells them how many days they are old at least
-End Program \ No newline at end of file
+End Program