blob: 247d265cb88ee20becd20740e0f1d7cdc30a080f (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
1. Declare constant variable [SIZE] = 10
2. Declare array [varX], [varY], [varZ] = 10
3. Create function "GetAndDisplayWelcomeInfo":
1. Print "Please enter your first name"
2. Input [name[0]]
3. Print "Please enter your last name"
4. Input [name[1]]
5. Print "Welcome [name[0]] [name[1]]!"
6. Print "Hope all is well"
4. Create function "FunctionOne":
1. delcare variable [x] = 0
2. If x < [SIZE]
1. Add one to [x]
2. Add [x] to [varX[x]]
3. Add [x] + 100 to [varY[x]]
5. Create function "FunctionTwo":
1. delcare variable [x] = 0
2. If x < [SIZE]
1. [varZ[x]] = [varX[x]] + [varY[x]]
7. Print the results of "GetAndDisplayWelcomeInfo"
8. Print the first 20 values of arrays [varX], [varY], and [varZ] in table format
|