Chemstry PROJECT
Chemstry PROJECT
Chemstry PROJECT
S. No Topic
01 Abstract
02 System requirements
03 Feasibility study
04 Errors and its types
05 Testing
06 Maintenance
07 Flow chart of program
08 User defined Functions
09 Code
10 Output
11 Conclusion
12 Bibliography
Abstract
• The ‘Bank management system’ mainly
aims to develop software for the bank
management system. This project has
been developed to carry out the banking
process easily and quickly. This project
helps to overcome the limitations of
manual banking system.
1. NEW ACCOUNT
2. DEPOSIT AMOUNT
3. WITHDRAW AMOUNT
4. BALANCE ENQUIRY
5. ALL ACCOUNT HOLDER LIST
6. CLOSE AN ACCOUNT
7. MODIFY EXISTING
ACCOUNT
8. EXIT
System Requirements
● HARDWARE:
⮚ Processor
⮚ Keyboard
⮚ Minimum memory - 2GB
● SOFTWARE
Feasibility
Feasibility study is a system proposal
according to its work, ability, impact on
the operation ability to meet the needs of
users and efficient use of resources. An
important outcome of preliminary
investigations the determination of that
system requested feasible.
ECONOMICAL FEASIBILITY:
Economics analysis is the most frequent use method
for evaluating the effectiveness, the benefits and
savings that are expected from system and compare
them with cost. Users’ records can be maintained
at a cheaper cost and every bank would like to use
this software so that the bank records can be
managed easily.
TECHNICAL FEASIBILTY:
Technical feasibility centre on the existing computer
system and to what extent it can support the
proposed task. This involves financial consideration
to accommodate technical enhancements. It is
technically feasible because whatever technology is
needed to develop this software is easily available.
PROJECT DATABASE
ADMIN DASHBOARD
yes no
Exit admin
User Defined Functions:
1) display():
This function displays the recorded entries in
the bank system. It will display all the account
details of all the accounts available in the
system.
2) account status():
This function in the program will show the
current status of the account i.e.; the balance
and the status of the account number that is
been entered.
3) deposit amount():
This function will record the deposit made by
the account holder.
4) withdraw amount ():
This function in the program will record the
transaction of the account where the amount
has been withdrawn.
5) search menu ():
This function in the program will help the user
to search for the account.
6) daily report ():
This function will display the daily transaction
of the account.
7) Account details ():
This function will display the details of the
account which was being searched.
8) Add account ():
This function will add new account.
9) Addtran ():
This function will allow the user to record new
transaction.
10) Modify account ():
This function will enable the user to make
modification in any of the account.
11) Closea ccount ():
This function in the program will close the
entire program.
CODE
import pickle
import os
import pathlib
class Account:
accNo = 0
name = ''
deposit=0
type = ''
def createAccount(self):
self.deposit = int(input("Enter The Initial amount(>=500 for Saving and >=1000 for current"))
print("\n\n\nAccount Created")
def showAccount(self):
print("Type of Account",self.type)
print("Balance : ",self.deposit)
def modifyAccount(self):
def depositAmount(self,amount):
self.deposit += amount
def withdrawAmount(self,amount):
self.deposit -= amount
def report(self):
def getAccountNo(self):
return self.accNo
def getAcccountHolderName(self):
return self.name
def getAccountType(self):
return self.type
def getDeposit(self):
return self.deposit
def intro():
print("\t\t\t\t**********************")
print("\t\t\t\t**********************")
input()
def writeAccount():
account = Account()
account.createAccount()
writeAccountsFile(account)
def displayAll():
file = pathlib.Path("accounts.data")
if file.exists ():
infile = open('accounts.data','rb')
mylist = pickle.load(infile)
infile.close()
else :
def displaySp(num):
file = pathlib.Path("accounts.data")
if file.exists ():
infile = open('accounts.data','rb')
mylist = pickle.load(infile)
infile.close()
found = False
for item in mylist :
if item.accNo == num :
found = True
else :
if not found :
def depositAndWithdraw(num1,num2):
file = pathlib.Path("accounts.data")
if file.exists ():
infile = open('accounts.data','rb')
mylist = pickle.load(infile)
infile.close()
os.remove('accounts.data')
if item.accNo == num1 :
if num2 == 1 :
item.deposit += amount
elif num2 == 2 :
item.deposit -=amount
else :
else :
outfile = open('newaccounts.data','wb')
pickle.dump(mylist, outfile)
outfile.close()
os.rename('newaccounts.data', 'accounts.data')
def deleteAccount(num):
file = pathlib.Path("accounts.data")
if file.exists ():
infile = open('accounts.data','rb')
oldlist = pickle.load(infile)
infile.close()
newlist = []
if item.accNo != num :
newlist.append(item)
os.remove('accounts.data')
outfile = open('newaccounts.data','wb')
pickle.dump(newlist, outfile)
outfile.close()
os.rename('newaccounts.data', 'accounts.data')
def modifyAccount(num):
file = pathlib.Path("accounts.data")
if file.exists ():
infile = open('accounts.data','rb')
oldlist = pickle.load(infile)
infile.close()
os.remove('accounts.data')
if item.accNo == num :
outfile = open('newaccounts.data','wb')
pickle.dump(oldlist, outfile)
outfile.close()
os.rename('newaccounts.data', 'accounts.data')
def writeAccountsFile(account) :
file = pathlib.Path("accounts.data")
if file.exists ():
infile = open('accounts.data','rb')
oldlist = pickle.load(infile)
oldlist.append(account)
infile.close()
os.remove('accounts.data')
else :
oldlist = [account]
outfile = open('newaccounts.data','wb')
pickle.dump(oldlist, outfile)
outfile.close()
os.rename('newaccounts.data', 'accounts.data')
ch=''
num=0
intro()
while ch != 8:
#system("cls");
print("\tMAIN MENU")
print("\t8. EXIT")
ch = input()
#system("cls");
if ch == '1':
writeAccount()
elif ch =='2':
depositAndWithdraw(num, 1)
elif ch == '3':
depositAndWithdraw(num, 2)
elif ch == '4':
displaySp(num)
elif ch == '5':
displayAll();
elif ch == '6':
deleteAccount(num)
elif ch == '7':
modifyAccount(num)
elif ch == '8':
break
else :
print("Invalid choice")
Bibliography
→ Pythonworld.in
→ Cbsetoday.com