-
Notifications
You must be signed in to change notification settings - Fork 0
/
Withdrawal_amount.fprg
58 lines (58 loc) · 3.17 KB
/
Withdrawal_amount.fprg
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
<?xml version="1.0"?>
<flowgorithm fileversion="3.0">
<attributes>
<attribute name="name" value=""/>
<attribute name="authors" value="CB.EN.U4CYS22027"/>
<attribute name="about" value=""/>
<attribute name="saved" value="2022-11-18 09:37:24 AM"/>
<attribute name="created" value="Q0IuRU4uVTRDWVMyMjAyNzsyMDIyMjNNQVlDMDA2NDsyMDIyLTExLTE4OzA4OjU4OjMyIEFNOzMwNzI="/>
<attribute name="edited" value="Q0IuRU4uVTRDWVMyMjAyNzsyMDIyMjNNQVlDMDA2NDsyMDIyLTExLTE4OzA5OjM3OjI0IEFNOzE7MzE3OQ=="/>
</attributes>
<function name="Main" type="None" variable="">
<parameters/>
<body>
<declare name="NAME" type="String" array="False" size=""/>
<declare name="accno, balance, money, pin, avlbalance" type="Real" array="False" size=""/>
<output expression=""enter account number"" newline="True"/>
<input variable="accno"/>
<if expression="accno==1234">
<then>
<assign variable="balance" expression="1000"/>
<output expression=""welcome, please provide your pin"" newline="True"/>
<input variable="pin"/>
<if expression="pin==1001">
<then>
<output expression=""please enter the amount you want to withdraw"" newline="True"/>
<input variable="money"/>
<if expression="money<=balance">
<then>
<output expression=""please collect the cash"" newline="True"/>
<assign variable="avlbalance" expression="balance-money"/>
<output expression=""available balance is" &avlbalance" newline="True"/>
<if expression="avlbalance<100">
<then>
<output expression=""please add money to maintain minimum balance"" newline="True"/>
<output expression=""THANKYOU"" newline="True"/>
</then>
<else>
<output expression=""THANKYOU"" newline="True"/>
</else>
</if>
</then>
<else>
<output expression=""insufficient balance"" newline="True"/>
</else>
</if>
</then>
<else>
<output expression=""Invalid pin"" newline="True"/>
</else>
</if>
</then>
<else>
<output expression=""invalid acc no"" newline="True"/>
</else>
</if>
</body>
</function>
</flowgorithm>