diff options
| author | Wyatt <[email protected]> | 2022-10-26 15:59:11 -0700 |
|---|---|---|
| committer | Wyatt <[email protected]> | 2022-10-26 15:59:11 -0700 |
| commit | 2780847b1b1bc388881a2f14be3f538327072e98 (patch) | |
| tree | 74fbace01304064528253775be2c79808017e964 /CST116-Ch10-Debugging/CST116-Ch10-Debugging-PsuedoCode.txt | |
| parent | Setting up GitHub Classroom Feedback (diff) | |
| download | cst116-ch10-debugging-johnson-main.tar.xz cst116-ch10-debugging-johnson-main.zip | |
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; + + |