-
Notifications
You must be signed in to change notification settings - Fork 0
/
18.11.2022(1).fprg
60 lines (60 loc) · 3.35 KB
/
18.11.2022(1).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
60
<?xml version="1.0"?>
<flowgorithm fileversion="3.0">
<attributes>
<attribute name="name" value=""/>
<attribute name="authors" value="CB.EN.U4CYS22036"/>
<attribute name="about" value=""/>
<attribute name="saved" value="2022-11-18 09:54:48 AM"/>
<attribute name="created" value="Q0IuRU4uVTRDWVMyMjAzNjsyMDIyMjNNQVlDMDA3MzsyMDIyLTExLTE4OzA5OjA2OjMzIEFNOzMwNjc="/>
<attribute name="edited" value="Q0IuRU4uVTRDWVMyMjAzNjsyMDIyMjNNQVlDMDA3MzsyMDIyLTExLTE4OzA5OjU0OjQ4IEFNOzI7MzE4NQ=="/>
</attributes>
<function name="Main" type="None" variable="">
<parameters/>
<body>
<comment text="entering the name of person "/>
<declare name="name" type="String" array="False" size=""/>
<output expression=""Enter the name"" newline="True"/>
<input variable="name"/>
<comment text="entering the account number to withdraw cash"/>
<declare name="accountnumber" type="Integer" array="False" size=""/>
<output expression=""Enter account number"" newline="True"/>
<input variable="accountnumber"/>
<declare name="pin" type="Integer" array="False" size=""/>
<output expression=""enter the pin"" newline="True"/>
<input variable="pin"/>
<comment text="entering the right pin to withdraw cash"/>
<if expression="pin=3333">
<then>
<comment text="to show the balance in your account"/>
<declare name="balance" type="Integer" array="False" size=""/>
<output expression=""enter the balance"" newline="True"/>
<input variable="balance"/>
<comment text="enter the right balance of your bank to withdraw"/>
<if expression="balance>499">
<then>
<comment text="entering the amount to withdraw"/>
<declare name="withdrawal" type="Integer" array="False" size=""/>
<output expression=""enter the amount to withdraw"" newline="True"/>
<input variable="withdrawal"/>
<comment text="enter the right balance and amount to withdraw to collect cash"/>
<if expression="withdrawal<balance">
<then>
<output expression=""please collect your cash and thank you visit again"" newline="True"/>
</then>
<else>
<output expression=""your balance is not sufficient to withdraw"" newline="True"/>
</else>
</if>
</then>
<else>
<output expression=""sorry your balance is too low to withdraw"" newline="True"/>
</else>
</if>
</then>
<else>
<output expression=""your pin is wrong, please enter the correct pin"" newline="True"/>
</else>
</if>
</body>
</function>
</flowgorithm>