aboutsummaryrefslogtreecommitdiff
path: root/5c/pseudocode.txt
blob: cb43d40a400982266d8d1669649a296f4b947506 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
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