String worker;
String temp; //geçici String
int bol_temp;
int ord_hour;
int extra_hour;
double pay;
boolean married;
static final int extra = 500;
double total;

Scanner scn = new Scanner(System.in);

System.out.println("Calisanin adini giriniz:");
worker = scanner.nextLine();

System.out.println("Calisma saatini giriniz:");
temp = scanner.nextLine();
ord_hour = Integer.parseInt(temp);


System.out.println("Calisanin saat ücretini giriniz:");
temp = scanner.nextLine();
pay  = Double.parseDouble(pay)

System.out.println("Calisanin medeni durumu giriniz:");
temp = scanner.nextLine();
married = Integer.parseInt(temp);



if(ord_hour > 40)
{
	total = ((ord_hour-40)*1,5*pay)+(40*pay);
}
else
	total = ord_hour*pay;

if(married)
{
	total += 500;
}

System.out.println("Toplam ödenecek ücret:"+ worker + " = " + total);