Wa0000.945
Wa0000.945
Wa0000.945
(COMPUTER SCIENCE)
BANKING MANAGEMENT SYSTEM
HARDWARE:
Processor: Pentium 4 or Later
Memory: 128 MB RAM
Hard disk: 40 GB
SOFTWARE:
Operating System: Windows XP
Web Browser: Internet Explorer 6 or Firefox 2
ADVANTAGES
f = open('filename',"r")
row_data = f.read()
row_data = row_data.split('\n')
row_data = list(filter(None, row_data))
class bank:
acc_no = 0
name = ' '
deposite = 0
acc_type = ' '
def int(Self):
Self
def file_write(Self,list_data):
f = open('filename',"w")
all_data = str()
for data in list_data:
all_data+=data+'\n'
f.write(all_data)
f.close()
return True
def account_create(Self):
acc_no = int(input("Enter Account number:"))
name = input("Enter Account holder name:")
deposite = int(input("Enter amount to deposite:"))
acc_type = input("Enter type of account s/c:")
data = str(acc_no)+','+name+','+str(deposite)
+','+acc_type+','+'\n '
f = open('filename',"a")
f.write(data)
f.close()
print("Account created successfully")
def account_list(Self):
for data in row_data:
split_data = data.split(',')
print("Account no:", split_data[0])
print("Account holder name:", split_data[1])
print("Current balance:", split_data[2])
print("Account type is:", split_data[3])
print('*' *40)
print("""
-----------Wlcm To Bank Management System------------
1. = Create Account
2. = List of Account holders
3. = Modify Account
4. = Deposite Amount
5. = Withdraw
6. = Delete Account
7.= Exit """)
my_bank = bank()
try:
user_input = int(input("Enter above option for any
operation from(1-7):"))
except ValueError:
print("\n That's not true")
else:
print("\n")
if user_input==1:
my_bank.account_create()
elif user_input==2:
my_bank.account_list()
elif user_input==3:
num=input("Enter Account number for modification:")
if my_bank.Search_account_no(num):
my_bank.account_modify(num)
else:
print("Incorrect account_no??")
elif user_input==4:
num1=input("Enter Account number to deposite
amount:")
if my_bank.Search_account_no(num1):
my_bank.deposite(num1)
else:
print("Incorrect account_no??")
elif user_input==5:
num2=input("Enter Account number to withdraw
amount:")
if my_bank.Search_account_no(num2):
my_bank.withdraw(num2)
else:
print("Incorrect account_no??")
elif user_input==6:
num3=input("Enter Account number for delete:")
f=open(filename, "r")
row=f.read()
if num3 not in row:
print("Incorrect Account number??")
else:
my_bank.account_delete(num3)
f.close()
elif user_input==7:
print("Thanks for using our Bank Management System")
quit()
else:
print("Invalid input??")
my_bank=bank()
BIBLIOGRAPHY
1) www.slideshare.com
2) www.quora.com
3) UNDER THE GUIDANCE OF OUR SUBJECT TEACHER.
----THANK YOU----
----THE END----