From 3cc58919868796c70d83f1048d39dc5cd0fa75da Mon Sep 17 00:00:00 2001 From: Taylor Rogers Date: Wed, 26 Oct 2022 09:22:28 -0700 Subject: Created pseudo code --- .../CST116-Ch10-Debugging-Output_Rogers.txt | 24 ---------------------- .../CST116-Ch10-Debugging-Rogers-Output.txt | 24 ++++++++++++++++++++++ .../CST116-Ch10-Debugging.vcxproj | 4 ++++ .../CST116-Ch10-Debugging.vcxproj.filters | 8 ++++++++ .../CST116-Ch10-Rogers-Pseudo-code.txt | 21 +++++++++++++++++++ 5 files changed, 57 insertions(+), 24 deletions(-) delete mode 100644 CST116-Ch10-Debugging/CST116-Ch10-Debugging-Output_Rogers.txt create mode 100644 CST116-Ch10-Debugging/CST116-Ch10-Debugging-Rogers-Output.txt create mode 100644 CST116-Ch10-Debugging/CST116-Ch10-Rogers-Pseudo-code.txt (limited to 'CST116-Ch10-Debugging') diff --git a/CST116-Ch10-Debugging/CST116-Ch10-Debugging-Output_Rogers.txt b/CST116-Ch10-Debugging/CST116-Ch10-Debugging-Output_Rogers.txt deleted file mode 100644 index e8fdc15..0000000 --- a/CST116-Ch10-Debugging/CST116-Ch10-Debugging-Output_Rogers.txt +++ /dev/null @@ -1,24 +0,0 @@ -Please enter your first name: Taylor - -Please enter your last name: Rogers - - - Welcome Taylor Rogers! - 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 - -C:\Users\taylo\OneDrive\OIT\2022_Fall\CST116\VS_Files\Repos\CST116\cst116-ch10-debugging-Taylorrog\CST116-Ch10-Debugging\x64\Debug\CST116-Ch10-Debugging.exe (process 25508) exited with code 0. -To automatically close the console when debugging stops, enable Tools->Options->Debugging->Automatically close the console when debugging stops. -Press any key to close this window . . . \ No newline at end of file diff --git a/CST116-Ch10-Debugging/CST116-Ch10-Debugging-Rogers-Output.txt b/CST116-Ch10-Debugging/CST116-Ch10-Debugging-Rogers-Output.txt new file mode 100644 index 0000000..e8fdc15 --- /dev/null +++ b/CST116-Ch10-Debugging/CST116-Ch10-Debugging-Rogers-Output.txt @@ -0,0 +1,24 @@ +Please enter your first name: Taylor + +Please enter your last name: Rogers + + + Welcome Taylor Rogers! + 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 + +C:\Users\taylo\OneDrive\OIT\2022_Fall\CST116\VS_Files\Repos\CST116\cst116-ch10-debugging-Taylorrog\CST116-Ch10-Debugging\x64\Debug\CST116-Ch10-Debugging.exe (process 25508) exited with code 0. +To automatically close the console when debugging stops, enable Tools->Options->Debugging->Automatically close the console when debugging stops. +Press any key to close this window . . . \ 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..301c075 100644 --- a/CST116-Ch10-Debugging/CST116-Ch10-Debugging.vcxproj +++ b/CST116-Ch10-Debugging/CST116-Ch10-Debugging.vcxproj @@ -129,6 +129,10 @@ + + + + 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 @@ Source Files + + + Source Files + + + Source Files + + \ 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 -- cgit v1.2.3