SlideShare ist ein Scribd-Unternehmen logo
1 von 32
Downloaden Sie, um offline zu lesen
COMPUTER SCIENCE-PROJECT
2017-2018
Submitted by,
Name:
Reg.No:
Class: Section:
Index
 Abstract 01
 Program specification 02
 Description 03
 Program Coding 05
 Output 19
 Future enhancement 24
 Bibliography 25
1
 Abstract
The main objectives of this banking system which
is developed in C++ is to provide a flexible solution
for banking industry. With this system, both of
users such customer and working personnel of the
particular bank will find easy to use and able to
perform all their operations using the system. This
system enable its users to open and close the bank
account. Customers will able to withdraw and
deposit amount to their particular account.
Working personnel of particular bank will make all
the operations which are required within the
banking premises. The operation which can be
performed by bank personnel are: Adding new
customers account, modifying existing account, list
all customer details including their account
number. And also in the perspective of customers it
helps in easy of accessing and reduces time. Its user
friendly graphical mode will make its users to work
with this new system in more interactive way.
2
 Program Specification
System requirements are expressed in the software requirement
document. The SRS is the official statement of what is required of the
system developers.
Non-functional requirement:
 Reliability
 Security
 Extensibility
 Portability
 Reusability
 Compatibility
Hardware requirement:
 Processor- Intel Pentium or Amd Athlon
 Ram- 512MB or greater
 Hard Disk space-
 Compatible- Pc
Software Requirement:
 Operating system-Windows XP or later ,Linux, OS x
 Borland C or Turbo C++
3
 Description
This project makes use of some of the concepts of the OOPS and data
file handling mechanism. These are as follow:-
1. Header files-The header files in C++ library helps to
access data type function prototype, definitions for library
functions. The header files included in this program are:
include<iostream.h>
include<conio.h>
include<cctype.h>
include<iomaniph.n>
include<stdlib.h>
2. Classes- It is a collection object, where objects having its
own attributes and functions. The class Created is:-
class account
3. Functions – These are individual piece of code or modules
which can be used anywhere in the program by calling
them when needed. The functions can be predefined or
user defined. Some of the user defined function created in
the program are:-
void create_account()
void show_account()
void modify()
void dep()
void draw()
void report()
int retacno()
int retdeposit()
4
char retype()
void write_account()
void display_sp()
void modify_account()
void delete_account()
void display_all()
void deposit_withdraw()
void intro()
4. Switch Case: It is the multiple branch selection
statement. The selection statement successively tests the
value of an expression against a list of integer or
character constant.
5. IF and ELSE statement: ‘IF’ statement test a particular
statement if the condition evaluates to true i.e., a set of
statements are executed if the condition is true. If the
condition is not true i.e., is false then the set of statement
in ‘else’ condition is executed. Both the ‘if’ and ‘else’
statement are never executed simultaneously.
6. Fstream: The fstream library predefines a set of operation
for handling file related to input and output.
infile
outfile
system(‘cls’)
ostream
5
 Coding
#include<fstream.h>
#include<ctype.h>
#include<iomanip.h>
#include<conio.h>
#include<stdio.h>
//<><><><><><><><><><><><><><><><><><><><><><><><><><><>
// Class used in the program
//<><><><><><><><><><><><><><><><><><><><><><><><><><><>
class account
{
int acno;
char name[50];
int deposit;
char type;
public:
void create_account(); //function to get data from user
void show_account(); //function to show data on screen
void modify(); //function to get new data from user
void dep(int); //function to accept amount and add to balance amount
void draw(int); //function to accept amount and subtract from balance
void report(); //function to show data in tabular format
int retacno(); //function to return account number
int retdeposit(); //function to return balance amount
char rettype(); //function to return type of account
6
}; //class ends here
void account::create_account()
{
cout<<"tttWelcome... Create your New Account n";
cout<<"nEnter The account No.";
cin>>acno;
cout<<"nnEnter 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<<"nnnAccount Created..";
}
void account::show_account()
{
cout<<"nAccount No. : "<<acno;
cout<<"nAccount Holder Name : ";
cout<<name;
cout<<"nType of Account : "<<type;
cout<<"nBalance amount : "<<deposit;
}
void account::modify()
7
{
cout<<"nThe account No."<<acno;
cout<<"nnEnter The Name of The account Holder : ";
gets(name);
cout<<"nEnter Type of The account (C/S) : ";
cin>>type;
type=toupper(type);
cout<<"nEnter The amount : ";
cin>>deposit;
}
void account::dep(int x)
{
deposit+=x;
}
void account::draw(int x)
{
deposit-=x;
}
void account::report()
{
cout<<acno<<setw(10)<<" "<<name<<setw(10)<<"
"<<type<<setw(6)<<deposit<<endl;
}
int account::retacno()
8
{
return acno;
}
int account::retdeposit()
{
return deposit;
}
char account::rettype()
{
return type;
}
//<><><><><><><><><><><><><><><><><><><><><><><><><><><>
// Function declaration
//<><><><><><><><><><><><><><><><><><><><><><><><><><><>
void write_account(); //function to write record in binary file
void display_sp(int); //function to display account details given by user
void modify_account(int); //function to modify record of file
void delete_account(int); //function to delete record of file
void display_all(); //function to display all account details
void deposit_withdraw(int, int); // function to deposit/withdraw amount
void intro(); //introductory screen function
9
//<><><><><><><><><><><><><><><><><><><><><><><><><><><>
// The main function of program
//<><><><><><><><><><><><><><><><><><><><><><><><><><><>
int main()
{
char ch;
int num;
clrscr();
intro();
do
{
clrscr();
cout<<"nnntMAIN MENU";
cout<<"nnt01. NEW ACCOUNT";
cout<<"nnt02. DEPOSIT AMOUNT";
cout<<"nnt03. WITHDRAW AMOUNT";
cout<<"nnt04. BALANCE ENQUIRY";
cout<<"nnt05. ALL ACCOUNT HOLDER LIST";
cout<<"nnt06. CLOSE AN ACCOUNT";
cout<<"nnt07. MODIFY AN ACCOUNT";
cout<<"nnt08. EXIT";
cout<<"nntSelect Your Option (1-8) ";
cin>>ch;
clrscr();
switch(ch)
{
case '1':
write_account();
10
break;
case '2':
cout<<"nntEnter The account No. : "; cin>>num;
deposit_withdraw(num, 1);
break;
case '3':
cout<<"nntEnter The account No. : "; cin>>num;
deposit_withdraw(num, 2);
break;
case '4':
cout<<"nntEnter The account No. : "; cin>>num;
display_sp(num);
break;
case '5':
display_all();
break;
case '6':
cout<<"nntEnter The account No. : "; cin>>num;
delete_account(num);
break;
case '7':
cout<<"nntEnter The account No. : "; cin>>num;
modify_account(num);
break;
case '8':
cout<<"nntThanks for using bank managemnt system n n";
cout<<"nttttsee";
cout<<"nntttttyou ";
11
cout<<"nnnttttttsoon";
break;
default :cout<<"a";
}
getch();
}while(ch!='8');
return 0;
}
//<><><><><><><><><><><><><><><><><><><><><><><><><><><>
// Function to write in file
//<><><><><><><><><><><><><><><><><><><><><><><><><><><>
void write_account()
{
account ac;
ofstream outFile;
outFile.open("account.dat",ios::binary|ios::app);
ac.create_account();
outFile.write((char *) &ac, sizeof(account));
outFile.close();
}
//<><><><><><><><><><><><><><><><><><><><><><><><><><>
// Function to read specific record from file
//<><><><><><><><><><><><><><><><><><><><><><><><><><><>
void display_sp(int n)
{
12
account ac;
int flag=0;
ifstream inFile;
inFile.open("account.dat",ios::binary);
if(!inFile)
{
cout<<"File could not be open !! Press any Key...";
return;
}
cout<<"nBALANCE DETAILSn";
while(inFile.read((char *) &ac, sizeof(account)))
{
if(ac.retacno()==n)
{
ac.show_account();
flag=1;
}
}
inFile.close();
if(flag==0)
cout<<"nnAccount number does not exist";
}
//<><><><><><><><><><><><><><><><><><><><><><><><><><><>
// Function to modify record of file
//<><><><><><><><><><><><><><><><><><><><><><><><><><><>
13
void modify_account(int n)
{
int found=0;
account ac;
fstream File;
File.open("account.dat",ios::binary|ios::in|ios::out);
if(!File)
{
cout<<"File could not be open !! Press any Key...";
return;
}
while(File.read((char *) &ac, sizeof(account)) && found==0)
{
if(ac.retacno()==n)
{
ac.show_account();
cout<<"nnEnter The New Details of account"<<endl;
ac.modify();
int pos=(-1)*sizeof(account);
File.seekp(pos,ios::cur);
File.write((char *) &ac, sizeof(account));
cout<<"nnt Record Updated";
found=1;
}
}
File.close();
if(found==0)
14
cout<<"nn Record Not Found ";
}
//<><><><><><><><><><><><><><><><><><><><><><><><><><><>
// Function to delete record of file
//<><><><><><><><><><><><><><><><><><><><><><><><><><><>
void delete_account(int n)
{
account ac;
ifstream inFile;
ofstream outFile;
inFile.open("account.dat",ios::binary);
if(!inFile)
{
cout<<"File could not be open !! Press any Key...";
return;
}
outFile.open("Temp.dat",ios::binary);
inFile.seekg(0,ios::beg);
while(inFile.read((char *) &ac, sizeof(account)))
{
if(ac.retacno()!=n)
{
outFile.write((char *) &ac, sizeof(account));
}
15
}
inFile.close();
outFile.close();
remove("account.dat");
rename("Temp.dat","account.dat");
cout<<"nntRecord Deleted ..";
cout<<”n n n Your account was successfully deleted”;
}
//<><><><><><><><><><><><><><><><><><><><><><><><><><><>
// Function to display all accounts deposit list
//<><><><><><><><><><><><><><><><><><><><><><><><><><><>
void display_all()
{
account ac;
ifstream inFile;
inFile.open("account.dat",ios::binary);
if(!inFile)
{
cout<<"File could not be open !! Press any Key...";
return;
}
cout<<"nnttACCOUNT HOLDER LISTnn";
cout<<"===============================================n";
cout<<"A/c no. NAME Type Balancen";
cout<<"===============================================n";
while(inFile.read((char *) &ac, sizeof(account)))
16
{
ac.report();
}
inFile.close();
}
//<><><><><><><><><><><><><><><><><><><><><><><><><><><>
// function to deposit and withdraw amounts
//<><><><><><><><><><><><><><><><><><><><><><><><><><><>
void deposit_withdraw(int n, int option)
{
int amt;
int found=0;
account ac;
fstream File;
File.open("account.dat", ios::binary|ios::in|ios::out);
if(!File)
{
cout<<"File could not be open !! Press any Key...";
return;
}
while(File.read((char *) &ac, sizeof(account)) && found==0)
{
if(ac.retacno()==n)
{
ac.show_account();
17
if(option==1)
{
cout<<"nntTO DEPOSITE AMOUNT ";
cout<<"nnEnter The amount to be deposited";
cin>>amt;
ac.dep(amt);
}
if(option==2)
{
cout<<"nntTO WITHDRAW AMOUNT ";
cout<<"nnEnter 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);
File.seekp(pos,ios::cur);
File.write((char *) &ac, sizeof(account));
cout<<"nnt Record Updated";
found=1;
}
}
File.close();
if(found==0)
18
cout<<"nn Record Not Found ";
}
//<><><><><><><><><><><><><><><><><><><><><><><><><><><>
// Introduction function
//<><><><><><><><><><><><><><><><><><><><><><><><><><><>
void intro()
{
cout<<"n";
cout<<"nntttt BANK ";
cout<<"nntttt MANAGEMENT ";
cout<<"nn tttt SYSTEM";
cout<<"nnnnnn Press any key to continue:";
cout<<"nnnnnnnnn";
cout<<"Done by Pranoy.S.B Xii-D Alwin Memorial Public School ";
getch();
}
19
 Output
20
Creating new account
Depositig amount
21
Withdrawing amount
Balance enquiry
22
Account holder list
Modifying exisiting account
23
Deleting the account
Exit menu
19
 Output
20
Creating new account
Depositig amount
21
Withdrawing amount
Balance enquiry
22
Account holder list
Modifying exisiting account
23
Deleting the account
Exit menu
24
Future Enhancement
In any project, though present satisfaction is important
but also it is equally important to see and visualize the
future scope. The project which is developed now may
be need to undergo some changes in future in order to
match up the technology prevailing that time, thus
change due to development in technology are advisable.
Some of the future scope are:-
1. One can extend this project with any of the new
policies launched by the banks.
2. The transactions are in off-line mode, hence can
make this project to support on-line transactions
depending upon the efficiency and effectiveness.
3. This project can be made more user friendly than
now.
25
Bibliography
 http://projects.icbse.com/
 www.projectgeek.com
 Sumitha Arora class XII textbook

Weitere ähnliche Inhalte

Was ist angesagt?

Presentation on java project (bank management system)
Presentation on java project (bank management system)Presentation on java project (bank management system)
Presentation on java project (bank management system)Gopal Sheel
 
"Bank management system"
"Bank management system""Bank management system"
"Bank management system"vivek kct
 
Computer science class 12 project on Super Market Billing
Computer science class 12 project on Super Market BillingComputer science class 12 project on Super Market Billing
Computer science class 12 project on Super Market BillingHarsh Kumar
 
Library Management Project (computer science) class 12
Library Management Project (computer science) class 12Library Management Project (computer science) class 12
Library Management Project (computer science) class 12RithuJ
 
54024405 project-report-banking-management-system
54024405 project-report-banking-management-system54024405 project-report-banking-management-system
54024405 project-report-banking-management-systemnancs
 
BANK MANAGEMENT INVESTIGATORY PROJECT CLASS 12TH
BANK MANAGEMENT INVESTIGATORY PROJECT CLASS 12THBANK MANAGEMENT INVESTIGATORY PROJECT CLASS 12TH
BANK MANAGEMENT INVESTIGATORY PROJECT CLASS 12THSHAJUS5
 
Hospital Management System Project
Hospital Management System ProjectHospital Management System Project
Hospital Management System ProjectSanjit Yadav
 
Bank management sy stem
Bank management sy stemBank management sy stem
Bank management sy stemTashaf Mukhtar
 
Computer science project work
Computer science project workComputer science project work
Computer science project workrahulchamp2345
 
Banking management system
Banking management systemBanking management system
Banking management systemHome
 
documentation on bank management system
documentation on bank management systemdocumentation on bank management system
documentation on bank management systemUnsa Jawaid
 
SYNOPSIS ON BANK MANAGEMENT SYSTEM
SYNOPSIS ON BANK MANAGEMENT SYSTEMSYNOPSIS ON BANK MANAGEMENT SYSTEM
SYNOPSIS ON BANK MANAGEMENT SYSTEMNitish Xavier Tirkey
 
Computer science project on Online Banking System class 12
Computer science project on Online Banking System class 12Computer science project on Online Banking System class 12
Computer science project on Online Banking System class 12OmRanjan2
 
Employee Management (CS Project for 12th CBSE)
Employee Management (CS Project for 12th CBSE)Employee Management (CS Project for 12th CBSE)
Employee Management (CS Project for 12th CBSE)PiyushKashyap54
 
Computer science Project for class 11th and 12th(library management system)
Computer science Project for class 11th and 12th(library management system)Computer science Project for class 11th and 12th(library management system)
Computer science Project for class 11th and 12th(library management system)lokesh meena
 
Computer project final for class 12 Students
Computer project final for class 12 StudentsComputer project final for class 12 Students
Computer project final for class 12 StudentsShahban Ali
 
computer science with python project for class 12 cbse
computer science with python project for class 12 cbsecomputer science with python project for class 12 cbse
computer science with python project for class 12 cbsemanishjain598
 

Was ist angesagt? (20)

Bank Management System
Bank Management SystemBank Management System
Bank Management System
 
Presentation on java project (bank management system)
Presentation on java project (bank management system)Presentation on java project (bank management system)
Presentation on java project (bank management system)
 
Bank Management System
Bank Management SystemBank Management System
Bank Management System
 
"Bank management system"
"Bank management system""Bank management system"
"Bank management system"
 
Computer science class 12 project on Super Market Billing
Computer science class 12 project on Super Market BillingComputer science class 12 project on Super Market Billing
Computer science class 12 project on Super Market Billing
 
Library Management Project (computer science) class 12
Library Management Project (computer science) class 12Library Management Project (computer science) class 12
Library Management Project (computer science) class 12
 
54024405 project-report-banking-management-system
54024405 project-report-banking-management-system54024405 project-report-banking-management-system
54024405 project-report-banking-management-system
 
BANK MANAGEMENT INVESTIGATORY PROJECT CLASS 12TH
BANK MANAGEMENT INVESTIGATORY PROJECT CLASS 12THBANK MANAGEMENT INVESTIGATORY PROJECT CLASS 12TH
BANK MANAGEMENT INVESTIGATORY PROJECT CLASS 12TH
 
Hospital Management System Project
Hospital Management System ProjectHospital Management System Project
Hospital Management System Project
 
Bank management sy stem
Bank management sy stemBank management sy stem
Bank management sy stem
 
Computer science project work
Computer science project workComputer science project work
Computer science project work
 
Banking management system
Banking management systemBanking management system
Banking management system
 
documentation on bank management system
documentation on bank management systemdocumentation on bank management system
documentation on bank management system
 
SYNOPSIS ON BANK MANAGEMENT SYSTEM
SYNOPSIS ON BANK MANAGEMENT SYSTEMSYNOPSIS ON BANK MANAGEMENT SYSTEM
SYNOPSIS ON BANK MANAGEMENT SYSTEM
 
Computer science project on Online Banking System class 12
Computer science project on Online Banking System class 12Computer science project on Online Banking System class 12
Computer science project on Online Banking System class 12
 
Employee Management (CS Project for 12th CBSE)
Employee Management (CS Project for 12th CBSE)Employee Management (CS Project for 12th CBSE)
Employee Management (CS Project for 12th CBSE)
 
Computer science Project for class 11th and 12th(library management system)
Computer science Project for class 11th and 12th(library management system)Computer science Project for class 11th and 12th(library management system)
Computer science Project for class 11th and 12th(library management system)
 
Computer project final for class 12 Students
Computer project final for class 12 StudentsComputer project final for class 12 Students
Computer project final for class 12 Students
 
BANKING SYSTEM
BANKING SYSTEMBANKING SYSTEM
BANKING SYSTEM
 
computer science with python project for class 12 cbse
computer science with python project for class 12 cbsecomputer science with python project for class 12 cbse
computer science with python project for class 12 cbse
 

Ähnlich wie Cbse computer science (c++) class 12 board project bank managment system

Cbsecomputersciencecclass12boardproject bankmanagmentsystem-180703065625-conv...
Cbsecomputersciencecclass12boardproject bankmanagmentsystem-180703065625-conv...Cbsecomputersciencecclass12boardproject bankmanagmentsystem-180703065625-conv...
Cbsecomputersciencecclass12boardproject bankmanagmentsystem-180703065625-conv...sriram sarwan
 
PPS.pptx this ppt is for coding your problems and to do ppt for new students ...
PPS.pptx this ppt is for coding your problems and to do ppt for new students ...PPS.pptx this ppt is for coding your problems and to do ppt for new students ...
PPS.pptx this ppt is for coding your problems and to do ppt for new students ...ragishettyanilkumar
 
Software Engineering Testing & Research
Software Engineering Testing & Research Software Engineering Testing & Research
Software Engineering Testing & Research Vrushali Lanjewar
 
Micro services from scratch - Part 1
Micro services from scratch - Part 1Micro services from scratch - Part 1
Micro services from scratch - Part 1Azrul MADISA
 
Dependency injection - the right way
Dependency injection - the right wayDependency injection - the right way
Dependency injection - the right wayThibaud Desodt
 
CSE LAB PRESENTATION.pptx
CSE LAB PRESENTATION.pptxCSE LAB PRESENTATION.pptx
CSE LAB PRESENTATION.pptxMiftakharulAlam
 
54039271 atm-project-report
54039271 atm-project-report54039271 atm-project-report
54039271 atm-project-reportKalpana Reddy
 
Can you please provide the full client and server GUI codes using my.pdf
Can you please provide the full client and server GUI codes using my.pdfCan you please provide the full client and server GUI codes using my.pdf
Can you please provide the full client and server GUI codes using my.pdfsales88
 
22598435 project-on-banking-system-in-mis-pdf
22598435 project-on-banking-system-in-mis-pdf22598435 project-on-banking-system-in-mis-pdf
22598435 project-on-banking-system-in-mis-pdfDeepak Malusare
 
22598435 project-on-banking-system-in-mis-pdf(1)
22598435 project-on-banking-system-in-mis-pdf(1)22598435 project-on-banking-system-in-mis-pdf(1)
22598435 project-on-banking-system-in-mis-pdf(1)Sruthi S
 
Customer bank account assignment detail report
Customer bank account assignment detail reportCustomer bank account assignment detail report
Customer bank account assignment detail reportlingaswamy vallapu
 
Documentation
DocumentationDocumentation
DocumentationKalyan A
 

Ähnlich wie Cbse computer science (c++) class 12 board project bank managment system (20)

Cbsecomputersciencecclass12boardproject bankmanagmentsystem-180703065625-conv...
Cbsecomputersciencecclass12boardproject bankmanagmentsystem-180703065625-conv...Cbsecomputersciencecclass12boardproject bankmanagmentsystem-180703065625-conv...
Cbsecomputersciencecclass12boardproject bankmanagmentsystem-180703065625-conv...
 
Distributed banking system using rmi project
Distributed banking system using rmi projectDistributed banking system using rmi project
Distributed banking system using rmi project
 
2nd--mac ver
2nd--mac ver2nd--mac ver
2nd--mac ver
 
C programming
C programmingC programming
C programming
 
ASSIGNMENT
ASSIGNMENT ASSIGNMENT
ASSIGNMENT
 
PPS.pptx this ppt is for coding your problems and to do ppt for new students ...
PPS.pptx this ppt is for coding your problems and to do ppt for new students ...PPS.pptx this ppt is for coding your problems and to do ppt for new students ...
PPS.pptx this ppt is for coding your problems and to do ppt for new students ...
 
Software Engineering Testing & Research
Software Engineering Testing & Research Software Engineering Testing & Research
Software Engineering Testing & Research
 
Atm project
Atm projectAtm project
Atm project
 
Micro services from scratch - Part 1
Micro services from scratch - Part 1Micro services from scratch - Part 1
Micro services from scratch - Part 1
 
Dependency injection - the right way
Dependency injection - the right wayDependency injection - the right way
Dependency injection - the right way
 
Dashboard
DashboardDashboard
Dashboard
 
Dashboard Doc
Dashboard DocDashboard Doc
Dashboard Doc
 
CSE LAB PRESENTATION.pptx
CSE LAB PRESENTATION.pptxCSE LAB PRESENTATION.pptx
CSE LAB PRESENTATION.pptx
 
54039271 atm-project-report
54039271 atm-project-report54039271 atm-project-report
54039271 atm-project-report
 
Can you please provide the full client and server GUI codes using my.pdf
Can you please provide the full client and server GUI codes using my.pdfCan you please provide the full client and server GUI codes using my.pdf
Can you please provide the full client and server GUI codes using my.pdf
 
22598435 project-on-banking-system-in-mis-pdf
22598435 project-on-banking-system-in-mis-pdf22598435 project-on-banking-system-in-mis-pdf
22598435 project-on-banking-system-in-mis-pdf
 
22598435 project-on-banking-system-in-mis-pdf(1)
22598435 project-on-banking-system-in-mis-pdf(1)22598435 project-on-banking-system-in-mis-pdf(1)
22598435 project-on-banking-system-in-mis-pdf(1)
 
Customer bank account assignment detail report
Customer bank account assignment detail reportCustomer bank account assignment detail report
Customer bank account assignment detail report
 
Documentation
DocumentationDocumentation
Documentation
 
Final project (1)
Final project (1)Final project (1)
Final project (1)
 

Kürzlich hochgeladen

Grant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy ConsultingGrant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy ConsultingTechSoup
 
Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)eniolaolutunde
 
Sanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdfSanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdfsanyamsingh5019
 
The byproduct of sericulture in different industries.pptx
The byproduct of sericulture in different industries.pptxThe byproduct of sericulture in different industries.pptx
The byproduct of sericulture in different industries.pptxShobhayan Kirtania
 
Mastering the Unannounced Regulatory Inspection
Mastering the Unannounced Regulatory InspectionMastering the Unannounced Regulatory Inspection
Mastering the Unannounced Regulatory InspectionSafetyChain Software
 
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...Krashi Coaching
 
Web & Social Media Analytics Previous Year Question Paper.pdf
Web & Social Media Analytics Previous Year Question Paper.pdfWeb & Social Media Analytics Previous Year Question Paper.pdf
Web & Social Media Analytics Previous Year Question Paper.pdfJayanti Pande
 
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptxSOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptxiammrhaywood
 
CARE OF CHILD IN INCUBATOR..........pptx
CARE OF CHILD IN INCUBATOR..........pptxCARE OF CHILD IN INCUBATOR..........pptx
CARE OF CHILD IN INCUBATOR..........pptxGaneshChakor2
 
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptxPOINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptxSayali Powar
 
1029-Danh muc Sach Giao Khoa khoi 6.pdf
1029-Danh muc Sach Giao Khoa khoi  6.pdf1029-Danh muc Sach Giao Khoa khoi  6.pdf
1029-Danh muc Sach Giao Khoa khoi 6.pdfQucHHunhnh
 
Nutritional Needs Presentation - HLTH 104
Nutritional Needs Presentation - HLTH 104Nutritional Needs Presentation - HLTH 104
Nutritional Needs Presentation - HLTH 104misteraugie
 
APM Welcome, APM North West Network Conference, Synergies Across Sectors
APM Welcome, APM North West Network Conference, Synergies Across SectorsAPM Welcome, APM North West Network Conference, Synergies Across Sectors
APM Welcome, APM North West Network Conference, Synergies Across SectorsAssociation for Project Management
 
mini mental status format.docx
mini    mental       status     format.docxmini    mental       status     format.docx
mini mental status format.docxPoojaSen20
 
Z Score,T Score, Percential Rank and Box Plot Graph
Z Score,T Score, Percential Rank and Box Plot GraphZ Score,T Score, Percential Rank and Box Plot Graph
Z Score,T Score, Percential Rank and Box Plot GraphThiyagu K
 
JAPAN: ORGANISATION OF PMDA, PHARMACEUTICAL LAWS & REGULATIONS, TYPES OF REGI...
JAPAN: ORGANISATION OF PMDA, PHARMACEUTICAL LAWS & REGULATIONS, TYPES OF REGI...JAPAN: ORGANISATION OF PMDA, PHARMACEUTICAL LAWS & REGULATIONS, TYPES OF REGI...
JAPAN: ORGANISATION OF PMDA, PHARMACEUTICAL LAWS & REGULATIONS, TYPES OF REGI...anjaliyadav012327
 
Q4-W6-Restating Informational Text Grade 3
Q4-W6-Restating Informational Text Grade 3Q4-W6-Restating Informational Text Grade 3
Q4-W6-Restating Informational Text Grade 3JemimahLaneBuaron
 
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...EduSkills OECD
 
Paris 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activityParis 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activityGeoBlogs
 

Kürzlich hochgeladen (20)

Grant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy ConsultingGrant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy Consulting
 
Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)
 
Sanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdfSanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdf
 
The byproduct of sericulture in different industries.pptx
The byproduct of sericulture in different industries.pptxThe byproduct of sericulture in different industries.pptx
The byproduct of sericulture in different industries.pptx
 
Código Creativo y Arte de Software | Unidad 1
Código Creativo y Arte de Software | Unidad 1Código Creativo y Arte de Software | Unidad 1
Código Creativo y Arte de Software | Unidad 1
 
Mastering the Unannounced Regulatory Inspection
Mastering the Unannounced Regulatory InspectionMastering the Unannounced Regulatory Inspection
Mastering the Unannounced Regulatory Inspection
 
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
 
Web & Social Media Analytics Previous Year Question Paper.pdf
Web & Social Media Analytics Previous Year Question Paper.pdfWeb & Social Media Analytics Previous Year Question Paper.pdf
Web & Social Media Analytics Previous Year Question Paper.pdf
 
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptxSOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
 
CARE OF CHILD IN INCUBATOR..........pptx
CARE OF CHILD IN INCUBATOR..........pptxCARE OF CHILD IN INCUBATOR..........pptx
CARE OF CHILD IN INCUBATOR..........pptx
 
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptxPOINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
 
1029-Danh muc Sach Giao Khoa khoi 6.pdf
1029-Danh muc Sach Giao Khoa khoi  6.pdf1029-Danh muc Sach Giao Khoa khoi  6.pdf
1029-Danh muc Sach Giao Khoa khoi 6.pdf
 
Nutritional Needs Presentation - HLTH 104
Nutritional Needs Presentation - HLTH 104Nutritional Needs Presentation - HLTH 104
Nutritional Needs Presentation - HLTH 104
 
APM Welcome, APM North West Network Conference, Synergies Across Sectors
APM Welcome, APM North West Network Conference, Synergies Across SectorsAPM Welcome, APM North West Network Conference, Synergies Across Sectors
APM Welcome, APM North West Network Conference, Synergies Across Sectors
 
mini mental status format.docx
mini    mental       status     format.docxmini    mental       status     format.docx
mini mental status format.docx
 
Z Score,T Score, Percential Rank and Box Plot Graph
Z Score,T Score, Percential Rank and Box Plot GraphZ Score,T Score, Percential Rank and Box Plot Graph
Z Score,T Score, Percential Rank and Box Plot Graph
 
JAPAN: ORGANISATION OF PMDA, PHARMACEUTICAL LAWS & REGULATIONS, TYPES OF REGI...
JAPAN: ORGANISATION OF PMDA, PHARMACEUTICAL LAWS & REGULATIONS, TYPES OF REGI...JAPAN: ORGANISATION OF PMDA, PHARMACEUTICAL LAWS & REGULATIONS, TYPES OF REGI...
JAPAN: ORGANISATION OF PMDA, PHARMACEUTICAL LAWS & REGULATIONS, TYPES OF REGI...
 
Q4-W6-Restating Informational Text Grade 3
Q4-W6-Restating Informational Text Grade 3Q4-W6-Restating Informational Text Grade 3
Q4-W6-Restating Informational Text Grade 3
 
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
 
Paris 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activityParis 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activity
 

Cbse computer science (c++) class 12 board project bank managment system

  • 2. Index  Abstract 01  Program specification 02  Description 03  Program Coding 05  Output 19  Future enhancement 24  Bibliography 25
  • 3. 1  Abstract The main objectives of this banking system which is developed in C++ is to provide a flexible solution for banking industry. With this system, both of users such customer and working personnel of the particular bank will find easy to use and able to perform all their operations using the system. This system enable its users to open and close the bank account. Customers will able to withdraw and deposit amount to their particular account. Working personnel of particular bank will make all the operations which are required within the banking premises. The operation which can be performed by bank personnel are: Adding new customers account, modifying existing account, list all customer details including their account number. And also in the perspective of customers it helps in easy of accessing and reduces time. Its user friendly graphical mode will make its users to work with this new system in more interactive way.
  • 4. 2  Program Specification System requirements are expressed in the software requirement document. The SRS is the official statement of what is required of the system developers. Non-functional requirement:  Reliability  Security  Extensibility  Portability  Reusability  Compatibility Hardware requirement:  Processor- Intel Pentium or Amd Athlon  Ram- 512MB or greater  Hard Disk space-  Compatible- Pc Software Requirement:  Operating system-Windows XP or later ,Linux, OS x  Borland C or Turbo C++
  • 5. 3  Description This project makes use of some of the concepts of the OOPS and data file handling mechanism. These are as follow:- 1. Header files-The header files in C++ library helps to access data type function prototype, definitions for library functions. The header files included in this program are: include<iostream.h> include<conio.h> include<cctype.h> include<iomaniph.n> include<stdlib.h> 2. Classes- It is a collection object, where objects having its own attributes and functions. The class Created is:- class account 3. Functions – These are individual piece of code or modules which can be used anywhere in the program by calling them when needed. The functions can be predefined or user defined. Some of the user defined function created in the program are:- void create_account() void show_account() void modify() void dep() void draw() void report() int retacno() int retdeposit()
  • 6. 4 char retype() void write_account() void display_sp() void modify_account() void delete_account() void display_all() void deposit_withdraw() void intro() 4. Switch Case: It is the multiple branch selection statement. The selection statement successively tests the value of an expression against a list of integer or character constant. 5. IF and ELSE statement: ‘IF’ statement test a particular statement if the condition evaluates to true i.e., a set of statements are executed if the condition is true. If the condition is not true i.e., is false then the set of statement in ‘else’ condition is executed. Both the ‘if’ and ‘else’ statement are never executed simultaneously. 6. Fstream: The fstream library predefines a set of operation for handling file related to input and output. infile outfile system(‘cls’) ostream
  • 7. 5  Coding #include<fstream.h> #include<ctype.h> #include<iomanip.h> #include<conio.h> #include<stdio.h> //<><><><><><><><><><><><><><><><><><><><><><><><><><><> // Class used in the program //<><><><><><><><><><><><><><><><><><><><><><><><><><><> class account { int acno; char name[50]; int deposit; char type; public: void create_account(); //function to get data from user void show_account(); //function to show data on screen void modify(); //function to get new data from user void dep(int); //function to accept amount and add to balance amount void draw(int); //function to accept amount and subtract from balance void report(); //function to show data in tabular format int retacno(); //function to return account number int retdeposit(); //function to return balance amount char rettype(); //function to return type of account
  • 8. 6 }; //class ends here void account::create_account() { cout<<"tttWelcome... Create your New Account n"; cout<<"nEnter The account No."; cin>>acno; cout<<"nnEnter 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<<"nnnAccount Created.."; } void account::show_account() { cout<<"nAccount No. : "<<acno; cout<<"nAccount Holder Name : "; cout<<name; cout<<"nType of Account : "<<type; cout<<"nBalance amount : "<<deposit; } void account::modify()
  • 9. 7 { cout<<"nThe account No."<<acno; cout<<"nnEnter The Name of The account Holder : "; gets(name); cout<<"nEnter Type of The account (C/S) : "; cin>>type; type=toupper(type); cout<<"nEnter The amount : "; cin>>deposit; } void account::dep(int x) { deposit+=x; } void account::draw(int x) { deposit-=x; } void account::report() { cout<<acno<<setw(10)<<" "<<name<<setw(10)<<" "<<type<<setw(6)<<deposit<<endl; } int account::retacno()
  • 10. 8 { return acno; } int account::retdeposit() { return deposit; } char account::rettype() { return type; } //<><><><><><><><><><><><><><><><><><><><><><><><><><><> // Function declaration //<><><><><><><><><><><><><><><><><><><><><><><><><><><> void write_account(); //function to write record in binary file void display_sp(int); //function to display account details given by user void modify_account(int); //function to modify record of file void delete_account(int); //function to delete record of file void display_all(); //function to display all account details void deposit_withdraw(int, int); // function to deposit/withdraw amount void intro(); //introductory screen function
  • 11. 9 //<><><><><><><><><><><><><><><><><><><><><><><><><><><> // The main function of program //<><><><><><><><><><><><><><><><><><><><><><><><><><><> int main() { char ch; int num; clrscr(); intro(); do { clrscr(); cout<<"nnntMAIN MENU"; cout<<"nnt01. NEW ACCOUNT"; cout<<"nnt02. DEPOSIT AMOUNT"; cout<<"nnt03. WITHDRAW AMOUNT"; cout<<"nnt04. BALANCE ENQUIRY"; cout<<"nnt05. ALL ACCOUNT HOLDER LIST"; cout<<"nnt06. CLOSE AN ACCOUNT"; cout<<"nnt07. MODIFY AN ACCOUNT"; cout<<"nnt08. EXIT"; cout<<"nntSelect Your Option (1-8) "; cin>>ch; clrscr(); switch(ch) { case '1': write_account();
  • 12. 10 break; case '2': cout<<"nntEnter The account No. : "; cin>>num; deposit_withdraw(num, 1); break; case '3': cout<<"nntEnter The account No. : "; cin>>num; deposit_withdraw(num, 2); break; case '4': cout<<"nntEnter The account No. : "; cin>>num; display_sp(num); break; case '5': display_all(); break; case '6': cout<<"nntEnter The account No. : "; cin>>num; delete_account(num); break; case '7': cout<<"nntEnter The account No. : "; cin>>num; modify_account(num); break; case '8': cout<<"nntThanks for using bank managemnt system n n"; cout<<"nttttsee"; cout<<"nntttttyou ";
  • 13. 11 cout<<"nnnttttttsoon"; break; default :cout<<"a"; } getch(); }while(ch!='8'); return 0; } //<><><><><><><><><><><><><><><><><><><><><><><><><><><> // Function to write in file //<><><><><><><><><><><><><><><><><><><><><><><><><><><> void write_account() { account ac; ofstream outFile; outFile.open("account.dat",ios::binary|ios::app); ac.create_account(); outFile.write((char *) &ac, sizeof(account)); outFile.close(); } //<><><><><><><><><><><><><><><><><><><><><><><><><><> // Function to read specific record from file //<><><><><><><><><><><><><><><><><><><><><><><><><><><> void display_sp(int n) {
  • 14. 12 account ac; int flag=0; ifstream inFile; inFile.open("account.dat",ios::binary); if(!inFile) { cout<<"File could not be open !! Press any Key..."; return; } cout<<"nBALANCE DETAILSn"; while(inFile.read((char *) &ac, sizeof(account))) { if(ac.retacno()==n) { ac.show_account(); flag=1; } } inFile.close(); if(flag==0) cout<<"nnAccount number does not exist"; } //<><><><><><><><><><><><><><><><><><><><><><><><><><><> // Function to modify record of file //<><><><><><><><><><><><><><><><><><><><><><><><><><><>
  • 15. 13 void modify_account(int n) { int found=0; account ac; fstream File; File.open("account.dat",ios::binary|ios::in|ios::out); if(!File) { cout<<"File could not be open !! Press any Key..."; return; } while(File.read((char *) &ac, sizeof(account)) && found==0) { if(ac.retacno()==n) { ac.show_account(); cout<<"nnEnter The New Details of account"<<endl; ac.modify(); int pos=(-1)*sizeof(account); File.seekp(pos,ios::cur); File.write((char *) &ac, sizeof(account)); cout<<"nnt Record Updated"; found=1; } } File.close(); if(found==0)
  • 16. 14 cout<<"nn Record Not Found "; } //<><><><><><><><><><><><><><><><><><><><><><><><><><><> // Function to delete record of file //<><><><><><><><><><><><><><><><><><><><><><><><><><><> void delete_account(int n) { account ac; ifstream inFile; ofstream outFile; inFile.open("account.dat",ios::binary); if(!inFile) { cout<<"File could not be open !! Press any Key..."; return; } outFile.open("Temp.dat",ios::binary); inFile.seekg(0,ios::beg); while(inFile.read((char *) &ac, sizeof(account))) { if(ac.retacno()!=n) { outFile.write((char *) &ac, sizeof(account)); }
  • 17. 15 } inFile.close(); outFile.close(); remove("account.dat"); rename("Temp.dat","account.dat"); cout<<"nntRecord Deleted .."; cout<<”n n n Your account was successfully deleted”; } //<><><><><><><><><><><><><><><><><><><><><><><><><><><> // Function to display all accounts deposit list //<><><><><><><><><><><><><><><><><><><><><><><><><><><> void display_all() { account ac; ifstream inFile; inFile.open("account.dat",ios::binary); if(!inFile) { cout<<"File could not be open !! Press any Key..."; return; } cout<<"nnttACCOUNT HOLDER LISTnn"; cout<<"===============================================n"; cout<<"A/c no. NAME Type Balancen"; cout<<"===============================================n"; while(inFile.read((char *) &ac, sizeof(account)))
  • 18. 16 { ac.report(); } inFile.close(); } //<><><><><><><><><><><><><><><><><><><><><><><><><><><> // function to deposit and withdraw amounts //<><><><><><><><><><><><><><><><><><><><><><><><><><><> void deposit_withdraw(int n, int option) { int amt; int found=0; account ac; fstream File; File.open("account.dat", ios::binary|ios::in|ios::out); if(!File) { cout<<"File could not be open !! Press any Key..."; return; } while(File.read((char *) &ac, sizeof(account)) && found==0) { if(ac.retacno()==n) { ac.show_account();
  • 19. 17 if(option==1) { cout<<"nntTO DEPOSITE AMOUNT "; cout<<"nnEnter The amount to be deposited"; cin>>amt; ac.dep(amt); } if(option==2) { cout<<"nntTO WITHDRAW AMOUNT "; cout<<"nnEnter 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); File.seekp(pos,ios::cur); File.write((char *) &ac, sizeof(account)); cout<<"nnt Record Updated"; found=1; } } File.close(); if(found==0)
  • 20. 18 cout<<"nn Record Not Found "; } //<><><><><><><><><><><><><><><><><><><><><><><><><><><> // Introduction function //<><><><><><><><><><><><><><><><><><><><><><><><><><><> void intro() { cout<<"n"; cout<<"nntttt BANK "; cout<<"nntttt MANAGEMENT "; cout<<"nn tttt SYSTEM"; cout<<"nnnnnn Press any key to continue:"; cout<<"nnnnnnnnn"; cout<<"Done by Pranoy.S.B Xii-D Alwin Memorial Public School "; getch(); }
  • 24. 22 Account holder list Modifying exisiting account
  • 29. 22 Account holder list Modifying exisiting account
  • 31. 24 Future Enhancement In any project, though present satisfaction is important but also it is equally important to see and visualize the future scope. The project which is developed now may be need to undergo some changes in future in order to match up the technology prevailing that time, thus change due to development in technology are advisable. Some of the future scope are:- 1. One can extend this project with any of the new policies launched by the banks. 2. The transactions are in off-line mode, hence can make this project to support on-line transactions depending upon the efficiency and effectiveness. 3. This project can be made more user friendly than now.