aboutsummaryrefslogtreecommitdiff
path: root/5c/pseudocode.txt
diff options
context:
space:
mode:
authorJacobAKnox <[email protected]>2021-10-13 20:38:38 -0700
committerJacobAKnox <[email protected]>2021-10-13 20:38:38 -0700
commit315c79b6b0da960d8f31f5b8f09ebd545c6fa4dd (patch)
tree8962e212c5a2aec0406500a1a53223e2bf03e20f /5c/pseudocode.txt
parent4b complete (diff)
downloadarchived-cst116-lab3-jacobaknox-315c79b6b0da960d8f31f5b8f09ebd545c6fa4dd.tar.xz
archived-cst116-lab3-jacobaknox-315c79b6b0da960d8f31f5b8f09ebd545c6fa4dd.zip
5c complete
Diffstat (limited to '5c/pseudocode.txt')
-rw-r--r--5c/pseudocode.txt20
1 files changed, 20 insertions, 0 deletions
diff --git a/5c/pseudocode.txt b/5c/pseudocode.txt
new file mode 100644
index 0000000..cb43d40
--- /dev/null
+++ b/5c/pseudocode.txt
@@ -0,0 +1,20 @@
+get intrest_rate
+get ammount
+
+if ammount > 1000 or < 100
+ error
+if intrest_rate < 1% or > 18%
+ error
+
+int fee
+
+if ammount <= 500
+ fee = 20
+else
+ fee = 25
+
+intrest = (intest_rate/100) * ammount
+
+output ammount
+output intrest_rate
+output intrest + fee \ No newline at end of file