aboutsummaryrefslogtreecommitdiff
path: root/CST116-Ch10-Debugging/CST116-Ch10-Debugging-PsuedoCode.txt
blob: 7714581ae9cea266ce84343971e72526c2ed5072 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
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;