From a5a77e888ad9f848e1b5e7c64cf275d626c444f0 Mon Sep 17 00:00:00 2001 From: alexandra-apetroaei Date: Wed, 26 Oct 2022 18:42:35 -0800 Subject: Added psuedo-code --- CST116-Ch10-Debugging/CST116-Ch10-Debugging-Apetroaei.cpp | 2 +- CST116-Ch10-Debugging/psuedocode ch10- apetroaei.txt | 11 +++++++++++ 2 files changed, 12 insertions(+), 1 deletion(-) create mode 100644 CST116-Ch10-Debugging/psuedocode ch10- apetroaei.txt diff --git a/CST116-Ch10-Debugging/CST116-Ch10-Debugging-Apetroaei.cpp b/CST116-Ch10-Debugging/CST116-Ch10-Debugging-Apetroaei.cpp index d60b4a2..64aa238 100644 --- a/CST116-Ch10-Debugging/CST116-Ch10-Debugging-Apetroaei.cpp +++ b/CST116-Ch10-Debugging/CST116-Ch10-Debugging-Apetroaei.cpp @@ -84,7 +84,7 @@ void FunctionTwo(const int varX[], const int varY[], const int varZ[]); void PrintFunction(const int varX[], const int varY[], const int varZ[]); -const int SIZE = 5; // Notice how we used the const here! +const int SIZE = 10; // Notice how we used the const here! int main() { diff --git a/CST116-Ch10-Debugging/psuedocode ch10- apetroaei.txt b/CST116-Ch10-Debugging/psuedocode ch10- apetroaei.txt new file mode 100644 index 0000000..2d1b02d --- /dev/null +++ b/CST116-Ch10-Debugging/psuedocode ch10- apetroaei.txt @@ -0,0 +1,11 @@ +Read in variable X, Y, Z. +Assign integer size to 5 which will be changed to 10 later. + +Set variable name. +Prompt user to enter first and last name. + +Set variable X to range from 0-9 +Set variable Y to range from 100-109. +Set variable Z to range from 100-116 going up by two each time. + +Display variables X, Y, Z to user as a chart including a welcome message. -- cgit v1.2.3