aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTim Pearse <[email protected]>2022-10-05 16:24:47 -0700
committerTim Pearse <[email protected]>2022-10-05 16:24:47 -0700
commitde4eefff782272db97ce7c0b6450ca9480413326 (patch)
tree9099dbdfa51a754e76651a7785cf783c88087897
parentChange 2: Finished Exercise 3 and added the results of running it in a txt file. (diff)
downloadcst116-lab0-debugging-legokid1503-de4eefff782272db97ce7c0b6450ca9480413326.tar.xz
cst116-lab0-debugging-legokid1503-de4eefff782272db97ce7c0b6450ca9480413326.zip
Change 3: Added pseudocode to the project. Will now need to work on the other project.HEADmain
-rw-r--r--Ch 5 Debugging Project/cst116-lab0-Pearse.txt21
1 files changed, 20 insertions, 1 deletions
diff --git a/Ch 5 Debugging Project/cst116-lab0-Pearse.txt b/Ch 5 Debugging Project/cst116-lab0-Pearse.txt
index daae384..0c5fc78 100644
--- a/Ch 5 Debugging Project/cst116-lab0-Pearse.txt
+++ b/Ch 5 Debugging Project/cst116-lab0-Pearse.txt
@@ -4,4 +4,23 @@ After your raise you have $22
C:\Users\legok\source\repos\cst116-lab0-debugging-legokid1503\Ch 5 Debugging Project\x64\Debug\Ch 5 Debugging Project.exe (process 19064) 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
+Press any key to close this window . . .
+
+PSEUDOCODE
+
+main(){
+ float money
+ float raise
+
+ print("you have $" + money)
+
+ print(enter PRECENT raise)
+
+ input(float raise)
+
+ //We're treating the input like a percent. For example, if 1 is the input, that would be 1% or 0.01
+ money = money * 1 + raise * 0.01
+
+ print("After your raise, you have $")
+ print(money)
+} \ No newline at end of file