From 12024f70066009960ec10e0c3ac0c1a27252834f Mon Sep 17 00:00:00 2001 From: JonCr Date: Fri, 28 Oct 2022 02:12:56 -0700 Subject: Finished --- CASt116-Ch10-Crombie-pseudocode.txt | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 CASt116-Ch10-Crombie-pseudocode.txt (limited to 'CASt116-Ch10-Crombie-pseudocode.txt') 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 -- cgit v1.2.3