Look at this !
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package menghitunggajipegawi;
import java.util.Scanner;
/**
*
* @author Aspire
*/
public class Menghitunggajipegawi {
/**
* @param args the command line arguments
*/
public static void main(String[] args) {
// TODO code application logic here
Scanner input = new Scanner(System.in);
int lama;
double gaji;
double total;
double bonus=300000;
double potongan=50000;
double lembur=50000;
double pajak;
double akhir;
int lemburmalam;
System.out.println(" Menghitung Gaji Pegawai");
System.out.println("---------------------------------------------");
System.out.println("Ket : Pajak = 10 %, Lembur =Rp.50.000/Malam");
System.out.println("----------------------------------------------");
System.out.print("Masukan Jumlah Hari Kerja :");
lama = input.nextInt();
gaji = lama * 100000;
if (lama >=25)
gaji = gaji + bonus ;
else if(lama<=11)
gaji = gaji - potongan;
else
gaji = gaji *1;
System.out.print("Berapa Hari Lembur : ");
lemburmalam = input.nextInt();
total = gaji +(lemburmalam *lembur);
pajak = total *0.10;
akhir = total - (total*0.10);
System.out.println(" ");
System.out.println("Gaji Pokok= Rp. "+gaji);
System.out.println("Pajak Penghasilan = Rp. "+pajak);
System.out.println("----------------------------------");
System.out.println("Total Pembayaran Gaji RP. "+akhir);
System.out.println("----------------------------------");
System.out.println("Created By.Bella Yulianita");
}
}
Thankyou
-Bella Yulianita-
0 komentar:
Posting Komentar