aboutsummaryrefslogtreecommitdiff
path: root/5c/pseudocode.txt
diff options
context:
space:
mode:
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