diff options
Diffstat (limited to 'CST116-Ch10-Debugging')
3 files changed, 72 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 diff --git a/CST116-Ch10-Debugging/CST116-Ch10-Debugging.vcxproj b/CST116-Ch10-Debugging/CST116-Ch10-Debugging.vcxproj index 35e9b1e..1c192bb 100644 --- a/CST116-Ch10-Debugging/CST116-Ch10-Debugging.vcxproj +++ b/CST116-Ch10-Debugging/CST116-Ch10-Debugging.vcxproj @@ -129,6 +129,9 @@ <ItemGroup>
<ClCompile Include="CST116-Ch10-Debugging.cpp" />
</ItemGroup>
+ <ItemGroup>
+ <Text Include="CST116-Ch10-Debugging-Flowchart-Aaron_Hill.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..1a3a757 100644 --- a/CST116-Ch10-Debugging/CST116-Ch10-Debugging.vcxproj.filters +++ b/CST116-Ch10-Debugging/CST116-Ch10-Debugging.vcxproj.filters @@ -19,4 +19,9 @@ <Filter>Source Files</Filter>
</ClCompile>
</ItemGroup>
+ <ItemGroup>
+ <Text Include="CST116-Ch10-Debugging-Flowchart-Aaron_Hill.txt">
+ <Filter>Source Files</Filter>
+ </Text>
+ </ItemGroup>
</Project>
\ No newline at end of file |