SodaPDF Converted Project - 10
SodaPDF Converted Project - 10
Class IX-A
Roll No -13
COMPUTER PROJECT
JAVA PROMMING LANGUAGE
J-Just
A-Another
V-Virtual
A-Acceletor
PROJECT CATEGORY
Internal Assessment java project a
programming environment social category is
assigned to an investment project after
appraisal and before public disclosure during
create different type of console application
project. This project require a minimum 5 days
disclosure period. INTERNAL ESSESSMENT
JAVA project expected to have significant
adverse use own computer. This project to
create using BLUEJ , NOTPAD and MS WORD.
This project base console application,. This
console program you can easy to use and see
the output.
ACKNOWLEDGEMENT
I, Mahfuj Alam reading in class ix of Don Bosco eng med
school want to express my special thanks of gratitude to my
computer teacher Mr.Soumitra Kalidaha who gave us this
golden opportunity to do this project on java. I would also like
to thank our respected principal Fr.Yaccub Ekka .My parents
and once again Soumitra sir with whose able guidance I am
able to complete this project on java
PROGRAM STATEMENT
Choose 6: Exit.
PROGRAM
ACCOUNT.JAVA-
acNo=no;
acHolderName=name;
actype=type;
acBal=bal;
return acNo;
return acHolderName;
}
return actype;
return acBal;
acBal+=amt;
if(acBal<amt)
return false;
acBal-=amt;
return true;
}
BANK.JAVA-
import java.util.*;
public Bank()
accts=new Account[TOTAL_ACCPT_LIMIT];
acCount=0;
Account acct=null;
for(int i=0;i<acCount;i++)
if(accts[i].getAcNo()==accNo)
break;
return acct;
}
if(acCount==TOTAL_ACCPT_LIMIT)
long acNum=cr.nextLong();
cr.nextLine();
String name=cr.nextLine();
char type=cr.next().charAt(0);
double bal=cr.nextDouble();
accts[acCount++]=new Account(acNum,name,type,bal);
}
public void balanceEnquiry()
long acNum=cr.nextLong();
Account acct=getAccount(acNum);
if(acct==null)
else
acct.displayAcDetails();
long acNum=cr.nextLong();
Account acct=getAccount(acNum);
if(acct==null)
else
acct.deposit(amt);
System.out.println("Deposit Successful");
acct.displayAcDetails();
System.out.println();
long acNum=cr.nextLong();
Account acct=getAccount(acNum);
if(acct==null)
else
if(acct.withdraw(amt))
System.out.println("Deposit Successful");
else
System.out.println("Insuffcient Balance!!!");
System.out.println("Account Details");
acct.displayAcDetails();
System.out.println();;
}
System.out.println("A/c No.\tName\tType\tBalance");
for(int i=0;i<acCount;i++)
+ accts[i].getAcBal());
System.out.println();
int ch;
do
System.out.println("Main Menu");
System.out.println("6. Exit");
ch=cr.nextInt();
System.out.println("");
switch(ch)
case 1:
bank.openAccount();
break;
case 2:
bank.makeDeposit();
break;
case 3:
bank.makeWithdrawal();
break;
case 4:
bank.balanceEnquiry();
break;
case 5:
bank.displayAllAccount();
break;
case 6:
System.out.println("Bye");
break;
default:
System.out.println("Incorrect choice!!!");
while(ch !=6);
}
OUTPUT:
VARIABLE DESCRIPTION
Thanking you.
Yours faithfully
Mahfuj Alam