aboutsummaryrefslogtreecommitdiff
path: root/CST116-Debug10-Pseudocode-Davis.rtf
diff options
context:
space:
mode:
authorlevidavis04 <[email protected]>2022-10-26 19:52:38 -0700
committerGitHub <[email protected]>2022-10-26 19:52:38 -0700
commit51c53b67c6acd08773cbc872cf452eb844f4fdc0 (patch)
treeaed87cf4713115027aa25d826b980fff52c26928 /CST116-Debug10-Pseudocode-Davis.rtf
parentAdd files via upload (diff)
downloadcst116-ch10-debugging-levidavis04-main.tar.xz
cst116-ch10-debugging-levidavis04-main.zip
Add files via uploadHEADmain
Diffstat (limited to 'CST116-Debug10-Pseudocode-Davis.rtf')
-rw-r--r--CST116-Debug10-Pseudocode-Davis.rtf61
1 files changed, 61 insertions, 0 deletions
diff --git a/CST116-Debug10-Pseudocode-Davis.rtf b/CST116-Debug10-Pseudocode-Davis.rtf
new file mode 100644
index 0000000..8f1518c
--- /dev/null
+++ b/CST116-Debug10-Pseudocode-Davis.rtf
@@ -0,0 +1,61 @@
+{\rtf1\ansi\ansicpg1252\cocoartf2639
+\cocoatextscaling0\cocoaplatform0{\fonttbl\f0\fswiss\fcharset0 Helvetica;}
+{\colortbl;\red255\green255\blue255;}
+{\*\expandedcolortbl;;}
+\margl1440\margr1440\vieww11520\viewh8400\viewkind0
+\pard\tx720\tx1440\tx2160\tx2880\tx3600\tx4320\tx5040\tx5760\tx6480\tx7200\tx7920\tx8640\pardirnatural\partightenfactor0
+
+\f0\fs24 \cf0 Pseudo-code:\
+\
+Declare std statements\
+\
+Set const int SIZE = 10;\
+\
+Int main\
+\{\
+Set varX to SIZE\
+Set varY to SIZE\
+Set varZ to 99\
+\
+Go to GetAndDisplayWelcomeInfo\
+Go to FunctionOne (using varX, varY)\
+Go to FunctionTwo (using varX, varY, varZ)\
+Go to PrintFunction (using varX, varY, varZ)\
+\
+Return nothing\
+\}\
+\
+Void GetAndDisplayWelcomeInfo\
+\{\
+Set Char name[2][20]\
+Print \'93Please enter your first name: \'93\
+Set user input name[0]\
+\
+Print \'93Please enter your last name: \'93\
+Set user input name[1]\
+\
+Print \'93Welcome \'93<<name[0] <<\'93 \'93<<name[1] << \'93! Hope all is well\'94\
+\}\
+Void FunctionOne(using varX, varY)\
+\{\
+For (int x =o; x<SIZE; + x)\
+ varX[x] = x\
+For (int x = 0; + x)\
+ varY[x] = x + 100\
+\}\
+Void FunctionTwo (using varX, varY, varZ)\
+\{\
+For (x = 0; x < SIZE; + x)\
+ varZ[x] = varX[x] +varY[x]\
+\}\
+Void PrintFunction (using varX, varY, varZ)\
+\{\
+Int x\
+Print \'93x y z\'94\
+\
+For (x = 0; x < SIZE; + x)\
+Print with 3 width <<varX[x]\
+ 3 width <<varY[x]\
+ 3 width <<varZ[x]\
+End line\
+\}} \ No newline at end of file