Java Banking Project BS
Java Banking Project BS
MICRO-PROJECT REPORT
PREPARED BY:-
Seal of Institute
ACKNOWLEDGEMENT
We wish to express our profound gratitude to our guide
Prof.S.J.HADBE who guided us endlessly in framing and
completion of Micro-Project. He / She guided us on all the main
points in that Micro-Project. We are indebted to his / her constant
encouragement, cooperation and help. It was his / her enthusiastic
support that helped us in overcoming of various obstacles in the
Micro-Project.
We are also thankful to our Principal, HOD,
Faculty Members and classmates for extending their support and
motivation in the completion of this Micro-Project.
TOPIC
SR. NO.
1 INTRODUCTION
2 RESOURCES REQUIRED
3 PROJECT PLANNING
4 OUTPUT OF PROJECT
5 PROJECT SCOPE
6 CONCLUSION
7 REFERENCE
INTRODUCTION
Java is platform independent, open−source object oriented programming language enriched
with free and open source libraries. In current industrial scenario Java has the broad industry
support and is prerequisite with many allied technologies like Advanced Java, Java Server
Pages, and Android Application Development. Thus, current industrial trends necessitate
acquiring Java knowledge for Computer Engineering and Information Technology graduates.
This course develops necessary skills in students to apply object oriented programming
techniques in Java so that students will be able to develop complete applications using core
Java.
RESOURCES REQUIRED
PROJECT PLANNING
Name of
S. No. Details of activity Planned Responsible
Planned Finish date Team
Start date Members
This software lets users create a new account, make cash deposits and withdrawals, access account
information and delete account all through software without the need of going personally to a bank.
This project has been designed in Java and various actions have different panels. It keeps logs of all
the transactions made whether it is withdrawal or deposit of cash. One can create a new account and
even delete an existing one. This gives user the facility to work in one’s own comfort and at a time
convenient for them. It is secure and user−friendly.
o Java Code:-
1. import java.util.Scanner;
2. class BankDetails {
3. private String accno;
4. private String name;
5. private String acc_type;
6. private long balance;
7. Scanner sc = new Scanner(System.in);
8. //method to open new account
9. public void openAccount() {
10. System.out.print("Enter Account No: ");
11. accno = sc.next();
12. System.out.print("Enter Account type: ");
13. acc_type = sc.next();
14. System.out.print("Enter Name: ");
15. name = sc.next();
16. System.out.print("Enter Balance: ");
17. balance = sc.nextLong();
18. }
19. //method to display account details
20. public void showAccount() {
21. System.out.println("Name of account holder: " + name);
22. System.out.println("Account no.: " + accno);
23. System.out.println("Account type: " + acc_type);
24. System.out.println("Balance: " + balance);
25. }
26. //method to deposit money
27. public void deposit() {
28. long amt;
29. System.out.println("Enter the amount you want to
deposit: ");
30. amt = sc.nextLong();
31. balance = balance + amt;
32. }
33. //method to withdraw money
34. public void withdrawal() {
35. long amt;
36. System.out.println("Enter the amount you want to
withdraw: ");
37. amt = sc.nextLong();
38. if (balance >= amt) {
39. balance = balance − amt;
40. System.out.println("Balance after withdrawal: "
+ balance); 41. } else {
42. System.out.println("Your balance is less than " + amt +
"\tTransaction failed...!!" );
43. }
44. }
45. //method to search an account number
46. public boolean search(String ac_no) {
47. if (accno.equals(ac_no)) {
48. showAccount();
49. return (true);
50. }
51. return (false);
52. }
53. }
54. public class BankingApp {
55. public static void main(String arg[]) {
56. Scanner sc = new Scanner(System.in);
57. //create initial accounts
58. System.out.print("How many number of customers do
you want to input? "); 59. int n = sc.nextInt();
60. BankDetails C[] = new BankDetails[n];
61. for (int i = 0; i < C.length; i++) {
62. C[i] = new BankDetails();
63. C[i].openAccount();
64. }
65. // loop runs until number 5 is not pressed to exit
66. int ch;
67. do {
68. System.out.println("\n ***Banking System
Application***");
69. System.out.println("1. Display all account
details \n 2. Search by Account number\n 3.
Deposit the amount \n
4. Withdraw the amount \n 5.Exit ");
70. System.out.println("Enter your choice: ");
71. ch = sc.nextInt();
72. switch (ch) {
73. case 1:
74. for (int i = 0; i < C.length; i++) {
75. C[i].showAccount();
76. } 77. break;
78. case 2:
79. System.out.print("Enter account no. you
want to search: ");
80. String ac_no = sc.next();
81. boolean found = false;
o PROJECT SCOPE
• Small Bank:- This java application can be used in small bank for handling customer withdrawals
and other tasks.
• Improve Banking Experience :- By using this java application users can experience hassle free
banking experience in future.
• Creating New Accounts- The application can be used to create two different types of accounts
by the customers, which are Savings Account and Current Account. It helps save the hustle for
the customer to visit the bank physically and create/use these accounts.
• Depositing Money- As the world is moving towards the limited use of paper currency, depositing
or transferring money from one bank to the other will become as easy as clicking a few buttons
using this application.
• Withdrawing Money- Requests can be sent through the application to ask for money transfer as
well.
• Account Holder List- This is a feature for the admin. The admin can view the list of all the
account holders.
• Balance Enquiry− The customer can check their balance via this application.
CONCLUSION:
In any Bank Transaction, there are several parties involved to process transaction like a merchant, bank,
receiver, etc. so there are several numbers reasons that transaction may get failed, declined, so to handle
a transaction in Java, there is a JDBC (Java Database Connectivity) which provides us an API to
connect, execute, fetch data from any databases. It provides the language Java database connectivity
standards. It is used to write programs required to access databases.
Transactions in JDBC provide us a feature that considers a complete SQL statement as one unit, then
executes once, and if any statement fails, the entire transaction fails. To use transaction, we have to set
setAutoCommit(false); manually, and once all the statements are executed successfully, making
changes in the database’s commit() method will be required.
In this Mini Banking Application, to handle a transaction, we are using JDBC Transaction to make
transactions consistent. This Application Provides Menu−Driven Console Interface to a User Using that
User can perform functions like create Account, Login, View Balance And Transfer Money To The
Other Customer.
REFERENCE
• [1] R. Johnson, J. Hoeller, A. Arendsen, T. Risberg, and D. Kopylenko, Professional
Java development with the Spring Framework, vol. 2005. 2005.
• [3] D. R. Prasanna, “Dependency Injection: Design Pattern using Spring and Guice”. 2009.
[4] F. Steimann, “The paradoxical success of aspect−oriented programming,” ACM
SIGPLAN Not., vol. 41, no. 10, p. 481, 2006
MICRO-PROJECT EVOLUTION SHEET
Name of Student:- Bhagwat Anna Sonawane En .No. 24511510408
Name of Course:- Java Programming Course Code:- 314317
Title of The Micro-Project:- Banking Application
2 Literature
Review/information
collection
3 Completion of the Target as
Per project proposal
4 Analysis of Data and
representation
5 Quality of Prototype/Model
6 Report Preparation
(B) Individual Presentation/Viva(Convert Below total marks out of 4Marks)
7 Presentation
8 Viva
(A) (B)
Process and Product Individual Presentation/ Viva (4 Total Marks
Assessment (6 marks) marks) 10