blob: 2d21571f23d71e74b9e76d27efbc490eac5defbe (
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
|
create function GetAndDisplayWelcomeInfo
create function Function1 and intialize integer arrays varX and varY
create function Function2 and intialize integer arrays varX, varY, and varZ
create function PrintFunction and intialize integer arrays varX, varY, and varZ
create constant integer SIZE and set it equal to 8
Within main create int arrays varX, varY, and varZ and set their size to SIZE.
Move to function GetAndDisplayWelcomeInfo
create char array name
display "Please enter your first name: "
input into name row 0
display "Please enter your last name: "
input into name row 1
display "Welcome ", name row0, " ", name row1, "!", "Hope all is well".
move back to main
move to function one
fill varX with x as it increments within a loop 8 times.
fill varY with x + 100 as it increments
move back to main
move to function two
set varX row1 equal to 99
fill varZ with varX + VarY
move back to main
set varZ row0 equal to -99
move to PrintFunction
display arrays varX, varY, and varZ
|