-
Notifications
You must be signed in to change notification settings - Fork 0
/
MobileBanking.py
118 lines (100 loc) · 4.56 KB
/
MobileBanking.py
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
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
import random
import time
import datetime
i,j=0,2
Pin=1331
ballance=50000
a = random.randint(1366, 30978)
b = random.randint(13432, 65789)
while i<j:
user=int(input("Enter Your 4 Digit Pin : "))
i+=1
if user==Pin:
print("\n\t\t\t\t\t\t\t@#@# Welcome To Mobile Banking @#@# \n\n\t\t\t\t\t 1: Ballance Inquirey "
" \t2: Withrawl Money \n\n\t\t\t\t\t 3: Send Money \t4: Pay Bills \n\n\t\t\t\t\t 5: Change Pin \n")
user1=int(input("\n\t\t\t\t\t What You Want to Do ? "))
if user1==1:
print('\t\t\t\t\tYour Available Ballance is : ' ,ballance ,'R')
print('\n')
print("By Using the Ac No#**", a)
break
elif user1==2:
print("You are welcome! \n Select your account type ! \n 1 : Current Account \n 2 : Savings Account ")
user3=int(input("Select Account Type : "))
if user3==1:
print('Welcome to Current Account')
elif user3==2:
print('Welcome ! To Savings Account')
else:
print('we have only two types of accounts \n \n Please ! Select Your Account Type Again : ')
user4=int(input("Enter Your Amount : "))
print("PLEASE WAIT...")
time.sleep(2)
if user4<500:
print("Minimum Withrawal is 500 ! Try Again ")
break
elif user4>50000:
print('maximum withdrawl is 50000 ! Try Again')
break
else:
print('R' , user4," Has Been Successfully Withdrawl")
print('\n')
print('Your Remaining Ballance is : ', ballance - user4)
print("By Using the Ac No#**", a)
print("Your Transaction id is #**", b)
break
elif user1==3:
print("@@@@@@@ Available Banks are : @@@@@@@ : \n 1 : Standard Bank \n 2 : Absa Bank \n 3 : MCB \n 4 : Capitec Bank ")
user7=int(input('Enter Account No.'))
user5=int(input("Select Bank "))
if user5==1 or 2 or 3 or 4 :
user6=int(input("Enter Amount: "))
print('\n')
print("PLEASE WAIT...")
time.sleep(2)
print(user6 , "R has been Successfully Sent To Ac. No# " , user7)
print("Your Transaction id is #**", b)
print('\n')
print('Your Remaining Ballance is : ',ballance-user6)
print("By Using the Ac No#**", a)
break
elif user1==4:
print("1:Electric Bill \t 2:Gas Bill \n 3:Ptcl Bill \t 4:Internet Bill \n 5:Water Bill \t 6:Utility Bill")
user8=int(input('Select Your Bill Type : '))
if user8==1 or 2 or 3 or 4 or 5 or 6 :
user9=int(input("Enter Reffernce No. : "))
print("PLEASE WAIT...")
time.sleep(2)
print(user9 ,"Bill has been payed Successfully")
print('Your Remaining Ballance is : ', ballance - user9)
print("By Using the Ac No#**", a)
print("Your Transaction id is #**", b)
break
else:
print("@@@@@@@@@@@@@@@@@@@@@@@ ALERT ! @@@@@@@@@@@@@@@@@@@@@@ ")
print("You are Going To Change Your Pin , \n You would not be able to change it further for next 90 days . \n 1 : Do you Agree ? \n 2 : Not Agree")
user10=int(input("Select Terms & Conditions 1st : " ))
if user10==1:
chng=int(input("Enter Your Old Pin : "))
if chng==Pin:
new=int(input("Enter Your New Password: "))
print("PLEASE WAIT...")
time.sleep(2)
print("Congratulations ! Your Pin has been Changed ")
break
else:
print("Incorrect Old Pin, You Can't Change Your Pin ")
break
else:
print("You Must Have to Agree to our Terms and Conditions ! ")
break
else:
print("Incorrect Pin \n ")
print('\n')
print('\n')
print("\t\t\tDate is : ", datetime.date.today())
waqt=datetime.datetime.now()
print("\t\t\tTime is : ",waqt.hour,":",waqt.minute,":",waqt.second)
print(" ")
print("\t\t\t\t\t@#@#@#@# Thank you for using Our Online Services @#@#@#@#")
print("\t\t\t\t\t@#@#@#@# Developed by : liyabona saki @#@#@#@#")