Professional Documents
Culture Documents
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 .
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
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 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
Using this module the user can withdraw a particular amount details. It can be done after getting the following details:
Sr. No. 1.
Notation
3.
Entity
4.
Data Store
FLOW CHART
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
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).
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.
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".
Creates a account for the customer Customer fill all the required info Deposits Money Updates Current Balance
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.
Deposit Amount
Withdraw Amount
Check Balance
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
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.
3: Deposits Money 5: Withdraws Amount 4: Updates Current Balance 7: Updates Amount after Withdrawl Accountan t
Database
// 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(); } }
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 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); } } }
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);
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); } }}
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 to quit
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(); } }}
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");
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();
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
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);
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); }} }
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(); } }
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);
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 {} } }
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");
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);
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); } }}
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);
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); } }
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 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.