You are on page 1of 35

CO-OPERATIVE PUBLIC SCHOOL

&

JUNIOR COLLEGE
THODUPUZHA
Affi.No:930753

Project report submitted in fulfillment of

class XII

Syllabus requirement

In

COMPUTER SCIENCE

2019-2020

1|P a g e
CERTIFICATE

Certified that this was the record of Bonafide project work

carried out by ________________________________________________Reg.

No: __________of class XII in this school during the year 2019-2020.

Teacher In charge Principal Examiner

DATE:

2|P a g e
A PYTHON PROJECT

ON

BANK MANAGEMENT

3|P a g e
DECLARATION

I hereby declared that the project work entitled “BANK

MANAGEMENT” is an authentic record on original work

submitted by…………………………………….. under the

supervision of Mrs.Leema George.

Place:

Date:

4|P a g e
ACKNOWLEDGEMENT

It was our pleasure to thank everyone for those who have helped us to

submit our project on BANK MANAGEMENT. The support and

encouragement of our Principal Mr. Boby Joseph and other staff played an

indispensable role in making this project successful.

We acknowledge Mrs.Leema George , our teacher of computer science

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.

We remember with extreme gratitude and abundance of God’s blessings

throughout this project. The sincerity and cooperation of all our group members

deserve special mention.

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.

1 Introduction About Computers 7

2 Software Specification 8

3 Introduction 9

4 System Requirements 10

5 An overview on Bank Management 11

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

calculations in the field of frontline research, engineering, Simulations down to

teaching, printing books and recreational games.

A computer is an electronic device that can perform a variety of

operations according to a set of instruction called program. Computers can

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

and controlling the flight of spacecraft etc.

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

BANK MANAGEMENT is a computer written software in C++


language. This program implements classes, functions, switch and various types
of oops concepts etc..The program also display error message for any error .The
program can be used with the help of the instructions displayed on the screen.
This program helps in any organization for handling various tasks. This
program can be utilized by any bank authorities.
Bank management is a sector that requires a very precise and keen
management of accounts, money transaction and frequent reports. We have
developed this revolutionary product to be very accurate in its approach for
small and large banking system. This program is designed to enhance quality of
management of accounts and transactions fast and secure.

9|P a g e
SYSTEM REQUIREMENTS

Hardware and software specification

COMPONENTS MINIMUM RECOMMENDED

PROCESSOR INTEL PENTIUM II PENTIUM 5


HARD DISK 50 MB ABOVE 2 GB
RAM 128 MB 1 GB
OS WINDOWS XP WINDOWS 7
PROGRAMMING C++ C++
LANGUAGE

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

USER DEFINED FUNCTIONS

1. create_account : To create a new account


2. show_account: To show the account details
3. modify_account : To modify the details of account
4. dep() :To deposit amount into the account
5. draw() :To withdraw the amount from the account
6. report(): To display the details of account
7. retacno(): To return the account number
8. retdeposit(): To return the amount to be deposited
9. rettype(): To return the type of account
10.write_account() : To write the account details into the file
11.display_sp(): To read a particular record from the file
12.delete_account(): To delete a particular account
13.display_all(): To display all account holders list
14.deposit_withdraw(): To deposit and withdraw amounts from accounts
15.intro(): Introduction function

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

}; //class ends here

//***************************************************************
// 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
//****************************************************************

void deposit_withdraw(int option)


{
int no,found=0,amt;
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)

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

 Computer science with c++ by Sumita Arora

 www.stackoverflow.com

34 | P a g e
\

DATA DICTIONARY

HEADER FILES

iostream.h – for cin and cout


conio.h – for clrscr(),gotoxy()
process.h - for exit()
dos.h- for getdate(), gettime()
time.h-for time
ctype.h-for strcpy()
stdio.h-for gets(),puts()
fstream.h-for file handling
math.h-for mathematical calculation
stdlib.h-for srand()

35 | P a g e

You might also like