java menentukan kelulusan

import java.io.*;
public class lat5
{
 public static void main(String args[])
  {
 
 double hasil,Q,W,R,T,Y;
 String ket;
  try 
 {
 	BufferedReader nama=new BufferedReader (new InputStreamReader(System.in));
	System.out.print("Masukan Nama	: ");
	String k=nama.readLine();
	
	BufferedReader nt=new BufferedReader (new InputStreamReader(System.in));
	System.out.print("Nilai tugas	: ");
	String input2=nt.readLine();
	double B=Double.parseDouble(input2);
	BufferedReader na=new BufferedReader (new InputStreamReader(System.in));
	System.out.print("Nilai absen	: ");
	String input3=na.readLine();
	double C=Double.parseDouble(input3);
	BufferedReader nu=new BufferedReader (new InputStreamReader(System.in));
	System.out.print("Nilai uts	: ");
	String input4=nu.readLine();
	double D=Double.parseDouble(input4);
	BufferedReader nua=new BufferedReader (new InputStreamReader(System.in));
	System.out.print("Nilai uas	: ");
	String input5=nua.readLine();
	double E=Double.parseDouble(input5);
	Q=B*0.1;
	W=C*0.1;
	R=D*0.3;
	T=E*0.5;
	
	Y=Q+W+R+T;
	if (Y>=65)
	{ket="lulus";}
	else
	{
	ket="tidak lulus";
	}
	System.out.println(" ");
	System.out.println("Nilai akhir = "+Y);
	System.out.print("keterangan  = "+ket);
	
	
}
catch (IOException e)
{
e.printStackTrace();
}
}
}