public static void main (String[]arg) {
double grade = 59.99 ;
System.out.println ("Nilai KKM = 80.00");
System.out.println ("Nilai UHB-1= " +grade);
if (grade >=100) {
System.out.println ("grade = tidak ada");
System.out.println ("keterangan = tidak ada");
} else if (grade >=85) {
System.out.println ("grade = A");
System.out.println ("keterangan = Amat Baik");
} else if (grade >=75) {
System.out.println ("grade = B");
System.out.println ("keterangan = Baik");
} else if (grade >=60) {
System.out.println ("grade = C");
System.out.println ("keterangan = Cukup");
} else if (grade >=40) {
System.out.println ("grade = D");
System.out.println ("keterangan = Kurang");
} else if (grade >=0) {
System.out.println ("grade = E");
System.out.println ("keterangan = Gagal");
}
char gen = 'z';
if (gen =='p') {
System.out.println ("Kode Kelamin = P");
System.out.println ("keterangan = Perempuan");
} else if (gen =='l') {
System.out.println ("Kode Kelamin = L");
System.out.println ("keterangan = Laki-laki");
} else {
System.out.println (" Kode Kelamin = Tidak ada");
System.out.println ("keterangan = Tidak ada");
}
System.out.println ("No.Absen = 30");
System.out.println ("Nama Lengkap = Wardah Farhana");
}
}
Tidak ada komentar:
Posting Komentar