aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTim Pearse <[email protected]>2022-10-08 13:18:03 -0700
committerTim Pearse <[email protected]>2022-10-08 13:18:03 -0700
commitcd4ebddc84aa8fb208ed599d00d614e137e5aa1c (patch)
tree71a5fdffc9b97af543e6b29df6ed7d437f798038
parentChange 1.5 : Getting the actual code in now. (diff)
downloadcst116-ch5-debugging-legokid1503-main.tar.xz
cst116-ch5-debugging-legokid1503-main.zip
Change 2: Exercise 3 complete, as well as pseudocode.HEADmain
-rw-r--r--cst116-Ch.5-Pearse-Pseudocode.txt13
-rw-r--r--cst116-Ch.5-Pearse.txt0
2 files changed, 13 insertions, 0 deletions
diff --git a/cst116-Ch.5-Pearse-Pseudocode.txt b/cst116-Ch.5-Pearse-Pseudocode.txt
new file mode 100644
index 0000000..1898a3d
--- /dev/null
+++ b/cst116-Ch.5-Pearse-Pseudocode.txt
@@ -0,0 +1,13 @@
+main(){
+ float money
+ float raise
+
+ print("You have $" + money)
+
+ print("enter PERCENT raise.")
+ input(raise)
+
+ money = money * (raise * .01 + 1)
+
+ print("You will have $" + money)
+} \ No newline at end of file
diff --git a/cst116-Ch.5-Pearse.txt b/cst116-Ch.5-Pearse.txt
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/cst116-Ch.5-Pearse.txt