Вы находитесь на странице: 1из 41

ACKNOWLEDGEMENT

I take this opportunity to express my profound gratitude and


deep regards to my guide, Mrs. Sajida for her exemplary
guidance, monitoring and constant encouragement throughout
the course of the project. I extend my gratitude to my friends for
their cordial support which helped me complete this task
through various stages. I also thank the school management for
the lab facility and guidance which helped me complete the
program. Lastly, I thank the almighty and my parents for their
constant support.

1
INDEX

1. ACKNOWLEDGEMENT
2. SYNOPSIS
3. OOP’S CONCEPT
4. FUNCTIONS USED AND PURPOSE
5. HEADER FILES USED
6. SOURCE CODE
7. OUTPUT
8. ADVANTAGE AND DISADVANTAGES
9. CONCLUSION
10. SCOPE FOR IMPROVEMENT
11. BIBLIOGRAPHY

2
SYNOPSIS

The main objective of the project is to develop online Banking system for
banks. In this bank management system we will automate all the banking
process. In our bank management system user can check his balance and
he can also transfer money to other account . In this Software you can
keep record for daily Banking transactions.

This bank management system also allow user to add new customer
account, delete account and user can also modify existing user account
information. Using this system user can also search any individual account
in few seconds. Using our bank management system user can also check
any translation in any account. Our system also provide security check to
reduce fraud. The system will check the user’s existence in the database
and provide the set of services with respect to the role of the user.

3
OOP’S CONCEPTS

OOP’S CONCEPTS OOP’s concepts or Object-Oriented programing is a


programing style that is associated with concepts of Class, Objects and various
other concepts revolving around these two, like Inheritance, Polymorphism,
Abstraction, Encapsulation, etc.

1.Object: An object is an identifiable entity with some characteristics and


behavior. While programing using OOP’s approach the characteristics of an
object is represented by its data and behavior by its associated functions.

2. Class: A class is a group of objects that share common properties and


relationships. 3.

3.Data Abstraction: Abstraction refers to the act of representing the essential


features without including the background details and information. In OOP’s
approach the details are revealed outside the class using three visibility modes –
private, public and protected

4. Data Encapsulation: The wrapping up of data and operations into a single unit
called class is known as data encapsulation. It is a way to implement data
abstraction.

5.Modularity: It is the act of partitioning a program into individual components.


It is the property of the system that has been decomposed into a set of modules.

6.Inheritance: It is the capability of one class to inherit properties from another


class.

7.Polymorphism: It is the ability of a module to be processed in more than one


form.

FUNCTIONS USED AND PURPOSE


4
1. gets(): It is a predefined function under the header file which tells the console to wait for
some time until a key is hit given after running of program. By using this function, we can
read a character directly from the keyboard.

2. clrscr(): It is a predefined function under the header file used to clear the console screen.
It is a predefined function. By using this function, we can clear the data from the console.
User Defined Functions:

3. void crtbacc(): it is an user defined function which creates a new bank account

4. void shwpdet():it is an user defined function which shows personal details

5.void shwbdet():it is an user defined function which shows bank details

6. void wrtacc():it is an user defined function which writes int file

7. void modA():it is an user defined function which modify account after depositing

8.void modE():it is an user defined function which modify account afterwithdrawal

9. void modC():it is an user defined function which an account

10.void search():it is an user defined function which is used to search

11.void del():it is an user defined function which is used to delete an account

12.void show():it is an user defined function which shows details of 1 account

13.void showall():it is an user defined function which show all account details

14.void exit():it is an user defined function which is used to exit from menu

15.void intro():it is an user defined introduction fuction

16.void desk():it is an user defined function which show home page

5
17.int retaccno():it is an user defined function which returns the value of account
number

18.long retacbal():it is an user defined function which returns the value of accontbalance

6
HEADER FILES USED
1. #include<iostream.h>
Header files that provides basic input and output service.

2. #include<Fstream.h>
Header file that provides file processing.

3. #include<conio.h>
Header file that declares several useful library functions for performing console
input and output from a program.

4. #include<stdio.h>
Most of the C file input and output functions are defined in this header file.

5. #include<iomanip.h>
Header file that defines manipulator functions.

6. #include<stdlib.h>
Header of the general-purpose standard library of C programming language.

7. #include<string.h>
Header file that contains function prototypes for C-style string processing
functions.

8. #include<process.h>
is a C header file which contains function declarations and macros used in
working with threads and processes
9. #include<ctype.h>
Header file includes numerous standard library functions to handle characters
(especially test characters)

7
SOURCE CODE
/***************************************************************************/
//SOURCE CODE
/***************************************************************************/
/***************************************************************************/
//HEADER FILES
/***************************************************************************/
#include<fstream.h>
#include<iostream.h>
#include<conio.h>
#include<iomanip.h>
#include<stdio.h>
#include<stdlib.h>
#include<process.h>
#include<ctype.h>
#include<string.h>

/***************************************************************************/
//CLASS
/***************************************************************************/

class banking
{
int accno;
long acbal;
char name[25],add[50],gender[10],phone[11],dob[11],btype[15],nominee[25];
char eid[25];

public:
void crtbacc();
void shwpdet();
void shwbdet();
/*******************/

8
void wrtacc();
void modA();
void modE();
/*******************/
void modC(int);
void search();
void del();
void show();
void showall();
void exit();
void intro();
void desk();
/*******************/
int retaccno()
{return accno;
}
long retacbal()
{return acbal;
}
}B;

/***************************************************************************/
//FUNCTION TO CREATE AN ACCOUNT
/***************************************************************************/

void banking::crtbacc()
{cout<<"\n\n\t\t--------Account Creation--------\n\n\n";
cout<<"\tEnter the Account Holder Name: ";
gets(name);
cout<<"\n\t";
cout<<"Enter the Date of Birth (DD/MM/YYYY): ";
gets(dob);
cout<<"\n\t";
cout<<"Enter the emailID: ";
gets(eid);

9
cout<<"\n\t";
cout<<"Enter the Gender: ";
gets(gender);
cout<<"\n\t";
cout<<"Enter the Phone Number: ";
gets(phone);
cout<<"\n\t";
cout<<"Enter the Address: ";
gets(add);
cout<<"\n\t";
cout<<"Enter the Name of the Nominee: ";
gets(nominee);
cout<<"\n\t";
cout<<"\nEnter the Account Number: ";
cin>>accno;
cout<<"\n";
cout<<"Enter the type of Bank Account: ";
gets(btype);
cout<<"\n";
cout<<"Enter the Amount to be deposited : ";
cin>>acbal;
cout<<"\n";
cout<<"\n\n\nAccount created Successfully....\n\n\t\t";
}

/***************************************************************************/
//FUNCTION TO DISPLAY BANK DETAILS
/***************************************************************************/

void banking::shwbdet()
{
clrscr();
cout<<"******************************************************************\n";
cout<<"\t\t\tAccount Details\n";
cout<<"******************************************************************\n\n";

10
cout<<"\nAccount Number : "<<accno;
cout<<"\nAccount Holder Name: "<<name;
cout<<"\nAccount Type : "<<btype;
cout<<"\nAccount Balance : "<<acbal;
}

/***************************************************************************/
//FUNCTION TO DISPLAY PERSONAL DETAILS
/***************************************************************************/

void banking::shwpdet()
{
cout<<"\n\n******************************************************************\n";
cout<<"\t\t\tPersonal Details\n";
cout<<"******************************************************************\n";

cout<<"\nAccount Holder Name: "<<name;


cout<<"\nAddress : "<<add;
cout<<"\nDate of Birth : "<<dob;
cout<<"\nGender : "<<gender;
cout<<"\nPhone no : "<<phone;
cout<<"\nE-mail ID : "<<eid;
cout<<"\nNominee : "<<nominee;
}

/***************************************************************************/
//FUNCTION TO WRITE IN FILE
/***************************************************************************/

void banking::wrtacc()
{

11
ofstream fout;
fout.open("Accounts.dat",ios::binary|ios::app);
clrscr();
{B.crtbacc();
fout.write((char*)&B,sizeof(B));
}
fout.close();
cout<<"\n\n\t\t";
system("pause");
B.desk();
}

/***************************************************************************/
//FUNCTION TO MODIFY AN ACCOUNT AFTER DEPOSITING
/***************************************************************************/

void banking::modA()
{ clrscr();
int p,a=0;
long d;
cout<<"\n\n\n\n\n\n\n\n\n\n\t\tEnter the Account number: ";
cin>>p;
cout<<endl;
fstream f;
f.open("Accounts.dat",ios::binary|ios::in|ios::out);
while(f.read((char*)&B,sizeof(B)))
{
if(B.retaccno()==p)
{
B.shwbdet();
cout<<endl;
cout<<"\n\n\n\n\n\n\n\n\n\n\t\tEnter the Amount to be Deposited: ";
cin>>d;
acbal+=d;
int pos=-1*sizeof(B);

12
f.seekp(pos,ios::cur);
f.write((char*)&B,sizeof(B));
cout<<"\n\n\n\nAccount Successfully Updated!!\n\n\n\t\t";
system("pause");
a=1;
}
}
if(a==0)
{ clrscr();
cout<<"\n\n\n\n\n\n\n\n\n\n\t\tEntered Account Number Does not
Exist\n\n\t\tPress any key to Continue."<<endl;
}
f.close();
getch();
B.desk();
}

/***************************************************************************/
//FUNCTION TO MODIFY AN ACCOUNT AFTER WITHDRAWING
/***************************************************************************/

void banking::modE()
{ clrscr();
int p,a=0;
long d;
cout<<"\n\n\n\n\n\n\n\n\n\n\t\tEnter the Account number: ";
cin>>p;
cout<<endl;
fstream f;
f.open("Accounts.dat",ios::binary|ios::in|ios::out);
while(f.read((char*)&B,sizeof(B)))
{
if(B.retaccno()==p)
{
B.shwbdet();

13
cout<<endl;
cout<<"\n\n\n\n\n\n\n\n\n\n\t\tEnter the Amount to be Withdrawn: ";
cin>>d;
acbal-=d;
int pos=-1*sizeof(B);
f.seekp(pos,ios::cur);
f.write((char*)&B,sizeof(B));
cout<<"\n\n\n\nAccount Successfully Updated!!\n\n\n\t\t";
system("pause");
a=1;
}
}
if(a==0)
{clrscr();
cout<<"\n\n\n\n\n\n\n\n\n\n\t\tEntered Account Number Does not
Exist\n\n\t\tPress any key to Continue."<<endl;
}
f.close();
getch();
B.desk();
}
/***************************************************************************/
//FUNCTION TO DISPLAY DETAILS
/***************************************************************************/

void banking::show()
{
cout<<endl;
cout<<accno<<setw(20)<<name<<setw(20)<<btype<<setw(30)<<acbal<<endl;
}

/***************************************************************************/
//FUNCTION TO DISPLAY ALL DETAILS
/***************************************************************************/

14
void banking::showall()
{
cout<<"+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
+++++++++++++++\n";
cout<<"Account Number"<<setw(10)<<"Name"<<setw(20)<<"Account
Type"<<setw(30)<<"Account Balance\n";
cout<<"+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
+++++++++++++++\n";
ifstream fin;
fin.open("Accounts.dat",ios::binary|ios::in);
while(fin.read((char*)&B,sizeof(B)))
{
B.show();
}
fin.close();
cout<<"\n\n\t\t";
system("pause");
B.desk();
}

/***************************************************************************/
//FUNCTION TO SEARCH AN ACCOUNT
/***************************************************************************/

void banking::search()
{
int s,fnd=0;
cout<<"\n\n\n\nEnter the Account Number :";
cin>>s;
ifstream fin;
fin.open("Accounts.dat",ios::binary|ios::in);
while(fin.read((char*)&B,sizeof(B)))
{ if(B.retaccno()==s)
{B.shwbdet();

15
cout<<endl;
B.shwpdet();
cout<<"\n\n\t\t";
fnd+=1;
system("pause");
B.desk();
}
}
if(fnd==0)
{clrscr();
cout<<"\n\n\n\n\n\n\n\n\n\n\t\tEntered Account Number Does not
Exist..\n\n\t\t";
system("pause");
B.desk();
}
getch();
fin.close();
}

/***************************************************************************/
//FUNCTION TO MODIFY AN ACCOUNT
/***************************************************************************/

void banking::modC(int C)
{clrscr();
int fnd=0;
fstream f;
f.open("Accounts.dat",ios::binary|ios::in|ios::out);
while(f.read((char*)&B,sizeof(B)))
{
if(B.retaccno()==C)
{
{cout<<"\n\n\n\nEnter the New Details of the Account Holder\n\n";
cout<<"\n\n\t\t--------Account Modification--------\n\n\n";
cout<<"\tEnter the Account Holder Name: ";

16
gets(name);
cout<<"\n\t";
cout<<"Enter the Date of Birth (DD/MM/YYYY): ";
gets(dob);
cout<<"\n\t";
cout<<"Enter the emailID: ";
gets(eid);
cout<<"\n\t";
cout<<"Enter the Gender: ";
gets(gender);
cout<<"\n\t";
cout<<"Enter the Phone Number: ";
gets(phone);
cout<<"\n\t";
cout<<"Enter the Address: ";
gets(add);
cout<<"\n\t";
cout<<"Enter the Name of the Nominee: ";
gets(nominee);
cout<<"\n\n\tAccount Modified Successfully..";
}
int pos=(-1)*sizeof(B);
f.seekp(pos,ios::cur);
f.write((char*)&B,sizeof(B));
fnd+=1;
}
}
if(fnd==0)
{
cout<<"\n\n\n\n\n\n\n\n\n\n\t\tEntered Account Number does not
exist....\n\n\t\tPress any key to continue.";
}
f.close();
getch();
B.desk();
}

17
/***************************************************************************/
//FUNCTION TO CLOSE AN ACCOUNT
/***************************************************************************/

void banking::del()
{ clrscr();
int dl,fnd=0;
ifstream fin;
fin.open("Accounts.dat",ios::binary|ios::in);
ofstream fout;
fout.open("Temp.dat",ios::binary|ios::out);
cout<<"\n\n\t\t--------Account Deletion--------\n\n\n";
cout<<"\n\n\n\n\n\n\n\n\t\tEnter the Account number: ";
cin>>dl;
while(fin.read((char*)&B,sizeof(B)))
{
if(B.retaccno()!=dl)
{fout.write((char*)&B,sizeof(B));
}
if(B.retaccno()==dl)
{ fnd+=1;
}
}
if(fnd==0)
{clrscr();
cout<<"\n\n\n\n\n\n\n\n\n\n\t\tEntered Account Number does not
exist....\n\n\t\t";
}
else
{ cout<<"\n\n\t\tACCOUNT CLOSED.....";
cout<<"\n\n\n\n\t\t";
}
fin.close();
fout.close();

18
remove("Accounts.dat");
rename("Temp.dat","Accounts.dat");
system("pause");
B.desk();
}

/***************************************************************************/
//EXIT FUNCTION
/***************************************************************************/

void banking::exit()
{clrscr();
cout<<"\n\n\n\n\n\n\t\t\t.....Thanks For
Visiting.....\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\t\t\t";
system("pause");
}

/***************************************************************************/
//INTRO FUNCTION
/***************************************************************************/

void banking::intro()
{
cout<<"\n\n\n\n\n\n.............................Bank Management System.............................";
cout<<"\n\n\n\n\n\n\n\n\n\n\n\n\n\t\t\t";
system("pause");
}

/***************************************************************************/
//HOME
/***************************************************************************/

19
void banking::desk()
{head:
clrscr();
cout<<"\t\t\t\tHome";
cout<<"\n\n\n1.Create a New Account";
cout<< "\n\n2.Account Transaction";
cout<< "\n\n3.Search an Account";
cout<< "\n\n4.All Account details";
cout<< "\n\n5.Modifying Account details";
cout<< "\n\n6.Account Closing";
cout<< "\n\n7.Exit";
cout<< "\n\n\n\t\tEnter your choice(1-7): ";
int c,ch;
cin>>ch;
clrscr();
switch(ch)
{
case 1:B.wrtacc();
break;
case 2:{
c:
clrscr();
int i;
cout<<"\n\n\n\n\t1.Cash Deposit\n\n\t2.Cash Withdrawal";
cout<<"\n\n\n\t\tEnter your Choice(1 or 2): ";
cin>>i;
if(i==1)
B.modA();
else if(i==2)
B.modE();
else goto c;
}
break;
case 3:B.search();
break;
case 4:B.showall();

20
break;
case 5:cout<<"\n\n\n\n\n\n\n\n\n\n\t\t\tEnter the Account number: ";
cin>>c;
B.modC(c);
break;
case 6:B.del();
break;
case 7:B.exit();
break;
default:{cout<<"\n\n\n\n\n\n\n\n\n\n\t\tOops!! Wrong Choice..\n\n\t\t";
system("pause");
goto head;
}
}
}

/***************************************************************************/
//MAIN FUNCTION
/*-------------------------------------------------------------------------*/
/***************************************************************************/

void main()
{clrscr();
B.intro();
B.desk();
}
/***************************************************************************/
/*-------------------------------------------------------------------------*/

21
OUTPUT

22
23
24
25
26
27
28
29
30
31
32
33
ADVANTAGES AND DISADVANTAGES

ADVANTAGE
 24/7 account and service access
 Speed and efficiency
 Online bill payment
 Inexpensive
 Availability
 Effectiveness

DISADVANTAGE
 Technology issues
 Security issues
 Inefficient at complex transactions
 No relationship with personal banker
 Inconvenient to make deposits
 One must have basic computer skills
 unemployment

34
CONCLUSION

The banking system will serve as a useful approach to deposit and withdraw
money for the person. It reduces the time taken by the user to save the money

The banking system developed is user friendly even a person without basic skills
in computer can manage it well. It can reduce the manual work.

35
SCOPE FOR IMPROVEMENT

 The program could have included graphics to look more realistics.


 Voice assistants could have been included for blind people or illiterate
people
 Options with images could have been included for better experience.

36
BIBLIOGRAPHY

Learning c++ -by sumitha arora


Cbse.nic.in
Schoolprojects.com

37
38
39
40
41

Вам также может понравиться