diff options
| author | Joe Traver <[email protected]> | 2022-10-26 20:56:29 -0700 |
|---|---|---|
| committer | Joe Traver <[email protected]> | 2022-10-26 20:56:29 -0700 |
| commit | bf5df704a062a3714d38589cc1d7a647cf8b2a14 (patch) | |
| tree | 73d552bfe262d89bb9da8c3ae374c97e0476b6b7 | |
| parent | Code output added (diff) | |
| download | cst116-ch10-debugging-joetraver30-main.tar.xz cst116-ch10-debugging-joetraver30-main.zip | |
| -rw-r--r-- | CST116-Ch10-Debugging/CST116 Ch10-Debugging-Pseudo_Code.txt | 46 | ||||
| -rw-r--r-- | CST116-Ch10-Debugging/CST116-Ch10-Debugging.sln | 3 | ||||
| -rw-r--r-- | CST116-Ch10-Debugging/CST116-Ch10-Debuggung-Code-Output.txt (renamed from CST116-Ch10-Debugging/Code Output.txt) | 0 |
3 files changed, 48 insertions, 1 deletions
diff --git a/CST116-Ch10-Debugging/CST116 Ch10-Debugging-Pseudo_Code.txt b/CST116-Ch10-Debugging/CST116 Ch10-Debugging-Pseudo_Code.txt new file mode 100644 index 0000000..b5b00c4 --- /dev/null +++ b/CST116-Ch10-Debugging/CST116 Ch10-Debugging-Pseudo_Code.txt @@ -0,0 +1,46 @@ +--Directive-- + + Get user name + display user name + display a frendly greeting + display an array heading + display an array that is predefined with: + values of x going up by 1 starting at 0 + values of y going up by 1 starting at 100 + values of z as the sum of x and y + +--Execution-- + + Define array size + + Program main sequence: + + greeting + x,y function + z function + print array function + + Section the program into functions: + + function for greeting- + ask for first name and sto in var + ask for last name and sto in var + print welcome first name var, last name var + hope all is well + + function for x and y- + loop + x up by incraments of 1 every cycle referencing the array + size to determine the amount of times the cycle is to repeat + y is x + 100 every cycle + + function for z- + loop + z increase by summing the current value of x and y every cycle referencing the array + size to determine the amount of times the cycle is to repeat + + print array function- + + establish the maximum size of the array as 20 + output x, y and z heading formatted with tabs + output x, y and z values formatted 3 spaces appart
\ No newline at end of file diff --git a/CST116-Ch10-Debugging/CST116-Ch10-Debugging.sln b/CST116-Ch10-Debugging/CST116-Ch10-Debugging.sln index 5ddee71..c46d5b3 100644 --- a/CST116-Ch10-Debugging/CST116-Ch10-Debugging.sln +++ b/CST116-Ch10-Debugging/CST116-Ch10-Debugging.sln @@ -7,7 +7,8 @@ Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "CST116-Ch10-Debugging", "CS EndProject
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Solution Items", "Solution Items", "{7131F0DD-0A37-4F9B-BE95-FAAE337D6DAB}"
ProjectSection(SolutionItems) = preProject
- Code Output.txt = Code Output.txt
+ CST116 Ch10-Debugging-Pseudo_Code.txt = CST116 Ch10-Debugging-Pseudo_Code.txt
+ CST116-Ch10-Debuggung-Code-Output.txt = CST116-Ch10-Debuggung-Code-Output.txt
EndProjectSection
EndProject
Global
diff --git a/CST116-Ch10-Debugging/Code Output.txt b/CST116-Ch10-Debugging/CST116-Ch10-Debuggung-Code-Output.txt index 65a30a0..65a30a0 100644 --- a/CST116-Ch10-Debugging/Code Output.txt +++ b/CST116-Ch10-Debugging/CST116-Ch10-Debuggung-Code-Output.txt |