Vous êtes sur la page 1sur 31

BANKING

TRANSACTION
SYSTEM

ACKNOWLEDGEMENT
Its always a great satisfaction when we see that our dreams
are given a shape. So thanks to the unseen powers who guided us
throughout the projects.

I feel great pleasure to express my gratitude and obligation to


Sri A.Balakrishnan, Principal of Nithyananda Bhavan English
Medium School.

I also express my sincere thanks to Mrs.Mega


Teacher, Nithyananda Bhavan English Medium
encouragement and valuable guidance during the
work. I am deeply indebted to my parents for
support and encouragement.

P.P., Computer
School for her
entire period of
their continued

I would also thank all of my friends for their whole-hearted


support and encouragement without with this project would not
have been successful.

Above all, I bow my head to Almighty who blessed me with


good health and confidence for the successful completion of this
project.

CONTENTS
1. INTRODUCTION
2. WORKING ENVIRONMENT
3. SYSTEM ANALYSIS
EXISTING SYSTEM
PROPOSED SYSTEM
4. SYSTEM DESIGN
5. SCREENS AND OUTPUT
6. BIBLIOGRAPHY
7. CONCLUSION
8. SOURCE CODE

INTRODUCTION
This project is developed in C++, which is one of the
object oriented language that could be the most powerful
link to future programming methodologies. One of the
main reason behind the success of C++ is that it support
object oriented technology i.e. it uses real life concept for its
programming. One can easily understand the importance of
C++ from the following lines.
Object oriented technology is regarded as the ultimate
paradigm for modeling of information be in dated logic++
has by now shown to fulfill this goal.
This project aims at computerization of the manual
banking management system.
There are numerous
advantage of this management system like speed, efficiency,
reliability and accessibility.
This helps in making the system more sophisticated and
user friendly.
This helps in saving the precious time.
handling the system can also be minimized.

Error while

It has been coded after thorough study of existing


system of management. This program is ventured to
represent the management facilities in the present world. In
this program you can create an account, deposit money,
check the balance and display the account information.

WORKING ENVIRONMENT
SOFTWARE
Platform

: Microsoft Windows XP

Language

: C++

HARDWARE
Processor

: Intel Celeron D

Clock speed

: 333MHz

RAM

: 512 MB

Hard disk capacity : 80 GB


Pen drive

: 2 GB

Bit Specification

: 32 bits

Keyboard

: Logitech 104 Keys

Mouse

: Logitech Optical

Display Device

: View Sonic Colour Monitor.

SYSTEM ANALYSIS
System analysis is general term that refers to an orderly,
structured process for identifying and solving problems. We call this
system analysis process the life cycle methodology since it relates to
four significant phases in the life cycle of all the system; study,
design, development and operation .

Analysis implies the process of breaking something down into


its parts so that the whole may be understood. The definition of
system analysis but also that of synthesis which is the process of
putting parts together to form a new whole.

EXISTING SYSTEM
The existing system for banking management is completely
based on records of manual work. It is a tedious task to keep track
of all details and to search for an account in the record book in case
any details are essential.

PROPOSED SYSTEM
This system of banking management is entirely dependent on
the efficiency of the user and the correctness of the data entered.
We do not have to wait searching for an account as giving the
account number of the person in the search menu can retrieve the
details.

SYSTEM DESIGN
This project is based on C++ programming. The C programming
language was created as a structured programming tool for writing
operating systems. The C programming became famous of its
characteristic features like speed, compactness and very low level
features.
But over the year it was found that structured
programming had flaws and limitations. It was difficult to manage
complex programming projects. Therefore in 1983 Bjarne Stroustup
created C++ as a separate language based on syntax on C.
The new C++ supports classes and object oriented programming.
The object oriented programming gives primary importance to data
being operated up on instead of operating themselves. It combines
the data to its functions in such a way that access to data is allowed
through its associated functions.
This program is based on:
1. Classes
2. Input\output.

CLASS
A class is technique used to engulf all information regarding a
particular entity and it also contains the member functions, which
enables the running of the program.
The class used in the project is account.

INPUT\OUTPUT

Set account no
Deposit
Display
Display 1
Withdraw
Read
Deletion

1. Set account no:


This function is used to set the account no. of a customer.
2. Deposit:
This function is used to deposit money in the account.
3. Display:
This function is used to display the details of a single customer.
4. Display 1:
This function is used to display the details of all the customers.
5. Withdraw:
This function is used to withdraw the amount.
6. Read:
This function is used to read the details of the customer including
name, address and amount.
7. Deletion:
This function is used to delete the account details of the customer.

SCREENS
&
OUTPUTS
6

BANKING TRANSACTION SYSTEM

MADE BY: ABHILASH, ANAGHA, FAYIZ, NIVEDITHA

SCHOOL: NITHYANANDA BHAVAN ENGLISH MEDIUM


SCHOOL

MAIN MENU
01. NEW ACCOUNT
02. DEPOSIT AMOUNT
03. WITHDRAW AMOUNT
04. BALANCE ENQUIRY
05. ALL ACCOUNT HOLDER LIST
06. CLOSE AN ACCOUNT
07. MODIFY AN ACCOUNT
08. EXIT

Select Your Option (1-8): 1


Enter the account no: 974481
Enter the name of the account holder: KRITIKA
Enter type of account(C/S): S
Enter the initial amount (>=500 for saving and >=1000 for
current): 10000
ACCOUNT CREATED..
Select Your Option (1-8): 2
Enter the account no: 974481
Account no. : 8559
Account Holder Name: KRITIKA
Type of account: S
Balance amount: 10000
TO DEPOSIT AMOUNT
Enter the amount to be deposited: 10000
Record updated..
Select Your Option (1-8): 3
Enter the account no. : 974481
Account no. : 8559
Account Holder name: KRITIKA

Type of account: S
Balance amount: 20000
TO WITHDRAW AMOUNT
Enter the amount to be withdrawed: 10000
Record Updated..
Select Your Option (1-8): 4
BALANCE DETAILS
Account no. : 8559
Account Holder Name: KRITIKA
Type of account: S
Balance amount: 10000
Select Your Option (1-8): 5
ACCOUNT HOLDER LIST
A/c no.

NAME

8559

KRITIKA

Type
S

Balance
10000

Select Your Option (1-8): 6


TO MODIFY
Enter the account no. of the account 974481
Account no. : 8559
Enter Holder Name: KRITIKA

10

Type of account: S
Balance amount: 10000
Enter The New Details of account
Account No. : 8559
Modify Account Holder Name: KARTHIKA
Modify Type of Account: C
Modify Balance Amount: 10000
Record Updated..
Select Your Option (1-8): 7
Delete Record
Enter The Account no. of The Costumer You Want To
Delete: 974481
Record Deleted..
Select Your Option (1-8): 8
Exit

11

Source code

12

//********************************************************************
//

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.";

13

cin>>acno;
cout<<"\n\nEnter The Name of The account Holder ";
gets(name);
cout<<"\nEnter Type of The account (C/S) ";
cin>>type;
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);

14

cout<<"\nModify Type of Account : ";cin>>type;


cout<<"\nModify Balance amount : ";cin>>deposit;
}

void dep(int x)
{
deposit+=x;
}

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;}

15

};

//class ends here

//**************************************************************************
//

global declaration for stream object, object

//**************************************************************************

fstream fp;
account ac;

//**************************************************************************
//

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();
}

16

//**************************************************************************
//

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;
}
}
fp.close();
if(flag==0)
cout<<"\n\nAccount number does not exist";
getch();
}

17

//**************************************************************************
//

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);
fp.seekp(pos,ios::cur);
fp.write((char*)&ac,sizeof(account));
cout<<"\n\n\t Record Updated";
found=1;

}
}
18

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

{
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)
{

20

cout<<"ERROR!!! FILE COULD NOT BE OPEN\n\n\n Go To Admin Menu to create File";


getch();
return;
}

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

//**************************************************************************

void deposit_withdraw(int option)


{
int no,found=0,amt;

21

clrscr();

cout<<"\n\n\tEnter The account No.";


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();
if(option==1)
{
cout<<"\n\n\tTO DEPOSIT 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

22

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;
}
}
fp.close();
if(found==0)
cout<<"\n\n Record Not Found ";
getch();
}

//**************************************************************************
//

INTRODUCTION FUNCTION

//**************************************************************************

void intro()
{
clrscr();

23

cout<<"\n\n\n\tBANKING";
cout<<"\tTRANSACTION";
cout<<"\tSYSTEM";
cout<<"\n\n\tMADE BY : ABHILASH, ANAGHA, FAYIZ, NIVEDITHA";
cout<<"\n\n\tSCHOOL : NITHYANANDA BHAVAN ENGLISH MEDIUM SCHOOL";
getch();

//**************************************************************************
//

THE MAIN FUNCTION OF PROGRAM

//**************************************************************************

void main()
{
char ch;
intro();
do
{
clrscr();

24

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;
case '2': clrscr();
deposit_withdraw(1);
break;
case '3': clrscr();
deposit_withdraw(2);
getch();
break;
case '4': int num;
clrscr();

25

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');
}

//**************************************************************************
//

END OF PROJECT

//**************************************************************************

26

CONCLUSION
This project BANKING MANAGEMENT SYSTEM will
fulfill the entire information requirement by the user. The
whole system is menu driven and hence is user friendly. This
system is developed as easy as possible for the sake of user.
The system has developed with a view of satisfying the
future requirements.
This system has been thoroughly tested and found to
be error free and it is highly portable. It also has more
option for future development.

27

BIBLIOGRAPHY

1. INTRODUCTORY COMPUTER:
A.K.SHARMA

2. COMPUTER SCIENCE WITH C++:


SUMITA ARORA

3. OBJECT ORIENTED PROGRAMMING WITH C++:


E.BALAGURUSAMY

28