-
Notifications
You must be signed in to change notification settings - Fork 0
/
atm cash withdrawl.fprg
59 lines (59 loc) · 3.19 KB
/
atm cash withdrawl.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
59
<?xml version="1.0"?>
<flowgorithm fileversion="3.0">
<attributes>
<attribute name="name" value=""/>
<attribute name="authors" value="CB.EN.U4CYS22019"/>
<attribute name="about" value=""/>
<attribute name="saved" value="2022-11-18 11:20:22 AM"/>
<attribute name="created" value="Q0IuRU4uVTRDWVMyMjAxOTsyMDIyMjNNQVlDMDA1NjsyMDIyLTExLTE4OzA5OjAyOjExIEFNOzMwNjE="/>
<attribute name="edited" value="Q0IuRU4uVTRDWVMyMjAxOTsyMDIyMjNNQVlDMDA1NjsyMDIyLTExLTE4OzExOjIwOjIyIEFNOzY7MzE2OQ=="/>
</attributes>
<function name="Main" type="None" variable="">
<parameters/>
<body>
<comment text="Program which defines "how to withdraw cash from an ATM machine""/>
<declare name="Name" type="String" array="False" size=""/>
<output expression=""Name is"" newline="True"/>
<input variable="Name"/>
<declare name="Accountnumber" type="Integer" array="False" size=""/>
<output expression=""Accountnumber is"" newline="True"/>
<input variable="Accountnumber"/>
<declare name="amount" type="Integer" array="False" size=""/>
<comment text="amount = cash to be withdrawn"/>
<declare name="pin" type="Integer" array="False" size=""/>
<declare name="Balance" type="Integer" array="False" size=""/>
<output expression=""Please enter the balance"" newline="True"/>
<input variable="Balance"/>
<comment text="Minimum Balance=₹500"/>
<if expression="Balance>500">
<then>
<output expression=""amount to be withdrawn is"" newline="True"/>
<input variable="amount"/>
<if expression="amount<=balance">
<then>
<output expression=""pin is"" newline="True"/>
<input variable="pin"/>
<if expression="pin=3793">
<then>
<output expression=""please collect your cash"" newline="True"/>
<output expression=""thank you"" newline="True"/>
</then>
<else>
<output expression=""incorrect pin"" newline="True"/>
<output expression=""transaction cancelled"" newline="True"/>
</else>
</if>
</then>
<else>
<output expression=""withdrawl not possible due to insufficient balance"" newline="True"/>
</else>
</if>
<comment text="Transaction completed"/>
</then>
<else>
<output expression=""cash cannot be withdrawn due to insufficient minimum balance"" newline="True"/>
</else>
</if>
</body>
</function>
</flowgorithm>