/**
* @(#)GajiPegawai.java
*
*
* @author
* @version 1.00 2009/5/3
*/
import java.io.*;
public class GajiPegawai {
public static void main (String[] args) throws Exception
{
BufferedReader data = new BufferedReader(new InputStreamReader(System.in));
System.out.println("Gaji pegawai");
System.out.println("==================================");
System.out.println("");
System.out.print("Nama Pegawai :");
String nama = data.readLine();
System.out.print("Gaji :");
double gaji=Double.parseDouble(data.readLine());
double tunj= (gaji*12.5)/100;
System.out.println("Tunjangan :"+tunj);
double ta= (gaji*2)/100;
System.out.println("Tunjangan Anak :"+ta);
double ts= (gaji*5)/100;
System.out.println("Tunjangan Istri :"+ts);
System.out.println("==================================");
double pdt= gaji+tunj+ta+ts;
System.out.println("Pendapatan :"+pdt);
System.out.println("");
System.out.print("Potongan :");
double pot=Double.parseDouble(data.readLine());
double as= (gaji*7)/100;
System.out.println("Asuransi Kesehatan :"+as);
System.out.println("==================================");
double pgr= pot+as;
System.out.println("Pengurangan :"+pgr);
System.out.println("");
System.out.println("Jadi Gaji Pokok yang diterima ");
System.out.println("==================================");
System.out.println("Pendapatan :"+pdt);
System.out.println("Pengurangan :"+pgr);
double tot= pdt+pgr;
System.out.println("Total Gaji:"+tot);
}
}
Senin, 04 Mei 2009
Ujian PBO
Diposting oleh Jouhari di 12:58:00 PM
Label: Arsip java (newbi)
Langganan:
Posting Komentar (Atom)
0 komentar:
Posting Komentar