은행 계좌 관리 프로그램
본 자료는 2페이지 의 미리보기를 제공합니다. 이미지를 클릭하여 주세요.
닫기
  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
해당 자료는 2페이지 까지만 미리보기를 제공합니다.
2페이지 이후부터 다운로드 후 확인할 수 있습니다.

소개글

은행 계좌 관리 프로그램에 대한 보고서 자료입니다.

목차

1. 소스
2. 결과화면

본문내용

ested: " + fmt.format(amount));
}
else if (amount > balance)
{
System.out.println ();
System.out.println ("Error: Insufficient funds.");
System.out.println ("Account: " + acctNumber);
System.out.println ("Requested: " + fmt.format(amount));
System.out.println ("Available: " + fmt.format(balance));
}
else
balance = balance - amount;
return balance;
}
public double transfer (int account1, int account2, double amount)
{
if (amount < 0)
{
System.out.println ();
System.out.println ("Error: Withdraw amount is invalid.");
System.out.println ("Account: " + acctNumber);
System.out.println ("Requested: " + fmt.format(amount));
}
else if (amount > balance)
{
System.out.println ();
System.out.println ("Error: Insufficient funds.");
System.out.println ("Account: " + acctNumber);
System.out.println ("Requested: " + fmt.format(amount));
System.out.println ("Available: " + fmt.format(balance));
}
else
{
if (account1==account2)
{
balance = balance - amount;
System.out.println ("TEX : $ 0");
}
else if (account2 == 03 || account2 == 25)
{
balance = balance - amount - tax;
System.out.println ("TEX : $ 5");
}
else
System.out.println ("ERROR");
}
return balance;
}
public double trans_input (double trans, double amount)
{
if (trans < amount)
{
System.out.println ("deposit ERROR");
temp_balance = 0;
}
else
temp_balance = amount;
return temp_balance;
}
public double getBalance ()
{
return balance;
}
public long getAccountNumber ()
{
return acctNumber;
}
public String toString ()
{
DecimalFormat fmt1 = new DecimalFormat ("00");
return (acctNumber + "\t" + name + "\t" + fmt1.format(code)+ "\t" + fmt.format(balance));
}
}
1. (1)번 구좌에 \1000 입금
2. (1)번 구좌에서 (2)번 구좌에 \800 입금
3. (1)번 구좌에서 (3)번 구좌로 \100 입금
4. (2)번 구좌에서 \100 출금
5. (2)번 구좌에서 3번 구좌로 \100 송금
6. (3)번 구좌에서 (1)번 구좌로 \150 송금
7. 잔액이 부족하다는 경고

키워드

JAVA,   자바,   은행,   계좌,   관리
  • 가격1,000
  • 페이지수8페이지
  • 등록일2004.10.05
  • 저작시기2004.10
  • 파일형식한글(hwp)
  • 자료번호#269561
본 자료는 최근 2주간 다운받은 회원이 없습니다.
청소해
다운로드 장바구니