diff options
Diffstat (limited to 'CASt116-Ch10-Crombie-pseudocode.txt')
| -rw-r--r-- | CASt116-Ch10-Crombie-pseudocode.txt | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/CASt116-Ch10-Crombie-pseudocode.txt b/CASt116-Ch10-Crombie-pseudocode.txt new file mode 100644 index 0000000..d1c79a4 --- /dev/null +++ b/CASt116-Ch10-Crombie-pseudocode.txt @@ -0,0 +1,33 @@ +Declare functions +Set constant SIZE equal to 10 +Run function main + Create array varX + Create array varY + Create array varZ + Run function GetAndDisplayWelcomeInfo + Create array name + Print "Please enter your first name: " + Input name[0] + Print "Please enter your last name: " + Input name[1] + Print "Welcome" name[0] " " name[1] "Hope all is well" + Run function FunctionOne + Set x equal to 0 + For x less than SIZE + set varX[x] equal to x + Increase x by 1 + Set x equal to 0 + For x less than SIZE + Set varY[x] equal to x plus 100 + Increase x by 1 + Run function FunctionTwo + Set varX[1] equal to 99 + Set x equal to 0 + For x less than SIZE + Set varZ[x] equal to varX[x] plus varY[x] + Set varZ[0] equat to -99 + Run function PrintFunction + Print " x y z" + Set x equal to 0 + For x less than SIZE + Print varX[x], varY[x], and varZ[x]
\ No newline at end of file |