Professional Documents
Culture Documents
&
JUNIOR COLLEGE
THODUPUZHA
Affi.No:930753
class XII
Syllabus requirement
In
COMPUTER SCIENCE
2019-2020
1|P a g e
CERTIFICATE
No: __________of class XII in this school during the year 2019-2020.
DATE:
2|P a g e
A PYTHON PROJECT
ON
BANK MANAGEMENT
3|P a g e
DECLARATION
Place:
Date:
4|P a g e
ACKNOWLEDGEMENT
It was our pleasure to thank everyone for those who have helped us to
encouragement of our Principal Mr. Boby Joseph and other staff played an
for her valuable contributions and excellent guidance. Without her timely
assistance and constant encouragement, it would have not been molded into this
form. Special thanks to the librarian, for her inspiring ideas and valuable
information.
throughout this project. The sincerity and cooperation of all our group members
We gratefully remember all those who worked hard to make this endeavor
a success.
Signature:
Name:
5|P a g e
CONTENTS
Sl no. Title Page no.
2 Software Specification 8
3 Introduction 9
4 System Requirements 10
6 Function Modules 12
7 Source code 13
8 Output 26
9 Conclusion 32
10 Bibliography 33
11 Data Dictionary 34
6|P a g e
INTRODUCTION ABOUT COMPUTERS
COMPUTER
Computers have made great inroads in our everyday life and thinking.
They are put to use for all sorts of applications ranging from complex
access and process data, millions of time faster than humans. Computer can do a
lot of different task such as playing games, weather forecasting, error detection
7|P a g e
SOFTWARE SPECIFICATION
C++
C++ is a language developed to support modern object oriented programming
constructs, while at the same time retaining the look of an already existing and
quite popular language ‘C’. Its object oriented features are highly interrelated.
In several instances, the discussion of one feature implies prior knowledge of
one or more features.
ORIGIN
C++ is an expanded version of C. It was developed by BJARFNE STROUSTUP
in 1980 AT AT&TBELL LAB. Although C++’s and widely used professional
programming language in the world, inventions of C++ was necessitated by
one major programming factor, increasing complexity.
C++ still provides the programmers efficiency, flexibility, freedom, underlying
philosophy and control of C, coupled with the power of OOP’s. However the
maturations of the C++ language is attested to buy to recent events- the
formation of an ANSI(American National Standard Institute) C++ reference
manual by Ellis and Stroustrup called it ‘C with classes’ originally. The name
C++ (pronounced C plus plus) was coined by Rick Mascitti where “++” is the
increment operator.
8|P a g e
INTRODUCTION
9|P a g e
SYSTEM REQUIREMENTS
10 | P a g e
AN OVERVIEW ON BANK MANAGEMENT
1. CREATE AN ACCOUNT
Creating an account in bank
2. DEPOSITE
To deposit the money
3. WITHDRAWAL
To withdraw the money
4. MODIFY MY ACCOUNT
To modify a particular account
5. VIEW ACCOUNT
To view the account
6. TERMINATE ACCOUNT
To cancel particular account
7. MONTHLY REPORT
To display the information of particular month
8. ALL ACCOUNT HOLDERS
To display the details of all account holders
9. LOG OUT
Exit from the program
11 | P a g e
FUNCTION MODULES
12 | P a g e
SOURCE
CODE
13 | P a g e
//***************************************************************
// HEADER FILE USED IN PROJECT
//****************************************************************
#include<iostream.h>
#include<conio.h>
#include<stdio.h>
#include<process.h>
#include<fstream.h>
#include<ctype.h>
//***************************************************************
// CLASS USED IN PROJECT
//****************************************************************
class account
{
int acno;
char name[50];
int deposit, withdraw;
char type;
public:
void create_account()
{
cout<<"\nEnter The account No.";
cin>>acno;
cout<<"\n\nEnter The Name of The account Holder ";
gets(name);
cout<<"\nEnter Type of The account (C/S) ";
cin>>type;
14 | P a g e
type=toupper(type);
cout<<"\nEnter The Initial amount(>=500 for Saving and >=1000 for
current )";
cin>>deposit;
cout<<"\n\n\nAccount Created..";
}
void show_account()
{
cout<<"\nAccount No. : "<<acno;
cout<<"\nAccount Holder Name : ";
puts(name);
cout<<"\nType of Account : "<<type;
cout<<"\nBalance amount : "<<deposit;
}
void modify_account()
{
cout<<"\nAccount No. : "<<acno;
cout<<"\nModify Account Holder Name : ";
gets(name);
cout<<"\nModify Type of Account : ";cin>>type;
cout<<"\nModify Balance amount : ";cin>>deposit;
}
void dep(int x)
{
deposit+=x;
}
15 | P a g e
void draw(int x)
{
deposit-=x;
}
void report()
{cout<<acno<<"\t"<<name<<"\t\t"<<type<<"\t\t"<<deposit<<endl;}
int retacno()
{return acno;}
float retdeposit()
{return deposit;}
char rettype()
{return type;}
//***************************************************************
// global declaration for stream object, object
//****************************************************************
fstream fp;
account ac;
//***************************************************************
16 | P a g e
// function to write in file
//****************************************************************
void write_account()
{
fp.open("account.dat",ios::out|ios::app);
ac.create_account();
fp.write((char*)&ac,sizeof(account));
fp.close();
}
//***************************************************************
// function to read specific record from file
//****************************************************************
void display_sp(int n)
{
clrscr();
cout<<"\nBALANCE DETAILS\n";
int flag=0;
fp.open("account.dat",ios::in);
while(fp.read((char*)&ac,sizeof(account)))
{
if(ac.retacno()==n)
{
ac.show_account();
flag=1;
17 | P a g e
}
}
fp.close();
if(flag==0)
cout<<"\n\nAccount number does not exist";
getch();
}
//***************************************************************
// function to modify record of file
//****************************************************************
void modify_account()
{
int no,found=0;
clrscr();
cout<<"\n\n\tTo Modify ";
cout<<"\n\n\tEnter The account No. of The account";
cin>>no;
fp.open("account.dat",ios::in|ios::out);
while(fp.read((char*)&ac,sizeof(account)) && found==0)
{
if(ac.retacno()==no)
{
ac.show_account();
cout<<"\nEnter The New Details of account"<<endl;
ac.modify_account();
int pos=-1*sizeof(ac);
18 | P a g e
fp.seekp(pos,ios::cur);
fp.write((char*)&ac,sizeof(account));
cout<<"\n\n\t Record Updated";
found=1;
}
}
fp.close();
if(found==0)
cout<<"\n\n Record Not Found ";
getch();
}
//***************************************************************
// function to delete record of file
//****************************************************************
void delete_account()
{
int no;
clrscr();
cout<<"\n\n\n\tDelete Record";
cout<<"\n\nEnter The account no. of the customer You Want To Delete";
cin>>no;
fp.open("account.dat",ios::in|ios::out);
fstream fp2;
fp2.open("Temp.dat",ios::out);
fp.seekg(0,ios::beg);
while(fp.read((char*)&ac,sizeof(account)))
19 | P a g e
{
if(ac.retacno()!=no)
{
fp2.write((char*)&ac,sizeof(account));
}
}
fp2.close();
fp.close();
remove("account.dat");
rename("Temp.dat","account.dat");
cout<<"\n\n\tRecord Deleted ..";
getch();
}
//***************************************************************
// function to display all accounts deposit list
//****************************************************************
void display_all()
{
clrscr();
fp.open("account.dat",ios::in);
if(!fp)
{
cout<<"ERROR!!! FILE COULD NOT BE OPEN\n\n\n Go To Admin Menu
to create File";
getch();
return;
}
20 | P a g e
cout<<"\n\n\t\tACCOUNT HOLDER LIST\n\n";
cout<<"====================================================\n"
;
cout<<"A/c no.\tNAME\t\tType\t\tBalance\n";
cout<<"====================================================\n"
;
while(fp.read((char*)&ac,sizeof(account)))
{
ac.report();
}
fp.close();
}
//***************************************************************
// function to deposit and withdraw amounts
//****************************************************************
21 | P a g e
{
if(ac.retacno()==no)
{
ac.show_account();
if(option==1)
{
cout<<"\n\n\tTO DEPOSITE AMOUNT ";
cout<<"\n\nEnter The amount to be deposited";
cin>>amt;
ac.dep(amt);
}
if(option==2)
{
cout<<"\n\n\tTO WITHDRAW AMOUNT ";
cout<<"\n\nEnter The amount to be withdraw";
cin>>amt;
int bal=ac.retdeposit()-amt;
if((bal<500 && ac.rettype()=='S') || (bal<1000 &&
ac.rettype()=='C'))
cout<<"Insufficience balance";
else
ac.draw(amt);
}
int pos=-1*sizeof(ac);
fp.seekp(pos,ios::cur);
fp.write((char*)&ac,sizeof(account));
cout<<"\n\n\t Record Updated";
found=1;
}
}
22 | P a g e
fp.close();
if(found==0)
cout<<"\n\n Record Not Found ";
getch();
}
//***************************************************************
// INTRODUCTION FUNCTION
//****************************************************************
void intro()
{
clrscr();
gotoxy(31,11);
cout<<"BANKING";
gotoxy(35,14);
cout<<"TRANSACTIONS";
gotoxy(35,17);
cout<<"SYSTEM";
cout<<"\n\nMADE BY : your name";
cout<<"\n\nSCHOOL : your school name";
getch();
23 | P a g e
//***************************************************************
// THE MAIN FUNCTION OF PROGRAM
//****************************************************************
void main()
{
char ch;
intro();
do
{
clrscr();
cout<<"\n\n\n\tMAIN MENU";
cout<<"\n\n\t01. NEW ACCOUNT";
cout<<"\n\n\t02. DEPOSIT AMOUNT";
cout<<"\n\n\t03. WITHDRAW AMOUNT";
cout<<"\n\n\t04. BALANCE ENQUIRY";
cout<<"\n\n\t05. ALL ACCOUNT HOLDER LIST";
cout<<"\n\n\t06. CLOSE AN ACCOUNT";
cout<<"\n\n\t07. MODIFY AN ACCOUNT";
cout<<"\n\n\t08. EXIT";
cout<<"\n\n\tSelect Your Option (1-8) ";
ch=getche();
switch(ch)
{
case '1': clrscr();
write_account();
getch();
break;
24 | P a g e
case '2': clrscr();
deposit_withdraw(1);
break;
case '3': clrscr();
deposit_withdraw(2);
getch();
break;
case '4': int num;
clrscr();
cout<<"\n\n\tEnter The account No. ";
cin>>num;
display_sp(num);
break;
case '5': clrscr();
display_all();
getch();
break;
case '6': delete_account();
break;
case '7': clrscr();
modify_account();
getch();
break;
case '8':exit(0);
default :cout<<"\a";
}
}while(ch!='8');
25 | P a g e
SCREEN
SHOTS
26 | P a g e
27 | P a g e
28 | P a g e
29 | P a g e
30 | P a g e
31 | P a g e
32 | P a g e
CONCLUSIONS
By this program, the various functions of bank are formulated into step
by step and systematic processes. This program is designed to provide a
computer solution to user’s problems. The bank management not only provides
an opportunity to enhance its customer care but also increases the efficiency and
accuracy of transactions through bank. It would enable the bank to serve the
rapidly growing number of account holders and transaction better.
This program would enable the bank to improve the response time to the
demands of the applicants since it can automate the process of collecting and
retrieving information. This program can reduce the amount of human work
force required in a bank for its functioning soon after implementation.
We hope all the basic requirements of the user are being served by our
computerized solutions. This software uses many facilities offered by C++ to
make it simpler and user-friendly. We hope you liked it.
33 | P a g e
BIBLIOGRAPHY
www.stackoverflow.com
34 | P a g e
\
DATA DICTIONARY
HEADER FILES
35 | P a g e