diff options
| author | abd00l4h <[email protected]> | 2022-10-19 16:49:02 -0700 |
|---|---|---|
| committer | GitHub <[email protected]> | 2022-10-19 16:49:02 -0700 |
| commit | e6df1ddbce38502669e1e69c34579a397696b0dd (patch) | |
| tree | 0311e3248294359928f05229c482d7a142142d2d | |
| parent | debugging exercise 1 fix (diff) | |
| download | cst116-ch9-debugging-abd00l4h-main.tar.xz cst116-ch9-debugging-abd00l4h-main.zip | |
| -rw-r--r-- | CST116-Ch9-Debugging/CST116-Ch9-PsuedoCode-Havaldar.txt | 4 |
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
|