diff options
| author | abd00l4h <[email protected]> | 2022-10-26 21:52:10 -0700 |
|---|---|---|
| committer | GitHub <[email protected]> | 2022-10-26 21:52:10 -0700 |
| commit | 84a6445c012beaf4ddf75f5f8df4542b1144343b (patch) | |
| tree | 490d16707c62a8a2f12def855c21791da25f9d35 /CST116-Ch10-Debugging | |
| parent | Finished Debugging Exercise 3 (diff) | |
| download | cst116-ch10-debugging-abd00l4h-main.tar.xz cst116-ch10-debugging-abd00l4h-main.zip | |
Diffstat (limited to 'CST116-Ch10-Debugging')
| -rw-r--r-- | CST116-Ch10-Debugging/CST116-CH10-Output-Havaldar.txt | 20 | ||||
| -rw-r--r-- | CST116-Ch10-Debugging/CST116-Ch10-PsuedoCode-Havaldar.txt | 31 |
2 files changed, 51 insertions, 0 deletions
diff --git a/CST116-Ch10-Debugging/CST116-CH10-Output-Havaldar.txt b/CST116-Ch10-Debugging/CST116-CH10-Output-Havaldar.txt new file mode 100644 index 0000000..482b3e3 --- /dev/null +++ b/CST116-Ch10-Debugging/CST116-CH10-Output-Havaldar.txt @@ -0,0 +1,20 @@ +Please enter your first name: Abdullah
+
+Please enter your last name: Havaldar
+
+
+ Welcome Abdullah Havaldar!
+ Hope all is well
+
+ x y z
+
+ 0 100 -99
+ 1 101 99
+ 2 102 104
+ 3 103 106
+ 4 104 108
+ 5 105 110
+ 6 106 112
+ 7 107 114
+ -858993460 108 -858993352
+ -858993460 109 -858993351
diff --git a/CST116-Ch10-Debugging/CST116-Ch10-PsuedoCode-Havaldar.txt b/CST116-Ch10-Debugging/CST116-Ch10-PsuedoCode-Havaldar.txt new file mode 100644 index 0000000..421b367 --- /dev/null +++ b/CST116-Ch10-Debugging/CST116-Ch10-PsuedoCode-Havaldar.txt @@ -0,0 +1,31 @@ +Start Program
+
+Initialize functions
+Set constant integer variable
+
+Initialize 3 arrays of the constant variable size (varX, varY, varZ)
+
+Run function GetAndDisplayWelcomeInfo
+ Intialize array
+ Ask user for first name
+ store user input in first row of array
+ Ask user for last name
+ store user input in second row of array
+ Tell user welcome
+
+Run function FunctionOne
+ for int x = 0, while it is less than 8, set index x of array varX = x and add 1 to x every loop
+
+ for int x = 0, while x is less than constant integer, set index x of array verY = x + 100 and add 1 to x every loop
+
+Run function FunctionTwo
+ for int x = 0, while it is less than constant integer, set index x of array varZ equal to index x of varX plus index x of varY and add one to x every loop
+ set second element in array varZ equal to 99
+
+Set first element in array varZ equal to -99
+
+Run function PrintFunction
+ Print x y and z
+ align the elements of varX with x, varY with y, and varZ with z
+
+End Program
\ No newline at end of file |