From 808cb7938115f0d572f03a1047692878ecc9bd2a Mon Sep 17 00:00:00 2001 From: Musa Ahmed Date: Wed, 19 Oct 2022 17:10:23 -0700 Subject: Finished (I think) --- .../cst116-ch9-Debugging-Ahmed-Pseudocode.txt | 19 +++++++++++++++++++ .../cst116-ch9-Debugging-Ahmed.txt | 19 ------------------- .../cst116-ch9-Debugging-output.txt | 7 ------- CST116-Ch9-Debugging-Ahmed/cst116-ch9-Debugging.txt | 7 +++++++ 4 files changed, 26 insertions(+), 26 deletions(-) create mode 100644 CST116-Ch9-Debugging-Ahmed/cst116-ch9-Debugging-Ahmed-Pseudocode.txt delete mode 100644 CST116-Ch9-Debugging-Ahmed/cst116-ch9-Debugging-Ahmed.txt delete mode 100644 CST116-Ch9-Debugging-Ahmed/cst116-ch9-Debugging-output.txt create mode 100644 CST116-Ch9-Debugging-Ahmed/cst116-ch9-Debugging.txt diff --git a/CST116-Ch9-Debugging-Ahmed/cst116-ch9-Debugging-Ahmed-Pseudocode.txt b/CST116-Ch9-Debugging-Ahmed/cst116-ch9-Debugging-Ahmed-Pseudocode.txt new file mode 100644 index 0000000..1d80833 --- /dev/null +++ b/CST116-Ch9-Debugging-Ahmed/cst116-ch9-Debugging-Ahmed-Pseudocode.txt @@ -0,0 +1,19 @@ +Start Program + +Initialize a constant integer "DAYS_PER_YEAR" to 365 +Initialize a function GetAge() +Initialize a function CalcDays() which passes the age +Initialize a function PrintResults() which passes age and days, both are ints +Initialize the iintegers age and days + +Run the fucntion GetAge() + Prompt the user for their age + Store it into the variable age +Run the function CalcDays(age) + Perform the multiplication of DAYS_PER_YEAR and age + Return the integer days +Store the output from the previous function to the int days +Run th efunction PrintResults(age,days) + print the users age, and tell them how many days old they are + +End Program \ No newline at end of file diff --git a/CST116-Ch9-Debugging-Ahmed/cst116-ch9-Debugging-Ahmed.txt b/CST116-Ch9-Debugging-Ahmed/cst116-ch9-Debugging-Ahmed.txt deleted file mode 100644 index 1d80833..0000000 --- a/CST116-Ch9-Debugging-Ahmed/cst116-ch9-Debugging-Ahmed.txt +++ /dev/null @@ -1,19 +0,0 @@ -Start Program - -Initialize a constant integer "DAYS_PER_YEAR" to 365 -Initialize a function GetAge() -Initialize a function CalcDays() which passes the age -Initialize a function PrintResults() which passes age and days, both are ints -Initialize the iintegers age and days - -Run the fucntion GetAge() - Prompt the user for their age - Store it into the variable age -Run the function CalcDays(age) - Perform the multiplication of DAYS_PER_YEAR and age - Return the integer days -Store the output from the previous function to the int days -Run th efunction PrintResults(age,days) - print the users age, and tell them how many days old they are - -End Program \ No newline at end of file diff --git a/CST116-Ch9-Debugging-Ahmed/cst116-ch9-Debugging-output.txt b/CST116-Ch9-Debugging-Ahmed/cst116-ch9-Debugging-output.txt deleted file mode 100644 index 2693ff4..0000000 --- a/CST116-Ch9-Debugging-Ahmed/cst116-ch9-Debugging-output.txt +++ /dev/null @@ -1,7 +0,0 @@ -Please enter your age: 18 -18! Boy are you old! -Did you know that you are at least 6570 days old? - - -C:\Users\macho\Source\Repos\cst116-ch9-debugging-M005A\CST116-Ch9-Debugging-Ahmed\x64\Debug\CST116-Ch9-Debugging-Ahmed.exe (process 31784) exited with code 0. -Press any key to close this window . . . \ No newline at end of file diff --git a/CST116-Ch9-Debugging-Ahmed/cst116-ch9-Debugging.txt b/CST116-Ch9-Debugging-Ahmed/cst116-ch9-Debugging.txt new file mode 100644 index 0000000..2693ff4 --- /dev/null +++ b/CST116-Ch9-Debugging-Ahmed/cst116-ch9-Debugging.txt @@ -0,0 +1,7 @@ +Please enter your age: 18 +18! Boy are you old! +Did you know that you are at least 6570 days old? + + +C:\Users\macho\Source\Repos\cst116-ch9-debugging-M005A\CST116-Ch9-Debugging-Ahmed\x64\Debug\CST116-Ch9-Debugging-Ahmed.exe (process 31784) exited with code 0. +Press any key to close this window . . . \ No newline at end of file -- cgit v1.2.3