aboutsummaryrefslogtreecommitdiff
path: root/CST116-Ch10-Debugging/CST116-Ch10-Debugging-Flowchart-Aaron_Hill.txt
diff options
context:
space:
mode:
authortafaar <[email protected]>2022-10-25 13:12:53 -0700
committertafaar <[email protected]>2022-10-25 13:12:53 -0700
commit4bcabc0112d152719c3c367a911d20230db1dbb5 (patch)
tree1a5107004166ab370b9e162d2e3280eb38336ff6 /CST116-Ch10-Debugging/CST116-Ch10-Debugging-Flowchart-Aaron_Hill.txt
parentdone (diff)
downloadcst116-ch10-debugging-hill-main.tar.xz
cst116-ch10-debugging-hill-main.zip
added flowchartHEADmain
finished
Diffstat (limited to 'CST116-Ch10-Debugging/CST116-Ch10-Debugging-Flowchart-Aaron_Hill.txt')
-rw-r--r--CST116-Ch10-Debugging/CST116-Ch10-Debugging-Flowchart-Aaron_Hill.txt64
1 files changed, 64 insertions, 0 deletions
diff --git a/CST116-Ch10-Debugging/CST116-Ch10-Debugging-Flowchart-Aaron_Hill.txt b/CST116-Ch10-Debugging/CST116-Ch10-Debugging-Flowchart-Aaron_Hill.txt
new file mode 100644
index 0000000..7c607d3
--- /dev/null
+++ b/CST116-Ch10-Debugging/CST116-Ch10-Debugging-Flowchart-Aaron_Hill.txt
@@ -0,0 +1,64 @@
+Please enter your first name: Aaron
+
+Please enter your last name: Hill
+
+
+ Welcome Aaron Hill!
+ Hope all is well
+
+ x y z
+
+ 0 100 -99
+ 99 101 102
+ 2 102 104
+ 3 103 106
+ 4 104 108
+ 5 105 110
+ 6 106 112
+ 7 107 114
+ 8 108 116
+ 9 109 118
+
+
+// Pseudocode //
+
+SET CONSTANT int size TO 10;
+
+int MAIN(){
+
+ CREATE ARRAY int varX TO SIZE size;
+ CREATE ARRAY int varY TO SIZE size;
+ CREATE ARRAY int varZ TO SIZE size;
+
+ TAKE FIRST NAME AND LAST NAME;
+
+ print("Welcome " + firstname + " " + lastname + "!\n" + "Hope all is well" + );
+
+ void FunctionOne(int varX[], int varY[]){
+ FOR(DECLARE int x = 0, REPEAT WHILE x < size, x++)
+ varX[x] = x;
+ varY[x] = x + 100;
+ }
+
+ void FunctionTwo(int varX[], const int varY[], const int varZ[]){
+
+ FOR(DECLARE int x = 0, REPEAT WHILE x < size, x++){
+ varZ[x] = varX[x] + varY[x];
+ }
+ SET varX[1] TO 99;
+ }
+
+ SET varZ[0] TO -99;
+
+ void PrintFunction(const int varX[20], const int varY[20], const int varZ[20]){
+
+ DECLARE int x;
+
+ PRINT( table headings );
+ FOR(SET x TO 0, REPEAT WHILE x < size, x++ ){
+ PRINT( formatted contents of varX, varY, and varZ);
+ }
+ }
+
+ ENDPROGRAM;
+} \ No newline at end of file