aboutsummaryrefslogtreecommitdiff
path: root/CST116-Ch10-Debugging
diff options
context:
space:
mode:
authorTaylor Rogers <[email protected]>2022-10-26 09:22:28 -0700
committerTaylor Rogers <[email protected]>2022-10-26 09:22:28 -0700
commit3cc58919868796c70d83f1048d39dc5cd0fa75da (patch)
tree09aafa7a052d2e078ce2c6acc2111aa57a4a6f54 /CST116-Ch10-Debugging
parentAdded output file (diff)
downloadcst116-ch10-debugging-taylorrog-3cc58919868796c70d83f1048d39dc5cd0fa75da.tar.xz
cst116-ch10-debugging-taylorrog-3cc58919868796c70d83f1048d39dc5cd0fa75da.zip
Created pseudo code
Diffstat (limited to 'CST116-Ch10-Debugging')
-rw-r--r--CST116-Ch10-Debugging/CST116-Ch10-Debugging-Rogers-Output.txt (renamed from CST116-Ch10-Debugging/CST116-Ch10-Debugging-Output_Rogers.txt)0
-rw-r--r--CST116-Ch10-Debugging/CST116-Ch10-Debugging.vcxproj4
-rw-r--r--CST116-Ch10-Debugging/CST116-Ch10-Debugging.vcxproj.filters8
-rw-r--r--CST116-Ch10-Debugging/CST116-Ch10-Rogers-Pseudo-code.txt21
4 files changed, 33 insertions, 0 deletions
diff --git a/CST116-Ch10-Debugging/CST116-Ch10-Debugging-Output_Rogers.txt b/CST116-Ch10-Debugging/CST116-Ch10-Debugging-Rogers-Output.txt
index e8fdc15..e8fdc15 100644
--- a/CST116-Ch10-Debugging/CST116-Ch10-Debugging-Output_Rogers.txt
+++ b/CST116-Ch10-Debugging/CST116-Ch10-Debugging-Rogers-Output.txt
diff --git a/CST116-Ch10-Debugging/CST116-Ch10-Debugging.vcxproj b/CST116-Ch10-Debugging/CST116-Ch10-Debugging.vcxproj
index 35e9b1e..301c075 100644
--- a/CST116-Ch10-Debugging/CST116-Ch10-Debugging.vcxproj
+++ b/CST116-Ch10-Debugging/CST116-Ch10-Debugging.vcxproj
@@ -129,6 +129,10 @@
<ItemGroup>
<ClCompile Include="CST116-Ch10-Debugging.cpp" />
</ItemGroup>
+ <ItemGroup>
+ <Text Include="CST116-Ch10-Debugging-Rogers-Output.txt" />
+ <Text Include="CST116-Ch10-Rogers-Pseudo-code.txt" />
+ </ItemGroup>
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
<ImportGroup Label="ExtensionTargets">
</ImportGroup>
diff --git a/CST116-Ch10-Debugging/CST116-Ch10-Debugging.vcxproj.filters b/CST116-Ch10-Debugging/CST116-Ch10-Debugging.vcxproj.filters
index dc0ce4a..7ce0da3 100644
--- a/CST116-Ch10-Debugging/CST116-Ch10-Debugging.vcxproj.filters
+++ b/CST116-Ch10-Debugging/CST116-Ch10-Debugging.vcxproj.filters
@@ -19,4 +19,12 @@
<Filter>Source Files</Filter>
</ClCompile>
</ItemGroup>
+ <ItemGroup>
+ <Text Include="CST116-Ch10-Debugging-Rogers-Output.txt">
+ <Filter>Source Files</Filter>
+ </Text>
+ <Text Include="CST116-Ch10-Rogers-Pseudo-code.txt">
+ <Filter>Source Files</Filter>
+ </Text>
+ </ItemGroup>
</Project> \ No newline at end of file
diff --git a/CST116-Ch10-Debugging/CST116-Ch10-Rogers-Pseudo-code.txt b/CST116-Ch10-Debugging/CST116-Ch10-Rogers-Pseudo-code.txt
new file mode 100644
index 0000000..247d265
--- /dev/null
+++ b/CST116-Ch10-Debugging/CST116-Ch10-Rogers-Pseudo-code.txt
@@ -0,0 +1,21 @@
+1. Declare constant variable [SIZE] = 10
+2. Declare array [varX], [varY], [varZ] = 10
+3. Create function "GetAndDisplayWelcomeInfo":
+ 1. Print "Please enter your first name"
+ 2. Input [name[0]]
+ 3. Print "Please enter your last name"
+ 4. Input [name[1]]
+ 5. Print "Welcome [name[0]] [name[1]]!"
+ 6. Print "Hope all is well"
+4. Create function "FunctionOne":
+ 1. delcare variable [x] = 0
+ 2. If x < [SIZE]
+ 1. Add one to [x]
+ 2. Add [x] to [varX[x]]
+ 3. Add [x] + 100 to [varY[x]]
+5. Create function "FunctionTwo":
+ 1. delcare variable [x] = 0
+ 2. If x < [SIZE]
+ 1. [varZ[x]] = [varX[x]] + [varY[x]]
+7. Print the results of "GetAndDisplayWelcomeInfo"
+8. Print the first 20 values of arrays [varX], [varY], and [varZ] in table format \ No newline at end of file