End Term
End Term
End Term
Requisite:
Completion of IDB Laboratory Assignment-4
Basic Java Programming knowledge
Overview of the Project: A Banking Management System is to be designed, putting together the
concepts learnt in theory and practised in laboratory. The Project will integrate a Java frontend
menu driven program to the backend Banking Database designed in Oracle through JDBC
connectivity.
Project Description: The Java program provides an interface to the user to access, insert, delete
and update the database. The program handles user input, output to and from the database for the
said operations. User should be able to do the following operations:
The operations are choice based. Appropriate option has to be chosen from a switch case based
menu driven program and the operation on the database is performed accordingly. The output is
displayed in the terminal screen with appropriate messages from the database as displayed by
Oracle during direct access. Exceptions should be handled properly by the Java program. The
output should be displayed in a formatted way for clarity of understanding and visual.
Program Skeleton:
import java.sql.*;
import java.io.*;
public class myjdbcproj{
public static void main(String args[]) throws IOException
{
Connection con=null;
Statement stmt=null;
// Declare common variables if any
try{
// Load the driver class
Class.forName("oracle.jdbc.driver.OracleDriver");
switch(choice_variable)
{
case 1:
// Display customer records
break;
case 2:
// Add customer record
// Accept input for each column from user
break;
case 3:
// Delete customer record
break;
case 4:
// Update customer record
// Accept customer number from user
System.out.println("Enter 1: For Name 2: For Phone no 3: For City to update:");
// Accept user's choice
switch(choice_variable_1)
{
case 1:
// Update customer's name
break;
case 2:
// Update customer's phone number
break;
case 3:
// Update customer's city
break;
}
break;
case 5:
// Display account details
break;
case 8:
//Withdraw money
break;
case 9:
// Exit the menu
break;
default:
// Handle wrong choice of option
}
}while(condition);
} //try closing
catch(Exception e)
{ // Handling exception}
Test Cases:
The program should able to produce correct answer or appropriate error message corresponding to
the following testcases: