diff options
Diffstat (limited to 'CST116-Ch10-Debugging/CST116-Ch10-Debugging-PsuedoCode.txt')
| -rw-r--r-- | CST116-Ch10-Debugging/CST116-Ch10-Debugging-PsuedoCode.txt | 42 |
1 files changed, 42 insertions, 0 deletions
diff --git a/CST116-Ch10-Debugging/CST116-Ch10-Debugging-PsuedoCode.txt b/CST116-Ch10-Debugging/CST116-Ch10-Debugging-PsuedoCode.txt new file mode 100644 index 0000000..7714581 --- /dev/null +++ b/CST116-Ch10-Debugging/CST116-Ch10-Debugging-PsuedoCode.txt @@ -0,0 +1,42 @@ +constant int SIZE = 5 + +instantiate 3 integer arrays with size of SIZE, their names will be varX, varY, varZ + + +GetAndDisplayWelcomeInfo() +{ +create a 2 dimensional array of characters with name 'name' +its size will be [2][20] + +set name[0] to user inputed first name +set name[1] to user inputed second name + +print welcome message, "Welcome name[0] + name[1]. Hope all is well" +} + +FunctionOne(int varX[], int varY[]) +{ +for(x=0, x<SIZE, x++) set varX[x] = x, set varY[x] = x + 100 +} + +FunctionTwo(int varX[], const int varY[], int varZ[]) +{ +for(x=0, x<SIZE, x++) set varZ[x] = varX[x] + varY[x] + + +set varX[1] to 99 +} + +set varZ[0] to -99 + +PrintFunction(const int varX[20], const int varY[20], const int varZ[20]) +{ +int x; +print "x y z" +for(x=0, x<SIZE, x++) print out varX[x] + varY[x] + varZ[x] + +} + +return 0; + + |