Alice in Wonderland is an upcoming fantasy-adventure film directed by Tim Burton. It is an extension to the Lewis Carroll novels Alice’s Adventures in Wonderland and Through the Looking-Glass. The film will use a [...]

Jennifer’s Body is a 2009 black comedy horror film written by Diablo Cody and directed by Karyn Kusama. The film stars Megan Fox, Amanda Seyfried, Adam Brody and Johnny Simmons and portrays a newly [...]

Sherlock Holmes is a 2009 film adaptation of Arthur Conan Doyle’s fictional character of the same name. The film was directed by Guy Ritchie and produced by Joel Silver, Lionel Wigram, Susan [...]

The Imaginarium of Doctor Parnassus is a 2009 fantasy film directed by Terry Gilliam and written by Gilliam and Charles McKeown. The film follows the leader of a travelling theatre troupe who, having made a deal [...]

Alice in Wonderland Movie Poster Megan Fox in Jennifer’s Body Sherlock Holmes Nominated for Golden Globe The Imaginarium of Doctor Parnassus

TUGAS PBO (PERBANKAN)

PERBANKAN

DOWNLOAD 4SHARED : http://www.4shared.com/file/HRjV_ln0/bank.html
import java.io.*;
class Personal
{
 static BufferedReader in = new BufferedReader(new InputStreamReader(System.in));

 static int MENU() throws Exception
 {
  System.out.println("1. masukan Transaksi");
  System.out.println("2. lihat Saldo");
  System.out.println("3. lihat semua Transaksi");
  System.out.println("4. Keluar");
  System.out.print("Pilihan : ");
  return Integer.parseInt(in.readLine());
 }

 public static void main(String[] args) throws Exception
 {
  int saldo = 0;
  int count = 0;
  Transaksi[] t = new Transaksi[100];

  do
  {
   int pil = MENU();
   if(pil == 1)
   {
    t[count] = new Transaksi();
  
    System.out.print("Tanggal : ");
    t[count].setTgl(in.readLine());
    System.out.print("Nominal : ");
    t[count].setNominal(Integer.parseInt(in.readLine()));
    System.out.print("Keterangan : ");
    t[count].setKet(in.readLine());
    System.out.print("Status : ");
    t[count].setStatus(in.readLine());
  
    if(t[count].getStatus().equals("debet"))
    {
     saldo += t[count].getNominal();
    }
    else
    {
     saldo -= t[count].getNominal();
    }
  
    count ++;
   }
   else if(pil == 2)
   {
    System.out.println("Saldo : " + saldo);
   }
   else if(pil == 3)
   {
    System.out.println("Tgl\t\tNominal\t\tKeterangan\tStatus");
    for(int i=0;i<count;i++)
    {
     System.out.println(t[i].getTgl() + "\t\t" + t[i].getNominal() + "\t\t" + t[i].getKet() + "\t\t" + t[i].getStatus());
    }
   }
   else if(pil == 4)
   {
    System.exit(0);
   }
 
   System.out.println();
  }
  while(true);
 }
}


NAMA : FREDY PRIYAMBODO
NIM     : 10.41010.0200

Share this post:

Digg it StumbleUpon del.icio.us Google Yahoo! reddit

0 komentar:

Posting Komentar

 
Copyright 2010 MASIH BELAJAR