From 115b3cd2640c61b20bd6c2e010ea1ad34ab95aba Mon Sep 17 00:00:00 2001 From: JonCr Date: Sat, 22 Oct 2022 17:23:19 -0700 Subject: Finished --- CST116-Ch9-Crombie-pseudocode.txt | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 CST116-Ch9-Crombie-pseudocode.txt (limited to 'CST116-Ch9-Crombie-pseudocode.txt') diff --git a/CST116-Ch9-Crombie-pseudocode.txt b/CST116-Ch9-Crombie-pseudocode.txt new file mode 100644 index 0000000..12721a7 --- /dev/null +++ b/CST116-Ch9-Crombie-pseudocode.txt @@ -0,0 +1,16 @@ +Set DAYS_PER_YEAR equal to 365 +Declare functions +Start main function +Set age equal to 0 +Set days equal to 0 +Run GetAge function + Print "Please enter your age: " + Input age +Set age equal to input value +Run CalcDays function + Give age the alias "years" + Set days equal to years multiplied by DAYS_PER_YEAR +Set days equal to result +Run PrintResults + Print age and "! Boy are you old!" + Print "Did you know that you are at least " days " days old?" \ No newline at end of file -- cgit v1.2.3