You are on page 1of 59

BANKING MANAGEMENT SYSTEM

1.
Here we represent BANKING MANAGEMENT SYSTEM for creating a account , depositing , withdrawl and viewing all accounts informantion .

1.1) PURPOSE
Our software will perform and fulfill all the tasks that any customer would desire. Our motto is to develop a software program for managing the entire bank process related to customer accounts, employee accounts and to keep each every track about their property and their various transaction processes efficiently. Hereby, our main objective is the customers satisfaction considering todays faster world.

1.2) SCOPE
A Computerized visual Banking System will be : Fast Effective Safe User Friendly This software has the following scope :

Customer :
A customer can enquire about account details and deposit , withdraw money . This system provides a registration mechanism to register account for a new customer or create another account for a existing customer . It provides mechanism for quering about the balance left in the account .

Admin :
It also provides mechanism for the admin to keep a track of the records of the customer

References
1.) Java The Complete Reference .

BANKING MANAGEMENT SYSTEM 2.) Learn Programming in Java . 3.) Java Tutorials . 4.) Banking Management System Data .

1.3) Specific Requirement


USER INTERFACE
1. Welcome To Banking Management System . 2. BANKING_FACILITIES . 3. LOGIN FORM FOR CREATING A NEW ACCOUNT . 4. LOGIN FORM FOR TRANSACTION. 5. LOGIN FORM FOR TRANSACTION. 6. ACCOUNT OPENING FORM 7. TRANSACTION FORM 8. CHECK BALANCE FORM 9. CASH DEPOSIT FORM 10 . VIEW ALL ACCOUNT FORM 11 . HELP FORM 12 . CASH WITHDRAWL FORM .

HARDWARE INTERFACE
This software can be made to interact with specific hardware if required so. Screen formats of the software can be set according to user requirement basically . Input Device Keyboard Mouse Output Device Monitor System Requirements: Ram 256 Mb or above . Display super VGA or above . Hard Disk 1.5GB Installation . 2GB MSDN Library documentation .

SOFTWARE INTERFACE

BANKING MANAGEMENT SYSTEM Java Development Kit (JDK) . Java Runtime Environment . Windows XP or higher . Rational Rose for DFDs and all other cases

1.4) Design Constraints


Security :
Admin can access , all the data base and authorize other member to access database and also maintain database .

1.5) BANK MANAGEMENT SYSTEM


ABSTRACT:
Requirements definition and management is recognized as a necessary step in the delivery of successful system s and software projects, discipline is also required by standards, regulations, and quality improvement initiatives. Creating and managing requirements is a challenge of IT, systems and product development projects or indeed for any activity where you have to manage a contractual relationship. Organization need to effectively define and manage requirements to ensure they are meeting needs of the customer, while proving compliance and staying on the schedule and within budge. The impact of a poorly expressed requirement can bring a business out of compliance or even cause injury or death. Requirements definition and management is an activity that can deliver a high, fast return on investment. The BANK MANAGEMENT SYSTEM undertaken as a project is based on relevant technologies. The main aim of this project is to develop software for bank management system. This project is to develop software for bank management system. This project has been developed to carry out the processes easily and quickly, which is not possible with the manuals systems, which are overcome by this software. This project is developed using Java language and. Hence it provides the complete solution for the current management system.

REQUIREMENT ANALYSIS:
Requirements are prone to issues of ambiguity, incompleteness, and inconsistency. Techniques such as rigorous inspection have been shown to help deal with these issues. Ambiguities, incompleteness, and inconsistencies that can be resolved in the requirements phase typically cost orders of magnitude less to correct than when these same issues are found in later stages of product development. Requirements analysis strives to address these issues.

BANKING MANAGEMENT SYSTEM 1.Take a long time to produce . 2.Begin to limit the implementation option available . 3.Are costly to produce Requirements for both the system and the software are documented and reviewed with the customer.

MODULAR DESCRIPTION:
1.Open new account 2.Close an account 3.Modify an account 4.Display an account 5.Display all records 6.Withdraw amount 7.Deposit amount 8.Exit

Module 1-Open an account:


A module new account is literally the form for the customer to open a new account. A new account is opened with the following details of the customer, with the default account number 1.Name 2.Address 3.Initial deposit amount

Module 2-Deposit:
Deposition should be done each time the customer deposits a particular amount for an account. Deposition is done in the account after the following details. 1.Account number 2.Amount to deposit

Module 3-withdrawal:
Using this withdrawal module the user can withdraw a particular amount for an account. Withdrawal can be done after getting the following details: 1.Account number 2.Amount to be withdraw

BANKING MANAGEMENT SYSTEM

Module 4-view detail of an account:


1.Account number 2.Withdraw amount 3.View account details

Using this module the user can withdraw a particular amount details. It can be done after getting the following details:

Module 5-Display all records:


This module is used to display all the records present in the corresponding file.

BANKING MANAGEMENT SYSTEM

2.) DATA FLOW DIAGRAM


A data flow diagram (DFD) is a graphical representation of the "flow" of data through an information system. DFDs can also be used for the visualization of data processing (structured design). On a DFD, data items flow from an external data source or an internal data store to an internal data store or an external data sink, via an internal process. A DFD provides no information about the timing of processes, or about whether processes will operate in sequence or in parallel. It is therefore quite different from a flowchart, which shows the flow of control through an algorithm, allowing a reader to determine what operations will be performed, in what order, and under what circumstances, but not what kinds of data will be input to and output from the system, nor where the data will come from and go to, nor where the data will be stored (all of which are shown on a DFD).

Sr. No. 1.

Name Data Flow

Notation

BANKING MANAGEMENT SYSTEM 2. Process

3.

Entity

4.

Data Store

BANKING MANAGEMENT SYSTEM

FLOW CHART

BANKING MANAGEMENT SYSTEM

ACC. NO.

ADDRES S. BALANC E.

NAME

START h as s

BANK

CUSTOMER

TRANSACTION

Don e by

CASH DEPOSIT

CASH WITHDRA WL

CHECK BALANC E

BANKING MANAGEMENT SYSTEM

3.) UNIFIED MODELING LANGUAGE


The Unified Modeling Language (UML) is used to specify, visualize, modify, construct and document the artifacts of an object-oriented software-intensive system under development. UML offers a standard way to visualize a system's architectural blueprints, including elements such as:

activities actors business processes database schemas (logical) components programming language statements reusable software components.

UML combines techniques from data modeling (entity relationship diagrams), business modeling (work flows), object modeling, and component modeling. It can be used with all processes, throughout the software development life cycle, and across different implementation technologies. UML has synthesized the notations of the Booch method, the Object-modeling technique (OMT) and Object-oriented software engineering (OOSE) by fusing them into a single, common and widely usable modeling language. UML aims to be a standard modeling language which can model concurrent and distributed systems. UML is a de facto industry standard . and is evolving under the auspices of the Object Management Group (OMG).

UML DIAGRAMS The four UML diagrams are :


1 . Use Case Diagram . 2 . Activity Diagram . 3 . Sequence Diagram . 4 . Collaboration Diagram . 5. Class Diagram 6. Interaction Diagram Diagram types : 1 . Static A . Use Case Diagram . 2 . Dynamic

BANKING MANAGEMENT SYSTEM A . Activity Diagram . B . Collaboration Diagram C . Sequence Diagram .

5.) SOFTWARE MODELING TOOLS


USE CASE DIAGRAM
A use case diagram in the Unified Modeling Language (UML) is a type of behavioral diagram defined by and created from a Use-case analysis. Its purpose is to present a graphical overview of the functionality provided by a system in terms of actors, their goals (represented as use cases), and any dependencies between those use cases. The main purpose of a use case diagram is to show what system functions are performed for which actor. Roles of the actors in the system can be depicted. Use Case diagrams are formally included in two modeling languages defined by the OMG: the Unified Modeling Language (UML) and the Systems Modeling Language (SysML).

( USE CASE DIAGRAM OF BANKING MANAGEMENT SYSTEM )

BANKING MANAGEMENT SYSTEM

CLASS DIAGRAM
In software engineering, a class diagram in the Unified Modeling Language (UML) is a type of static structure diagram that describes the structure of a system by showing the system's classes, their attributes, operations(or)methods and the relationships between the classes.

BANKING MANAGEMENT SYSTEM ( CLASS DIAGRAM )

INTERACTION DIAGRAM
Interaction Overview Diagram is one of the fourteen types of diagrams of the Unified Modeling Language (UML), which can picture a control flow with nodes that can contain interaction diagrams. The interaction overview diagram is similar to the activity diagram both visualizing a sequence of activities. The difference is that the individual activity in the interaction overview diagram is pictured as a frames, which can contain interaction - or sequence diagrams. These interaction/sequence diagrams are constructed with building blocks like: sequence, communication, interaction overview and timing diagram. The nodes in the diagram connect these sequence diagrams, which can be place in a specific order. With these elements the interaction overview diagram can be use to "deconstruct a complex scenario that would otherwise require multiple if-then-else paths to be illustrated as a single sequence diagram". Except for the activity nodes the other notation elements for interaction overview diagrams are the same as for activity diagrams, such as initial, final, decision, merge, fork and join nodes. The two new elements in the interaction overview diagrams are the "interaction occurrences" and "interaction elements".

BANKING MANAGEMENT SYSTEM


Admin Customer Accountant Database : _BindingIteratorImplBase

Creates a account for the customer Customer fill all the required info Deposits Money Updates Current Balance

Checks Balance Withdraws Amount

Updates Amount after withdrawl

ACTIVITY DIAGRAM
Activity diagrams are graphical representations of workflows of stepwise activities and actions with support for choice, iteration and concurrency. In the Unified Modeling Language, activity diagrams can be used to describe the business and operational step-bystep workflows of components in a system. An activity diagram shows the overall flow of control.

BANKING MANAGEMENT SYSTEM

Create Account + Deposit Initial Balance

Deposit Amount

Withdraw Amount

Check Balance

STATE CHART DIAGRAM


State diagrams are used to give an abstract description of the behavior of a system. This behavior is analyzed and represented in series of events, that could occur in one or more possible states. Hereby "each diagram usually represents objects of a single class and track the different states of its objects through the system".

BANKING MANAGEMENT SYSTEM State diagrams can be used to graphically represent finite state machines. This was introduced by Taylor Booth in his 1967 book "Sequential Machines and Automata Theory". Another possible representation is the State transition table.

admin log in Again enter admin username & password enter username , password

Login Failed If have no account Create Account

Login Successfull Already have an account Transaction

Deposit Amount

Withdraw Amount

View Balance

COMPONENT DIAGRAM
In the Unified Modeling Language, a component diagram depicts how components are wired together to form larger components and or software systems. They are used to illustrate the structure of arbitrarily complex systems.

BANKING MANAGEMENT SYSTEM

1: Creates Account for the Customer Customer Admin

2: Customer fills all the required informatio 6: Checks Balance

3: Deposits Money 5: Withdraws Amount 4: Updates Current Balance 7: Updates Amount after Withdrawl Accountan t

Database

6.) USER INTERFACE

BANKING MANAGEMENT SYSTEM

BANKING MANAGEMENT SYSTEM

BANKING MANAGEMENT SYSTEM

BANKING MANAGEMENT SYSTEM

BANKING MANAGEMENT SYSTEM

7.) SOURCE CODE

import java.awt.*; import java.awt.event.*; import javax.swing.*; import java.sql.*;

// coding for main page class mainpage extends JFrame implements ActionListener { JLabel l1; JLabel l2; JLabel l3; JLabel l4; JLabel l5,l6,l7,l8,l9,l10,l11; JButton b1; ImageIcon i1;

mainpage() { setLayout(null); setSize(1000,700); setBackground(Color.lightGray); setTitle("Welcome to Banking Management System"); l1=new JLabel(" PROJECT ON BANKING SYSTEM"); Font f=new Font("Times new roman",Font.BOLD,40); l1.setFont(f); l1.setBounds(120,20,900,100); l2=new JLabel("SUBMITTED BY:"); Font f1=new Font("Times new roman",Font.BOLD,18); l2.setFont(f1); l2.setBounds(50,420,200,90);

BANKING MANAGEMENT SYSTEM l3=new JLabel("Simranpreet Singh"); Font f2=new Font("Times new roman",Font.BOLD,20); l3.setFont(f2); l3.setBounds(50,450,200,90); b1=new JButton("next"); b1.setBounds(800,480,100,30); l4=new JLabel(""); Font f3=new Font("times new roman",Font.BOLD,20); l4.setFont(f3); l4.setBounds(120,450,200,90); ImageIcon i1=new ImageIcon("ghec logo.jpg"); JLabel l5=new JLabel("",i1,FlowLayout.LEFT); l5.setBounds(340,150,200,200); l6=new JLabel(""); Font f4=new Font("times new roman",Font.BOLD,20); l6.setFont(f4); l6.setBounds(200,330,1000,90); l7=new JLabel("Saurav"); Font f7=new Font("Times new roman",Font.BOLD,20); l7.setFont(f7); l7.setBounds(50,480,200,90); l8=new JLabel(""); Font f8=new Font("times new roman",Font.BOLD,20); l8.setFont(f8); l8.setBounds(120,480,200,90);

l9=new JLabel("Tejinder Singh"); Font f9=new Font("Times new roman",Font.BOLD,20); l9.setFont(f9); l9.setBounds(50,510,200,90); l10=new JLabel(""); Font f10=new Font("times new roman",Font.BOLD,20); l10.setFont(f10); l10.setBounds(120,510,200,90);

BANKING MANAGEMENT SYSTEM l11=new JLabel("Siddhant Sharma"); Font f11=new Font("Times new roman",Font.BOLD,20); l11.setFont(f11); l11.setBounds(50,540,200,90);

b1.addActionListener(this); add(l5); add(l1); add(l5); add(l6); add(l2); add(l3); add(l4); add(l7); add(l8); add(l9); add(l10); add(l11); add(b1); setVisible(true); } public void actionPerformed(ActionEvent e) { setVisible(false); facilities f=new facilities(); } public static void main(String args[]) { new mainpage(); } }

// CODING FOR FACILITIES

BANKING MANAGEMENT SYSTEM class facilities extends Frame implements ActionListener { JLabel l4; JButton b2,b3,b4,b5,b6; facilities() { setLayout(null); setSize(1000,700); setBackground(Color.lightGray); setTitle("BANKING_FACILITIES."); b2=new JButton("TRANSACTION"); transaction form b2.setBounds(60,200,280,40); Font f=new Font("arials",Font.BOLD,18); b2.setFont(f); b3=new JButton("CREATE A NEW ACCOUNT"); creating an account b3.setBounds(600,200,280,40); Font f1=new Font("arials",Font.BOLD,18); b3.setFont(f1); b4=new JButton("VIEW ALL ACCOUNTS"); viewing all accounts b4.setBounds(60,300,280,40); Font f2=new Font("arials",Font.BOLD,18); b4.setFont(f2); b5=new JButton("HELP"); b5.setBounds(600,300,280,40); Font f3=new Font("arials",Font.BOLD,18); b5.setFont(f3); b6=new JButton("QUIT"); b6.setBounds(330,390,280,40); Font f5=new Font("arials",Font.BOLD,18); b6.setFont(f5); l4=new JLabel("AVAILABLE FACILITIES"); Font f4=new Font("Times new Roman",Font.BOLD,40); l4.setFont(f4); l4.setBounds(250,50,500,50); // button for

// button for

// button for

// button for help

// button to quit

BANKING MANAGEMENT SYSTEM add(l4); add(b2); add(b3); add(b4); add(b5); add(b6); setVisible(true); b2.addActionListener(this); b3.addActionListener(this); b4.addActionListener(this); b5.addActionListener(this); b6.addActionListener(this); } public void actionPerformed(ActionEvent e) { if(e.getSource()==b2) { setVisible(false); new passwordt(); // frame for transaction form } else if(e.getSource()==b3) { setVisible(false); new passwordc(); // frame for creating a new account } else if(e.getSource()==b4) { setVisible(false); new passwordv(); } else if(e.getSource()==b5) { setVisible(false); new helpframe(); // frame for help } else if(e.getSource()==b6) // button to quit { setVisible(false); new thanksframe(); } else {} }}

BANKING MANAGEMENT SYSTEM //CODING FOR PASSWORD FOR CREATE ACCOUNT PAGE

class passwordc extends Frame implements ActionListener { JLabel l1; JLabel l2,l3,l5,l4; TextField t1; TextField t2; JButton b1; JButton b2; String ln; String pass; passwordc() { setLayout(null); setBackground(Color.lightGray); setSize(1000,700); setTitle("LOGIN FORM"); l3=new JLabel("LOGIN FORM FOR CREATING A NEW ACCOUNT"); l3.setBounds(350,90,1000,40); Font f0=new Font("arials",Font.BOLD,30); l3.setFont(f0); l4=new JLabel(""); l4.setBounds(30,70,1000,20); l5=new JLabel(" *********************************************************************** ********"); l5.setBounds(30,130,1000,20);

l1=new JLabel("Enter the login name"); l1.setBounds(200,200,1000,40); Font f=new Font("arials",Font.BOLD,20); l1.setFont(f); t1=new TextField(20); t1.setBounds(500,200,100,25); // textbox for login

BANKING MANAGEMENT SYSTEM l2=new JLabel("Enter the password"); l2.setBounds(200,250,1000,40); Font f1=new Font("arials",Font.BOLD,20); l2.setFont(f1); t2=new TextField(20); t2.setBounds(500,250,100,25); t2.setEchoChar('*'); b1=new JButton("Submit"); b1.setBounds(380,440,100,30); b2=new JButton("Back"); b2.setBounds(380,500,100,30); add(l4); add(l3); add(l5); add(l1); add(t1); add(l2); add(t2); add(b1); add(b2); setVisible(true); b1.addActionListener(this); b2.addActionListener(this); } public void actionPerformed(ActionEvent e) { try { if(e.getSource()==b1) { if((t1.getText().equals("admin")) && (t2.getText().equals("admin"))) { JOptionPane.showMessageDialog(this,"Congragulations!Login sucessful"); createaccount f=new createaccount(); setVisible(false); } else // textbox for password

BANKING MANAGEMENT SYSTEM { JOptionPane.showMessageDialog(this,"login failed"); t1.requestFocus(); } } else { setVisible(false); new facilities(); } } catch(Exception e1) { System.out.println(e1); } } } // CODING FOR PASSWORD FRAME FOR TRANSACTION FORM

class passwordt extends Frame implements ActionListener { JLabel l1; JLabel l2,l4,l5,l3; TextField t1; TextField t2; JButton b1; JButton b2; String ln; String pass; passwordt() { setLayout(null); setBackground(Color.lightGray); setSize(1000,700); setTitle("LOGIN FORM");

BANKING MANAGEMENT SYSTEM l4=new JLabel(" *********************************************************************** ********"); l4.setBounds(30,70,1000,20); l5=new JLabel(" *********************************************************************** ********"); l5.setBounds(30,130,1000,20); l3=new JLabel("LOGIN FORM FOR TRANSACTION."); l3.setBounds(350,90,1000,40); Font f0=new Font("arials",Font.BOLD,30); l3.setFont(f0);

l1=new JLabel("Enter the login name"); l1.setBounds(200,200,1000,40); Font f=new Font("arials",Font.BOLD,20); l1.setFont(f); t1=new TextField(20); t1.setBounds(500,200,200,25); // textbox for login

l2=new JLabel("Enter the password"); l2.setBounds(200,250,1000,40); Font f1=new Font("arials",Font.BOLD,20); l2.setFont(f1); t2=new TextField(20); t2.setBounds(500,250,200,25); t2.setEchoChar('*'); b1=new JButton("Submit"); b1.setBounds(380,440,100,30); b2=new JButton("Back"); b2.setBounds(380,500,100,30); add(l4); add(l3); add(l5); add(l1); add(t1); // textbox for password

BANKING MANAGEMENT SYSTEM add(l2); add(t2); add(b1); add(b2); setVisible(true); b1.addActionListener(this); b2.addActionListener(this); } public void actionPerformed(ActionEvent e) { try { if(e.getSource()==b1) { if((t1.getText().equals("admin")) && (t2.getText().equals("admin"))) { JOptionPane.showMessageDialog(this,"Congragulations!Login sucessful"); setVisible(false); transactionform f=new transactionform(); } else { JOptionPane.showMessageDialog(this,"login failed"); t1.requestFocus(); } } else { setVisible(false); new facilities(); } } catch(Exception e1) { System.out.println(e1); } } }

BANKING MANAGEMENT SYSTEM // CODING FOR PASSWORD FRAME FOR VIEW ALL ACCOUNT FORM

class passwordv extends Frame implements ActionListener { JLabel l1; JLabel l2,l3,l4,l5; TextField t1; TextField t2; JButton b1; JButton b2; String ln; String pass; passwordv() { setLayout(null); setBackground(Color.lightGray); setSize(1000,700); l4=new JLabel(" *********************************************************************** **********"); l4.setBounds(30,70,1000,20); l5=new JLabel(" *********************************************************************** **********"); l5.setBounds(30,130,1000,20);

l3=new JLabel("LOGIN FORM FOR VIEWING ACCOUNTS"); l3.setBounds(350,90,1000,40); Font f0=new Font("arials",Font.BOLD,30); l3.setFont(f0); l1=new JLabel("Enter the login name"); l1.setBounds(200,200,1000,40); Font f=new Font("arials",Font.BOLD,20);

BANKING MANAGEMENT SYSTEM l1.setFont(f); t1=new TextField(20); t1.setBounds(500,200,200,25); // textbox for login

l2=new JLabel("Enter the password"); l2.setBounds(200,250,1000,40); Font f1=new Font("arials",Font.BOLD,20); l2.setFont(f1); t2=new TextField(20); t2.setBounds(500,250,200,25); t2.setEchoChar('*'); b1=new JButton("Submit"); b1.setBounds(380,440,100,30); b2=new JButton("Back"); b2.setBounds(380,500,100,30); add(l4); add(l3); add(l5); add(l1); add(t1); add(l2); add(t2); add(b1); add(b2); setVisible(true); b1.addActionListener(this); b2.addActionListener(this); } public void actionPerformed(ActionEvent e) { try { if(e.getSource()==b1) { if((t1.getText().equals("admin")) && (t2.getText().equals("admin"))) { JOptionPane.showMessageDialog(this,"Congragulations!Login sucessful"); viewaccountform f=new viewaccountform(); setVisible(false); // textbox for password

BANKING MANAGEMENT SYSTEM } else { JOptionPane.showMessageDialog(this,"login failed"); t1.requestFocus(); } } else { setVisible(false); new facilities(); } } catch(Exception e1) { System.out.println(e1); } } }

// CODING FOR CREATE ACCOUNT PAGE

class createaccount extends JFrame implements ActionListener {

JLabel l0,l1,l2,l3,l4,l5,l6,l7,l8,l9,l10,l11; JTextField t0,t1,t2,t3,t4,t5,t6,t7,t8,t9,t10; JButton b1,b2; Connection con; PreparedStatement ps;

BANKING MANAGEMENT SYSTEM //ResultSet rs; createaccount() { try { Class.forName("sun.jdbc.odbc.JdbcOdbcDriver"); con=DriverManager.getConnection("jdbc:odbc:sq"); } catch(Exception e) { System.out.println("exception name="+e); } setLayout(null); setBackground(Color.lightGray); setSize(1000,700); setTitle("CREATE ACCOUNT FORM"); l1= new JLabel("ACCOUNT OPENING FORM"); l1.setBounds(300,50,1000,40); Font f=new Font("arials",Font.BOLD,30); l1.setFont(f); l2=new JLabel("Name"); l2.setBounds(240,120,200,20); Font f1=new Font("arials",Font.BOLD,16); l2.setFont(f1); t1=new JTextField(20); t1.setBounds(500,120,200,25); // textbox for name

l3=new JLabel("Age"); l3.setBounds(240,160,200,20); Font f2=new Font("arials",Font.BOLD,16); l3.setFont(f2); t2=new JTextField(20); t2.setBounds(500,160,200,25); l4=new JLabel("D.O.B"); // textbox for age

BANKING MANAGEMENT SYSTEM l4.setBounds(240,200,200,20); Font f3=new Font("arials",Font.BOLD,16); l4.setFont(f3); t3=new JTextField(20); t3.setBounds(500,200,200,25); l5=new JLabel("Address"); l5.setBounds(240,240,200,20); Font f4=new Font("arials",Font.BOLD,16); l5.setFont(f4); t4=new JTextField(20); t4.setBounds(500,240,200,25); l6=new JLabel("contact no."); l6.setBounds(240,280,200,20); Font f5=new Font("arials",Font.BOLD,16); l6.setFont(f5); t5=new JTextField(20); t5.setBounds(500,280,200,25); l7=new JLabel("Gender"); l7.setBounds(240,320,200,20); Font f6=new Font("arials",Font.BOLD,16); l7.setFont(f6); t6=new JTextField(20); t6.setBounds(500,320,200,25); l8=new JLabel("Religion"); l8.setBounds(240,360,200,20); Font f7=new Font("arials",Font.BOLD,16); l8.setFont(f7); t7=new JTextField(20); t7.setBounds(500,360,200,25); l9=new JLabel("Category"); l9.setBounds(240,400,200,20); Font f8=new Font("arials",Font.BOLD,16); l9.setFont(f8); // textbox for religion // textbox for gender // textbox for contact no. // textbox for address // textbox for d.o.b

BANKING MANAGEMENT SYSTEM t8=new JTextField(20); t8.setBounds(500,400,200,25); l10=new JLabel("Type of account"); l10.setBounds(240,438,200,20); Font f9=new Font("arials",Font.BOLD,16); l10.setFont(f9); t9=new JTextField(20); t9.setBounds(500,440,200,25); l11=new JLabel("initial balance"); l11.setBounds(240,478,200,20); Font f10=new Font("arials",Font.BOLD,16); l11.setFont(f10); t10=new JTextField(20); t10.setBounds(500,470,200,25); b1=new JButton("save"); b1.setBounds(240,550,100,30); b2=new JButton("back"); b2.setBounds(540,550,100,30); add(l1); add(l2); add(t1); add(l3); add(t2); add(l4); add(t3); add(l5); add(t4); add(l6); add(t5); add(l7); add(t6); add(l8); add(t7); add(l9); add(t8); add(l10); add(t9); add(l11); add(t10);

// textbox for category

// textbox for type of account

// textbox for type of account

BANKING MANAGEMENT SYSTEM add(b1); add(b2); setVisible(true); b1.addActionListener(this); b2.addActionListener(this); } public void actionPerformed(ActionEvent e) {

try { Class.forName("sun.jdbc.odbc.JdbcOdbcDriver"); con=DriverManager.getConnection("jdbc:odbc:sq"); int accno=1000; if(e.getSource()==b1) { ps=con.prepareStatement("select * from bankdata"); ResultSet rs=ps.executeQuery(); while(rs.next()) { accno=rs.getInt(1); } accno=accno+1; String msg="Your Account no is"+accno; ps=con.prepareStatement("insert into bankdata values(?,?,?,?,?,?,?,?,?,?,?)"); ps.setInt(1,accno); ps.setString(2,t1.getText()); ps.setInt(3,Integer.parseInt(t2.getText())); ps.setString(4,t3.getText()); ps.setString(5,t4.getText()); ps.setString(6,t5.getText()); ps.setString(7,t6.getText()); ps.setString(8,t7.getText()); ps.setString(9,t8.getText()); ps.setString(10,t9.getText()); ps.setInt(11,Integer.parseInt(t10.getText())); ps.executeUpdate(); con.close(); JOptionPane.showMessageDialog(this,"data inserted");

BANKING MANAGEMENT SYSTEM JOptionPane.showMessageDialog(this,msg); t1.setText(""); t2.setText(""); t3.setText(""); t4.setText(""); t5.setText(""); t6.setText(""); t7.setText(""); t8.setText(""); t9.setText(""); t10.setText(""); } else { setVisible(false); new facilities(); }} catch(Exception e1) { System.out.println("Exception is" +e1); } }}

// CODING FOR TRANSACTION FORM

class transactionform extends Frame implements ActionListener { JLabel l1; JButton b1; JButton b2; JButton b3; JButton b4; JButton b5; transactionform() { setLayout(null); setBackground(Color.lightGray); setSize(1000,700); setTitle("TRANSACTION FORM"); JLabel l1=new JLabel("Transaction Form"); l1.setBounds(280,100,1000,30);

BANKING MANAGEMENT SYSTEM Font f=new Font("arials",Font.BOLD,40); l1.setFont(f); b1=new JButton("Cash Deposit"); b1.setBounds(300,250,250,30); Font f1=new Font("arials",Font.BOLD,20); b1.setFont(f1); b2=new JButton("Cash Withdrawl"); b2.setBounds(300,350,250,30); Font f2=new Font("arials",Font.BOLD,20); b2.setFont(f2); b3=new JButton("Check Balance"); b3.setBounds(300,450,250,30); Font f3=new Font("arials",Font.BOLD,20); b3.setFont(f3); b4=new JButton("back"); b4.setBounds(250,550,100,30); Font f4=new Font("arials",Font.BOLD,20); b4.setFont(f4); b5=new JButton("Quit"); b5.setBounds(500,550,100,30); Font f5=new Font("arials",Font.BOLD,20); b5.setFont(f5); add(l1); add(b1); add(b2); add(b3); add(b4); add(b5); setVisible(true); b1.addActionListener(this); b2.addActionListener(this); b3.addActionListener(this); b4.addActionListener(this); b5.addActionListener(this); } public void actionPerformed(ActionEvent e) { if(e.getSource()==b1) { setVisible(false); new cashdeposit(); // button for cash enquiry

// button for cash withdrawl

// button for cash deposit

// button for back

// button to quit

// frame for cash enquiry

BANKING MANAGEMENT SYSTEM } else if(e.getSource()==b2) { setVisible(false); new cashwithdrawl(); } else if(e.getSource()==b3) { setVisible(false); new checkbalance(); } else if(e.getSource()==b5) { setVisible(false); new thanksframe(); } else { setVisible(false); new facilities(); } }}

// frame for cash withdrawl

// frame for cash deposit // quit

//CODING FOR CHECK BALANCE

class checkbalance extends Frame implements ActionListener { JLabel l1,l2,l3; JTextField t1,t2; JButton b1,b2; Connection con; PreparedStatement ps; //ResultSet rs; checkbalance() { try { Class.forName("sun.jdbc.odbc.JdbcOdbcDriver"); con=DriverManager.getConnection("jdbc:odbc:sq"); }

BANKING MANAGEMENT SYSTEM catch(Exception e) { System.out.println("Exception is" +e); } setLayout(null); setBackground(Color.lightGray); setSize(1000,700); setTitle("CHECK BALANCE FORM"); l3=new JLabel("CHECK BALANCE FORM"); enquiry l3.setBounds(340,100,300,30); Font f1=new Font("arials",Font.BOLD,25); l3.setFont(f1); // button for cash

l1=new JLabel("enter the account no."); l1.setBounds(250,250,250,30); Font f5=new Font("arials",Font.BOLD,20); l1.setFont(f5); t1=new JTextField(50); t1.setBounds(500,250,180,30); Font f2=new Font("arials",Font.BOLD,20); t1.setFont(f2); l2=new JLabel("Current Balance"); l2.setBounds(300,350,250,30); Font f3=new Font("arials",Font.BOLD,20); l2.setFont(f3); t2=new JTextField(50); t2.setBounds(500,350,180,30); Font f7=new Font("arials",Font.BOLD,20); t2.setFont(f7); b1=new JButton("OK"); b1.setBounds(500,480,100,30); Font f4=new Font("arials",Font.BOLD,20); b1.setFont(f4); b2=new JButton("Back");

// button for cash enquiry

BANKING MANAGEMENT SYSTEM b2.setBounds(500,600,100,30); Font f6=new Font("arials",Font.BOLD,20); b2.setFont(f6); setVisible(true); add(l3); add(l1); add(t1); add(l2); add(t2); add(b1); add(b2); b1.addActionListener(this); b2.addActionListener(this); } public void actionPerformed(ActionEvent e) { try { Class.forName("sun.jdbc.odbc.JdbcOdbcDriver"); con=DriverManager.getConnection("jdbc:odbc:sq"); if(e.getSource()==b1) { ps=con.prepareStatement("select * from bankdata where Accountno=?"); ps.setInt(1,Integer.parseInt(t1.getText())); ResultSet rs=ps.executeQuery();

while(rs.next()) { t2.setText(rs.getString("Balance")); } } else { setVisible(false); new transactionform(); }}

BANKING MANAGEMENT SYSTEM catch(Exception e1) { System.out.println("exception is" +e1); } } }

// CODING FOR CASH DEPOSIT

class cashdeposit extends JFrame implements ActionListener { JLabel l1,l2,l3,l4,l6; JTextField t1,t2,t3,t4; JButton b1,b2; Connection con; PreparedStatement ps; ResultSet rs;

cashdeposit() { try { Class.forName("sun.jdbc.odbc.JdbcOdbcDriver"); con=DriverManager.getConnection("jdbc:odbc:sq"); } catch(Exception e) { System.out.println("Exception is" +e); } setLayout(null); setSize(1000,700); setBackground(Color.lightGray); setTitle("CASH DEPOSIT FORM"); l6=new JLabel("DEPOSIT FORM"); l6.setBounds(340,50,250,30);

BANKING MANAGEMENT SYSTEM Font f0=new Font("arials",Font.BOLD,25); l6.setFont(f0); l1=new JLabel("enter the account no."); l1.setBounds(250,150,250,30); Font f1=new Font("arials",Font.BOLD,20); l1.setFont(f1); t1=new JTextField(50); t1.setBounds(500,150,180,30); Font f3=new Font("arials",Font.BOLD,20); t1.setFont(f3); l2=new JLabel("Cash to be deposited"); l2.setBounds(250,250,250,30); Font f2=new Font("arials",Font.BOLD,20); l2.setFont(f2); // button for cash enquiry // button for cash enquiry

t2=new JTextField(50); t2.setBounds(500,250,180,30); Font f9=new Font("arials",Font.BOLD,20); t1.setFont(f9);

l3=new JLabel("previous balance"); l3.setBounds(250,350,250,30); Font f7=new Font("arials",Font.BOLD,20); l3.setFont(f7); t3=new JTextField(50); t3.setBounds(500,350,180,30); Font f4=new Font("arials",Font.BOLD,20); t3.setFont(f4);

l4=new JLabel("current balance"); l4.setBounds(250,450,250,30); Font f8=new Font("arials",Font.BOLD,20); l4.setFont(f8);

BANKING MANAGEMENT SYSTEM

t4=new JTextField(50); t4.setBounds(500,450,180,30); Font f5=new Font("arials",Font.BOLD,20); t4.setFont(f5); b1=new JButton("back"); b1.setBounds(450,550,100,30);

b2=new JButton("ok"); b2.setBounds(450,600,100,30); add(l6); add(l1); add(t1); add(l2); add(t2); add(l3); add(t3); add(l4); add(t4); add(b2); add(b1); b1.addActionListener(this); b2.addActionListener(this); setVisible(true); } public void actionPerformed(ActionEvent e) { try { Class.forName("sun.jdbc.odbc.JdbcOdbcDriver"); con=DriverManager.getConnection("jdbc:odbc:sq"); int pbal=0,dep,cbal; if(e.getSource()==b2) {

BANKING MANAGEMENT SYSTEM PreparedStatement ps=con.prepareStatement("select * from bankdata where Accountno=?"); ps.setInt(1,Integer.parseInt(t1.getText())); ResultSet rs=ps.executeQuery(); if(rs.next()) { pbal=Integer.parseInt(rs.getString("Balance")); t3.setText(String.valueOf(pbal)); } dep=Integer.parseInt(t2.getText()); cbal=pbal+dep; PreparedStatement ps1=con.prepareStatement("update bankdata set Balance=? where Accountno=?"); ps1.setInt(1,cbal); ps1.setInt(2,Integer.parseInt(t1.getText())); ps1.executeUpdate(); t4.setText(String.valueOf(cbal)); JOptionPane.showMessageDialog(this,"Amount has been deposited"); } else { setVisible(false); new transactionform(); } } catch(Exception e1) { System.out.println("Exception is" +e1); }} }

// CODING FOR VIEW ALL ACCOUNT FORM

BANKING MANAGEMENT SYSTEM class viewaccountform extends JFrame implements ActionListener { JLabel l1; JButton b1; viewaccountform() { int i=0; try { setSize(1000,700); setLayout(null); setTitle("VIEW ALL ACCOUNT FORM"); l1=new JLabel("DETAILS OF ALL ACCOUNTS"); l1.setBounds(250,20,900,50); Font f=new Font("arials",Font.BOLD,30); l1.setFont(f); b1=new JButton("back"); b1.setBounds(500,600,100,30); add(l1); add(b1); b1.addActionListener(this); int count=0; String s[]={"Accountno","Name","Age","Date of birth","Address","Contact no","Gender","Religion","Category","Type of account","Balance"}; Class.forName("sun.jdbc.odbc.JdbcOdbcDriver"); Connection con=DriverManager.getConnection("jdbc:odbc:sq"); PreparedStatement ps1=con.prepareStatement("select count (*) from bankdata"); ResultSet rs1=ps1.executeQuery(); while(rs1.next()) { count=rs1.getInt(1); } String s1[][]=new String[count][11]; PreparedStatement ps=con.prepareStatement("select * from bankdata"); ResultSet rs=ps.executeQuery(); while(rs.next()) {

BANKING MANAGEMENT SYSTEM s1[i][0]=rs.getString(1); s1[i][1]=rs.getString(2); s1[i][2]=rs.getString(3); s1[i][3]=rs.getString(4); s1[i][4]=rs.getString(5); s1[i][5]=rs.getString(6); s1[i][6]=rs.getString(7); s1[i][7]=rs.getString(8); s1[i][8]=rs.getString(9); s1[i][9]=rs.getString(10); s1[i][10]=rs.getString(11); i++; } JTable jt=new JTable(s1,s); int v=ScrollPaneConstants.VERTICAL_SCROLLBAR_ALWAYS; int h=ScrollPaneConstants.HORIZONTAL_SCROLLBAR_ALWAYS; JScrollPane jp=new JScrollPane(jt,v,h); jp.setBounds(50,100,900,500); add(jp); System.out.println("no. of rows" +count); setVisible(true); } catch(Exception e) { } } public void actionPerformed(ActionEvent e) { setVisible(false); new facilities(); } }

// CODING FOR HELP FRAME

BANKING MANAGEMENT SYSTEM

class helpframe extends JFrame implements ActionListener { JButton b1; JLabel l1,l2,l3,l4,l5,l6; helpframe() { setLayout(null); setSize(1000,700); setBackground(Color.lightGray); setTitle("HELP FORM"); l1=new JLabel("1) Inorder to transact your account click the Transaction button on the screen"); l1.setBounds(100,100,1000,20); Font f=new Font("arials",Font.BOLD,15); l1.setFont(f); l2=new JLabel(" a) For depositing the cash clik CASH DEPOSIT button and fill the details as per the requirement"); l2.setBounds(140,140,1000,20); Font f2=new Font("arials",Font.BOLD,15); l2.setFont(f2); l3=new JLabel(" b) For withdrawing the cash clik CASH WITHDRAWL button and fill the details as per the requirement"); l3.setBounds(140,180,1000,20); Font f3=new Font("arials",Font.BOLD,15); l3.setFont(f3); l4=new JLabel(" c) For checking the balance clik CHECK BALANCE button and fill the details as per the requirement"); l4.setBounds(140,220,1000,20); Font f4=new Font("arials",Font.BOLD,15); l4.setFont(f4); l5=new JLabel("2) For creating a new account click CREATE ACCOUNT button and then login and fill the details required"); l5.setBounds(100,260,1000,20);

BANKING MANAGEMENT SYSTEM Font f5=new Font("arials",Font.BOLD,15); l5.setFont(f5); l6=new JLabel("3) For viewing all the account details click VIEW ALL ACCOUNT buuton and then login with the login details"); l6.setBounds(100,300,1000,20); Font f6=new Font("arials",Font.BOLD,15); l6.setFont(f6);

b1=new JButton("OK"); b1.setBounds(450,550,100,30); Font f1=new Font("arials",Font.BOLD,20); b1.setFont(f1);

add(l1); add(l2); add(l3); add(l4); add(l5); add(l6); add(b1); setVisible(true); b1.addActionListener(this); } public void actionPerformed(ActionEvent e) { if(e.getSource()==b1) { setVisible(false); new thanksframe(); } else {} } }

BANKING MANAGEMENT SYSTEM

//CODING FOR CASH WITHDRAWL FORM

class cashwithdrawl extends Frame implements ActionListener { JLabel l1,l2,l3,l4,l5,l6; JTextField t1,t2,t3,t4,t5; JButton b1,b2; Connection con; PreparedStatement ps; ResultSet rs; int cashwith; cashwithdrawl() { try { Class.forName("sun.jdbc.odbc.JdbcOdbcDriver"); con=DriverManager.getConnection("jdbc:odbc:sq"); } catch(Exception e) { System.out.println("Exception is" +e); } setLayout(null); setSize(1000,700); setBackground(Color.lightGray); setTitle("CASH WITHDRAWL FORM");

l6=new JLabel("WITHDRAWL FORM"); l6.setBounds(340,50,250,30); Font f0=new Font("arials",Font.BOLD,25); l6.setFont(f0);

BANKING MANAGEMENT SYSTEM l1=new JLabel("enter the account no."); l1.setBounds(250,150,250,30); Font f1=new Font("arials",Font.BOLD,20); l1.setFont(f1); l2=new JLabel("Cash to be withdrawn"); l2.setBounds(250,250,250,30); Font f2=new Font("arials",Font.BOLD,20); l2.setFont(f2); l3=new JLabel("Previous balance"); l3.setBounds(250,350,250,30); Font f8=new Font("arials",Font.BOLD,20); l3.setFont(f8); l4=new JLabel("Current balance"); l4.setBounds(250,450,250,30); Font f7=new Font("arials",Font.BOLD,20); l4.setFont(f7); t1=new JTextField(50); t1.setBounds(500,150,180,30); Font f3=new Font("arials",Font.BOLD,20); t1.setFont(f3); t2=new JTextField(50); t2.setBounds(500,250,180,30); Font f4=new Font("arials",Font.BOLD,20); t1.setFont(f4);

// button for cash enquiry

// button for cash enquiry

t3=new JTextField(50); t3.setBounds(500,350,180,30); Font f5=new Font("arials",Font.BOLD,20); t3.setFont(f5); t4=new JTextField(50); t4.setBounds(500,450,180,30); Font f6=new Font("arials",Font.BOLD,20); t4.setFont(f6);

BANKING MANAGEMENT SYSTEM b1=new JButton("back"); b1.setBounds(450,550,100,30); b2=new JButton("ok"); b2.setBounds(450,600,100,30); add(l6); add(l1); add(t1); add(l2); add(t2); add(l4); add(t4); add(l3); add(t3); add(b2); add(b1); b1.addActionListener(this); b2.addActionListener(this); setVisible(true); } public void actionPerformed(ActionEvent e) { try { Class.forName("sun.jdbc.odbc.JdbcOdbcDriver"); con=DriverManager.getConnection("jdbc:odbc:sq"); int pbal=0,wd,cbal;

if(e.getSource()==b2) { PreparedStatement ps=con.prepareStatement("select * from bankdata where Accountno=?"); ps.setInt(1,Integer.parseInt(t1.getText())); ResultSet rs=ps.executeQuery(); while(rs.next()) { pbal=Integer.parseInt(rs.getString("Balance")); t3.setText(String.valueOf(pbal));

BANKING MANAGEMENT SYSTEM } wd=Integer.parseInt(t2.getText()); cbal=pbal-wd; PreparedStatement ps1=con.prepareStatement("update bankdata set Balance=? where Accountno=?"); ps1.setInt(1,cbal); ps1.setInt(2,Integer.parseInt(t1.getText())); ps1.executeUpdate(); t4.setText(String.valueOf(cbal)); JOptionPane.showMessageDialog(this,"amount has been withdrawn"); } else { setVisible(false); new transactionform(); }} catch(Exception e1) { System.out.println("Exception is" +e1); } }}

//CODING FOR THANKS FRAME

class thanksframe extends JFrame implements ActionListener { JLabel l1; JButton b1; thanksframe() { setLayout(null); setSize(1000,700); setTitle("EXIT FORM"); l1=new JLabel("THANKS FOR VISITING. . ."); l1.setBounds(250,250,1000,40);

BANKING MANAGEMENT SYSTEM Font f=new Font("arials",Font.BOLD,40); l1.setFont(f);

b1=new JButton("OK"); b1.setBounds(400,600,100,30); add(l1); add(b1); b1.addActionListener(this); setVisible(true); } public void actionPerformed(ActionEvent e) { setVisible(false); } }

BANKING MANAGEMENT SYSTEM

8.) TESTING AND MAINTENANCE


Software testing is an investigation conducted to provide stakeholders with information about the quality of the product or service under test.[1] Software testing also provides an objective, independent view of the software to allow the business to appreciate and understand the risks of software implementation. Test techniques include, but are not limited to, the process of executing a program or application with the intent of finding software bugs (errors or other defects). Software testing can also be stated as the process of validating and verifying that a software program/application/product: 1. meets the business and technical requirements that guided its design and development; 2. works as expected; and 3. can be implemented with the same characteristics. Software testing, depending on the testing method employed, can be implemented at any time in the development process. However, most of the test effort occurs after the requirements have been defined and the coding process has been completed. As such, the methodology of the test is governed by the software development methodology adopted. Different software development models will focus the test effort at different points in the development process. Newer development models, such as Agile, often employ test driven development and place an increased portion of the testing in the hands of the developer, before it reaches a formal team of testers. In a more traditional model, most of the test execution occurs after the requirements have been defined and the coding process has been completed.

Static vs. dynamic testing


There are many approaches to software testing. Reviews, walkthroughs, or inspections are considered as static testing, whereas actually executing programmed code with a given set of test cases is referred to as dynamic testing. Static testing can be (and unfortunately in practice often is) omitted. Dynamic testing takes place when the program itself is used for the first time (which is generally considered the beginning of the testing stage). Dynamic testing may begin before the program is 100% complete in order to test particular sections of code (modules or discrete functions). Typical techniques for this are either using stubs/drivers or execution from a debugger environment. For example, spreadsheet programs are, by their very nature, tested to a large extent interactively ("on the fly"), with results displayed immediately after each calculation or text manipulation.

BANKING MANAGEMENT SYSTEM

Software verification and validation


Software testing is used in association with verification and validation:

Verification: Have we built the software right? (i.e., does it match the specification). Validation: Have we built the right software? (i.e., is this what the customer wants).

The terms verification and validation are commonly used interchangeably in the industry; it is also common to see these two terms incorrectly defined. According to the IEEE Standard Glossary of Software Engineering Terminology: Verification is the process of evaluating a system or component to determine whether the products of a given development phase satisfy the conditions imposed at the start of that phase. Validation is the process of evaluating a system or component during or at the end of the development process to determine whether it satisfies specified requirements.

Software quality assurance (SQA)


Though controversial, software testing is a part of the software quality assurance (SQA) process. In SQA, software process specialists and auditors are concerned for the software development process rather than just the artifacts such as documentation, code and systems. They examine and change the software engineering process itself to reduce the amount of faults that end up in the delivered software: the so-called defect rate. What constitutes an "acceptable defect rate" depends on the nature of the software; A flight simulator video game would have much higher defect tolerance than software for an actual airplane. Although there are close links with SQA, testing departments often exist independently, and there may be no SQA function in some companies. Software testing is a task intended to detect defects in software by contrasting a computer program's expected results with its actual results for a given set of inputs. By contrast, QA (quality assurance) is the implementation of policies and procedures intended to prevent defects from occurring in the first place .

Software maintenance in software engineering is the modification of a software product after delivery to correct faults, to improve performance or other attributes.

BANKING MANAGEMENT SYSTEM A common perception of maintenance is that it is merely fixing bugs. However, studies and surveys over the years have indicated that the majority, over 80%, of the maintenance effort is used for non-corrective actions . This perception is perpetuated by users submitting problem reports that in reality are functionality enhancements to the system. The key software maintenance issues are both managerial and technical. Key management issues are: alignment with customer priorities, staffing, which organization does maintenance, estimating costs. Key technical issues are: limited understanding, impact analysis, testing, maintainability measurement. Best and Worst Practices in Software Maintenance Because maintenance of aging legacy software is very labour intensive it is quite important to explore the best and most cost effective methods available for dealing with the millions of applications that currently exist. The sets of best and worst practices are not the same. Just as practice that has the most positive impact on maintenance productivity is the use of trained maintenance experts, while the factor that has the greatest negative impact is the presence error-prone modules in application being maintained.

You might also like